Difference between revisions of "Template:PGItems"

From Nookipedia, the Animal Crossing wiki
(adding div overflows to the availability databoxes)
(Preparing template once item capitalization proposal passes and several changes to names are made automatically.)
Line 33: Line 33:
 
}}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#invoke:Items|italicizeGameInTitle|{{SUBPAGENAME}}}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{PGLang/CargoAttach}}{{#cargo_store:
 
}}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{DISPLAYTITLE:{{#invoke:Items|italicizeGameInTitle|{{SUBPAGENAME}}}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{PGLang/CargoAttach}}{{#cargo_store:
 
_table=pg_item
 
_table=pg_item
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}
+
|identifier = {{{identifier|}}}
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}}}}
+
|en_name = {{{name|}}}
 
|in_dnm = {{{in-dnm|No}}}
 
|in_dnm = {{{in-dnm|No}}}
 
|in_plus = {{{in-plus|No}}}
 
|in_plus = {{{in-plus|No}}}
Line 41: Line 41:
 
|in_ique = {{{in-ique|No}}}
 
|in_ique = {{{in-ique|No}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
|inv_image = {{#ifexist:File:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}} PG Inv Icon.png}}}|{{{image-pg|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}} PG Inv Icon.png}}}}}
+
|inv_image = {{#ifexist:File:{{{image|{{#invoke:TitleCase|main|{{{name|}}}}} PG Inv Icon.png}}}|{{{image-pg|{{#invoke:SentenceCase|main|{{{name|}}}}} PG Inv Icon.png}}}}}
 
|buy = {{{buy|}}}
 
|buy = {{{buy|}}}
 
|sell = {{{sell|}}}
 
|sell = {{{sell|}}}
Line 65: Line 65:
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
 
}}<!-- Cargo Store for different language names -->{{#cargo_store:
 
_table=pg_language_name
 
_table=pg_language_name
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}
+
|identifier = {{{identifier|}}}
|en_name = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}}}}
+
|en_name = {{{name|}}}
 
|de_name = {{{de-name|}}}
 
|de_name = {{{de-name|}}}
 
|es_name = {{{es-name|}}}
 
|es_name = {{{es-name|}}}
Line 76: Line 76:
 
  | primarycolor    = 39 100
 
  | primarycolor    = 39 100
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
  | title            = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}}}}
+
  | title            = {{#invoke:SentenceCase|main|{{{name|}}}}}
  | lefticon        = {{#ifexist:File:{{{inv-icon|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}} PG Inv Icon.png}}}|[[File:{{{inv-icon|{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}} PG Inv Icon.png}}}|Type of other item|sub|32px|link=]]|<span style="padding-left:{{{32px}}};"></span>}}
+
  | lefticon        = {{#ifexist:File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} PG Inv Icon.png}}}|[[File:{{{inv-icon|{{#invoke:TitleCase|main|{{{name|}}}}} PG Inv Icon.png}}}|Type of other item|sub|32px|link=]]|<span style="padding-left:{{{32px}}};"></span>}}
 
  | righticon        = &nbsp;
 
  | righticon        = &nbsp;
  
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{{name|}}}]]
+
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{#invoke:SentenceCase|main|{{{name|}}}}}]]
 
  | caption          =  
 
  | caption          =  
  

Revision as of 19:24, November 25, 2022

This template defines the table "pg_item". View table.

 
[[File:|256px|class=sprite|]]
Buy price Sell price
Not for sale Cannot be sold
Appearances
Names in other languages
 Unknown
 N/A
 N/A
 N/A
 N/A
 N/A
 N/A
 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:PGItems exists. Create it.