Difference between revisions of "Template:WWItems"

From Nookipedia, the Animal Crossing wiki
(Using overflow instead of collapsible element)
m (Text replacement - "color-class" to "colorclass")
 
(5 intermediate revisions by 2 users not shown)
Line 32: Line 32:
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 
|outdoor_image = {{{outdoor-image|}}}
 
|outdoor_image = {{{outdoor-image|}}}
|inv_image = {{{inv-image|}}}
+
|inv_image = {{{inv-icon|}}}
 
|buy = {{{buy|}}}
 
|buy = {{{buy|}}}
 
|sell = {{{sell|}}}
 
|sell = {{{sell|}}}
Line 70: Line 70:
 
|category = Other
 
|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|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
 
  | title            = {{{title|{{#invoke:SentenceCase|main|{{{name|}}}}}}}}
  | lefticon        = [[File:{{{inv-icon|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Wild World)|}}}}} WW Inv Icon.png}}}|Type of other item|sub|link=]]
+
  | 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        = &nbsp;
 
  | righticon        = &nbsp;
  
Line 103: 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        = Names
 
  | languages        = Names

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
Lua Logo.svg
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.
    Lua Logo.svg
    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.