Difference between revisions of "Template:WWItems"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (creating template) |
PanchamBro (talk | contribs) m (Text replacement - "color-class" to "colorclass") |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 26: | Line 26: | ||
|availability_other_note = String | |availability_other_note = String | ||
|notes = String | |notes = String | ||
− | }}</noinclude><includeonly>{{DISPLAYTITLE:{{#invoke:Items|italicizeGameInTitle|{{SUBPAGENAME}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{WWLang/CargoAttach}}{{#cargo_store: | + | }}</noinclude><includeonly>{{DISPLAYTITLE:{{#invoke:Items|italicizeGameInTitle|{{SUBPAGENAME}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{WWLang/CargoAttach}}{{WWIdentifier/CargoAttach}}{{#cargo_store: |
_table=ww_item | _table=ww_item | ||
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Wild World)|}}}}} | |identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Wild World)|}}}}} | ||
Line 32: | Line 32: | ||
|image = {{{image|}}} | |image = {{{image|}}} | ||
|outdoor_image = {{{outdoor-image|}}} | |outdoor_image = {{{outdoor-image|}}} | ||
− | |inv_image = {{{inv- | + | |inv_image = {{{inv-icon|}}} |
|buy = {{{buy|}}} | |buy = {{{buy|}}} | ||
|sell = {{{sell|}}} | |sell = {{{sell|}}} | ||
Line 64: | Line 64: | ||
|ja_name = {{{ja-name|}}} | |ja_name = {{{ja-name|}}} | ||
|ko_name = {{{ko-name|}}} | |ko_name = {{{ko-name|}}} | ||
+ | }}<!-- Cargo Store for identifiers -->{{#cargo_store: | ||
+ | _table=ww_identifier | ||
+ | |identifier = {{{identifier|}}} | ||
+ | |en_name = {{{name|}}} | ||
+ | |category = Other | ||
}}}}</includeonly>{{Infobox 2.0 | }}}}</includeonly>{{Infobox 2.0 | ||
+ | | colorclass = color-series | ||
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| secondarycolor = 42 73 | | secondarycolor = 42 73 | ||
− | | title = {{{ | + | | title = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}} |
− | | lefticon = | + | | lefticon = {{#ifexist:File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} WW Inv Icon.png}}}|[[File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} WW Inv Icon.png}}}|Type of other item|sub|class=sprite|link=]]|<span style="padding-left:{{{32px}}};"></span>}} |
| righticon = | | righticon = | ||
− | | image = [[File:{{{image|}}}| | + | | image = [[File:{{{image|}}}|128px|class=sprite|{{{name|}}}]] |
| caption = | | caption = | ||
Line 79: | Line 85: | ||
| rightdata = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}} | | rightdata = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}} | ||
− | | label = {{#if:{{{ | + | | label = {{#if:{{{width|}}}{{{length|}}}|Size}} |
− | | data = {{#if:{{{ | + | | data = {{#if:{{{width|}}}{{{length|}}}|<div style="font-size:.9em; padding:3px 0px;">{{Size|{{{width|}}}.0|{{{length|}}}.0}} {{{width|}}} × {{{length|}}}</div>}} |
| label2 = Obtain via | | label2 = Obtain via | ||
− | | data2 = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}{{#if: {{{availability-other|}}} | | + | | data2 = {{#if:{{{availability1|}}}|<div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}{{#if: {{{availability-other|}}} | {{#invoke: Items | outputAvailabilitiesFromList | {{{availability-other|}}} }} | }}</div>}} |
− | + | ||
− | + | | label3 = {{#if:{{{stack|}}}|Stack|}} | |
− | {{#invoke: Items | outputAvailabilitiesFromList | {{{availability-other|}}} }} | + | | data3 = {{#if:{{{stack|}}}|{{{stack|}}}|}} |
− | </div> | ||
− | |||
− | | | + | | label4 = HRA points |
− | | | + | | data4 = {{{hra-points|}}} |
− | | | + | | label5 = {{#if:{{{color1|}}}|Colors}} |
− | | | + | | data5 = {{#if:{{{color1|}}}|<div style="display:inline-block; vertical-align:top; line-height:.9em;">{{Color|{{{color1|Unknown}}}|display=inline-block}} {{Color|{{{color2|Unknown}}}|display=inline-block}}</div>}} |
| widebottomlabel = Notes | | widebottomlabel = Notes | ||
Line 100: | Line 104: | ||
| widebottomlabel2 = In other games | | widebottomlabel2 = In other games | ||
− | | widebottomdata2 = {{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=nh_identifier|fields=CONCAT("[[Item:", nh_identifier.en_name, " (New Horizons)|''New Horizons'' (", nh_identifier.en_name, ")]]<br />")|where=nh_identifier.identifier="{{{identifier|}}}"|default=}} | + | | widebottomdata2 = {{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori+)|''Doubutsu no Mori+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_plus=1 AND in_pg=0|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Animal Crossing)|''Animal Crossing'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_pg=1|default=}}{{#cargo_query:tables=pg_item|fields=CONCAT("[[Item:", pg_item.en_name, " (Doubutsu no Mori e+)|''Doubutsu no Mori e+'' (", pg_item.en_name, ")]]<br />")|where=pg_item.identifier="{{{identifier|}}}" AND in_e_plus=1 AND in_plus=0 AND in_pg=0|default=}}{{#cargo_query:tables=cf_item|fields=CONCAT("[[Item:", cf_item.en_name, " (City Folk)|''City Folk'' (", cf_item.en_name, ")]]<br />")|where=cf_item.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=nh_identifier|fields=CONCAT("[[Item:", nh_identifier.en_name, " (New Horizons)|''New Horizons'' (", nh_identifier.en_name, ")]]<br />")|where=nh_identifier.identifier="{{{identifier|}}}"|default=}} |
− | | languages = | + | | languages = Names |
| ja-name = {{{ja-name|}}} | | ja-name = {{{ja-name|}}} | ||
| zh-name = N/A | | zh-name = N/A | ||
Line 115: | Line 119: | ||
| nl-name = N/A | | nl-name = N/A | ||
| ru-name = N/A | | ru-name = N/A | ||
− | }}<includeonly>[[Category:Wild World other items]]</includeonly><noinclude>{{clear}} | + | }}<includeonly>[[Category:Wild World other items]]{{#if: {{{availability1|}}} | [[Category:Acquired from {{{availability1|}}}]]}}{{#if: {{{availability2|}}} | [[Category:Acquired from {{{availability2|}}}]]}}{{#if: {{{availability3|}}} | [[Category:Acquired from {{{availability3|}}}]]}}{{#if: {{{availability-other|}}} | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-other|}}}}}}}</includeonly><noinclude>{{clear}} |
{{Lua Notice|module1=Items}} | {{Lua Notice|module1=Items}} | ||
{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]] | {{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]] | ||
</noinclude> | </noinclude> |
Latest revision as of 01:03, May 19, 2024
This template defines the table "ww_item". View table.
| ||||||||
[[File:|128px|class=sprite|]] | ||||||||
Buy price | Sell price | |||||||
---|---|---|---|---|---|---|---|---|
Not for sale | Cannot be sold | |||||||
Names in other languages
Unknown
Unknown Unknown Unknown
N/A
Unknown Unknown N/A
N/A N/A N/A N/A |
This template is using a Lua module
To change certain features of this template, the following modules will need to be edited:
Module:Items
Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
This template is using a Lua module
To change certain features of this template, the following modules will need to be edited:
Module:Items
Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
No documentation for Template:WWItems exists. Create it.