Difference between revisions of "Template:PGItems"

From Nookipedia, the Animal Crossing wiki
m
(5 intermediate revisions by the same user not shown)
Line 31: Line 31:
 
|universal_code = String
 
|universal_code = String
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{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}}{{PGIdentifier/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 73: Line 73:
 
|ja_name = {{{ja-name|}}}
 
|ja_name = {{{ja-name|}}}
 
|zh_name = {{#if:{{{in-ique|}}}|{{{zh-name|}}}|}}
 
|zh_name = {{#if:{{{in-ique|}}}|{{{zh-name|}}}|}}
 +
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 +
_table=pg_identifier
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|category = Other
 
}}}}</includeonly>{{Infobox 2.0
 
}}}}</includeonly>{{Infobox 2.0
 
  | primarycolor    = 39 100
 
  | primarycolor    = 39 100
 
  | secondarycolor  = 42 73
 
  | secondarycolor  = 42 73
  | title            = {{{name|{{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}}}}}
+
  | title            = {{{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          =  
  
Line 107: Line 112:
 
  | data3 =  
 
  | data3 =  
 
{{#if: {{{availability-dnm|}}}
 
{{#if: {{{availability-dnm|}}}
     | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}} {{#if: {{{availability-dnm-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm-other|}}}}}|}}
+
     | <div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}} {{#if: {{{availability-dnm-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm-other|}}}}}|}}</div>
 
     | {{#if: {{{availability-ique|}}}
 
     | {{#if: {{{availability-ique|}}}
         | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique|}}}}} {{#if: {{{availability-ique-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique-other|}}}}}|}}
+
         | <div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique|}}}}} {{#if: {{{availability-ique-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique-other|}}}}}|}}</div>
 
     }}
 
     }}
 
}}
 
}}
Line 128: Line 133:
 
  | data4 =  
 
  | data4 =  
 
  {{#if: {{{availability-plus|}}}
 
  {{#if: {{{availability-plus|}}}
     |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}{{#if: {{{availability-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus-other|}}}}}|}}
+
     |<div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}{{#if: {{{availability-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus-other|}}}}}|}}</div>
 
  }}
 
  }}
  
Line 145: Line 150:
 
     |{{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}  
 
     |{{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}  
 
         | {{{availability-plus}}}{{{availability-plus-other|}}} =
 
         | {{{availability-plus}}}{{{availability-plus-other|}}} =
         |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg|}}}}}{{#if: {{{availability-pg-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg-other|}}}}}|}}}}
+
         |<div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg|}}}}}{{#if: {{{availability-pg-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg-other|}}}}}|}}}}</div>
 
}}
 
}}
  
Line 163: Line 168:
 
     | {{{availability-plus}}}{{{availability-plus-other|}}} =
 
     | {{{availability-plus}}}{{{availability-plus-other|}}} =
 
         | {{{availability-pg}}}{{{availability-pg-other|}}} =
 
         | {{{availability-pg}}}{{{availability-pg-other|}}} =
     | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus|}}}}}{{#if: {{{availability-e-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus-other|}}}}}|}}}}
+
     | <div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus|}}}}}{{#if: {{{availability-e-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus-other|}}}}}|}}}}</div>
 
}}
 
}}
  
Line 188: Line 193:
 
  | nl-name          = N/A
 
  | nl-name          = N/A
 
  | ru-name          = N/A
 
  | ru-name          = N/A
}}<includeonly>{{#if:{{{in-dnm|}}}|[[Category:Doubutsu no Mori other items]]}}{{#if:{{{in-plus|}}}|[[Category:Doubutsu no Mori+ other items]]}}{{#if:{{{in-pg|}}}|[[Category:Animal Crossing other items]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ other items]]}}{{#if:{{{in-ique|}}}|[[Category:Dòngwù Sēnlín 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}}
+
}}<includeonly>[[Category:First-generation Animal Crossing other items]]{{#if:{{{in-dnm|}}}|[[Category:Doubutsu no Mori other items]]}}{{#if:{{{in-plus|}}}|[[Category:Doubutsu no Mori+ other items]]}}{{#if:{{{in-pg|}}}|[[Category:Animal Crossing other items]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ other items]]}}{{#if:{{{in-ique|}}}|[[Category:Dòngwù Sēnlín 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>

Revision as of 10:40, November 30, 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.