Difference between revisions of "Template:PGItems"

From Nookipedia, the Animal Crossing wiki
m
m (Text replacement - "color-class" to "colorclass")
 
(34 intermediate revisions by 7 users not shown)
Line 7: Line 7:
 
|in_pg = Boolean
 
|in_pg = Boolean
 
|in_e_plus = Boolean
 
|in_e_plus = Boolean
 +
|in_ique = Boolean
 
|image = String
 
|image = String
 +
|inv_image = String
 
|buy = Integer
 
|buy = Integer
 
|sell = Integer
 
|sell = Integer
 +
|edible = Boolean
 
|availability1 = String
 
|availability1 = String
 
|availability1_note = String
 
|availability1_note = String
Line 18: Line 21:
 
|availability_other = List (,) of String
 
|availability_other = List (,) of String
 
|availability_other_note = String
 
|availability_other_note = String
 +
|availability_dnm = List (,) of String
 +
|availability_dnm_note = String
 +
|availability_plus = List (,) of String
 +
|availability_plus_note = String
 +
|availability_pg = List (,) of String
 +
|availability_pg_note = String
 +
|availability_e_plus = List (,) of String
 +
|availability_e_plus_note = String
 
|universal_code = String
 
|universal_code = String
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|Animal Crossing|''Animal Crossing''}}}}{{#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 = {{#if:{{{num-dnm|}}}|Yes|{{{in-dnm|No}}}}}
+
|in_dnm = {{{in-dnm|No}}}
|in_plus = {{#if:{{{num-plus|}}}|Yes|{{{in-plus|No}}}}}
+
|in_plus = {{{in-plus|No}}}
|in_pg = {{#if:{{{num-pg|}}}|Yes|{{{in-pg|No}}}}}
+
|in_pg = {{{in-pg|No}}}
|in_e_plus = {{#if:{{{num-e-plus|}}}|Yes|{{{in-e-plus|No}}}}}
+
|in_e_plus = {{{in-e-plus|No}}}
|image = {{#ifexist:File:{{{image|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}} PG Model.png}}}|{{{image-pg|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}} PG Sprite.png}}}}}
+
|in_ique = {{{in-ique|No}}}
 +
|image = {{{image|}}}
 +
|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|}}}
 +
|edible = {{{edible|No}}}
 
|availability1 = {{{availability1|}}}
 
|availability1 = {{{availability1|}}}
 
|availability1_note = {{{availability1-note|}}}
 
|availability1_note = {{{availability1-note|}}}
Line 39: Line 53:
 
|availability_other = {{{availability-other|}}}
 
|availability_other = {{{availability-other|}}}
 
|availability_other_note = {{{availability-other-note|}}}
 
|availability_other_note = {{{availability-other-note|}}}
 +
|availability_dnm = {{{availability-dnm|}}}
 +
|availability_dnm_note = String
 +
|availability_plus = {{{availability-plus|}}}
 +
|availability_plus_note = String
 +
|availability_pg = {{{availability-pg|}}}
 +
|availability_pg_note = String
 +
|availability_e_plus = {{{availability-e-plus|}}}
 +
|availability_e_plus_note = String
 
|universal_code = {{{universal-code|}}}
 
|universal_code = {{{universal-code|}}}
 
|notes = {{{notes|}}}
 
|notes = {{{notes|}}}
 
}}<!-- 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 50: Line 72:
 
|it_name = {{{it-name|}}}
 
|it_name = {{{it-name|}}}
 
|ja_name = {{{ja-name|}}}
 
|ja_name = {{{ja-name|}}}
|zh_name = {{#if:{{{in-dnm|}}}|{{{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
 +
| colorclass      = color-series
 
  | 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        = [[File:Etc NH Category Icon.png{{!}}Type of other item|sub|20px|link=]]
+
  | 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        = [[File:{{{name|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}} PG Inv Icon.png|sub|32px|link=]]
+
| righticon        = &nbsp;
  
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{{name|}}}]]
+
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{#invoke:SentenceCase|main|{{{name|}}}}}]]
 
  | caption          =  
 
  | caption          =  
  
Line 70: Line 98:
  
 
  | 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|}}}}}}}
+
  | 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: {{{availability-dnm|}}}
 +
    |{{#if: {{{num-ique|}}}
 +
        |Obtain via:<br>({{DnM|shortest}}/{{iQue|shortest}})
 +
        |Obtain via:<br>({{DnM|shortest}})
 +
    }}
 +
    |{{#if: {{{num-ique|}}}
 +
        |Obtain via:<br>({{iQue|shortest}})
 +
    }}
 +
}}
 +
 
 +
| data3 =
 +
{{#if: {{{availability-dnm|}}}
 +
    | <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|}}}
 +
        | <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>
 +
    }}
 +
}}
 +
 
 +
  | label4 =
 +
{{#if: {{{availability-plus|}}}
 +
        | {{#switch: {{{availability-plus}}}{{{availability-plus-other|}}}
 +
            | {{{availability-pg}}}{{{availability-pg-other|}}} =
 +
            {{#ifeq: {{{availability-plus}}}{{{availability-plus-other|}}} | {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
 +
                | Obtain via:<br>({{DnM+|shortest}}/{{PG|shortest}}/{{nowrap|{{DnMe+|shortest}}}})
 +
                | Obtain via:<br>({{DnM+|shortest}}/{{PG|shortest}})
 +
            }}
 +
            | {{{availability-e-plus}}}{{{availability-e-plus-other|}}} = Obtain via:<br>({{DnM+|shortest}}/{{DnMe+|shortest}})
 +
            | Obtain via:<br>({{DnM+|shortest}})
 +
        }}
 +
}}
 +
 
 +
| data4 =
 +
{{#if: {{{availability-plus|}}}
 +
    |<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>
 +
}}
 +
 
 +
 
 +
| label5 =
 +
{{#if: {{{availability-pg|}}}
 +
    | {{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}
 +
        | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        | {{{availability-e-plus}}}{{{availability-e=plus-other|}}} = Obtain via:<br>({{PG|shortest}}/{{DnMe+|shortest}})
 +
        | Obtain via:<br>({{PG|shortest}})
 +
    }}
 +
}}
 +
 
 +
| data5  =
 +
{{#if: {{{availability-pg|}}}
 +
    |{{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}
 +
        | {{{availability-plus}}}{{{availability-plus-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>
 +
}}
 +
 
 +
 
 +
| label6 =
 +
{{#if: {{{availability-e-plus|}}}
 +
    | {{#switch: {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
 +
        | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        | {{{availability-pg}}}{{{availability-pg-other|}}} =
 +
        | Obtain via:<br>({{DnMe+|shortest}})
 +
    }}
 +
}}
 +
 
 +
| data6  =
 +
{{#if: {{{availability-e-plus|}}}
 +
    |{{#switch: {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
 +
    | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        | {{{availability-pg}}}{{{availability-pg-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>
 +
}}
  
 
  | widebottomlabel  = Appearances
 
  | widebottomlabel  = Appearances
  | widebottomdata  = {{#if: {{{in-dnm|}}} | {{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM|shortest}}|appears=no}} }}{{#if: {{{in-plus|}}} | {{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM+|shortest}}|appears=no}} }}{{#if: {{{in-pg|}}} | {{Infobox Appearance|game={{PG|shortest}}|appears=yes}}| {{Infobox Appearance|game={{PG|shortest}}|appears=no}} }}{{#if: {{{in-e-plus|}}} | {{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}} }}
+
  | widebottomdata  = {{#if: {{{in-dnm|}}} | {{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM|shortest}}|appears=no}} }}{{#if: {{{in-plus|}}} | {{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM+|shortest}}|appears=no}} }}{{#if: {{{in-pg|}}} | {{Infobox Appearance|game={{PG|shortest}}|appears=yes}}| {{Infobox Appearance|game={{PG|shortest}}|appears=no}} }}{{#if: {{{in-e-plus|}}} | {{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}} }}{{#if: {{{in-ique|}}} | {{Infobox Appearance|game={{iQue|shortest}}|appears=yes}}| {{Infobox Appearance|game={{iQue|shortest}}|appears=no}} }}
  
 
  | widebottomlabel2 = Notes
 
  | widebottomlabel2 = Notes
 
  | widebottomdata2  = {{{notes|}}}
 
  | widebottomdata2  = {{{notes|}}}
  
  | languages        = Name
+
| widebottomlabel3 = In other games
 +
| widebottomdata3  = {{#cargo_query:tables=ww_item|fields=CONCAT("[[Item:", ww_item.en_name, " (Wild World)|''Wild World'' (", ww_item.en_name, ")]]<br />")|where=ww_item.identifier="{{{identifier|}}}"|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
 
  | ja-name          = {{{ja-name|}}}
 
  | ja-name          = {{{ja-name|}}}
  | zh-name          = {{#if:{{{in-dnm|}}}|{{{zh-name|}}}|N/A}}
+
  | zh-name          = {{#if:{{{in-ique|}}}|{{{zh-name|}}}|N/A}}
  | fr-name          = {{{fr-name|}}}
+
  | fr-name          = {{#if:{{{in-pg|}}}|{{{fr-name|}}}|N/A}}
  | es-name          = {{{es-name|}}}
+
  | es-name          = {{#if:{{{in-pg|}}}|{{{es-name|}}}|N/A}}
  | it-name          = {{{it-name|}}}
+
  | it-name          = {{#if:{{{in-pg|}}}|{{{it-name|}}}|N/A}}
  | de-name          = {{{de-name|}}}
+
  | de-name          = {{#if:{{{in-pg|}}}|{{{de-name|}}}|N/A}}
 
  | zht-name        = N/A
 
  | zht-name        = N/A
 
  | ko-name          = N/A
 
  | ko-name          = N/A
Line 91: Line 194:
 
  | 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:Animal Crossing other items]]}}{{#if:{{{in-pg|}}}|[[Category:Animal Crossing other items]]}}{{#if:{{{in-e-plus|}}}|[[Category:Doubutsu no Mori e+ other items]]}}</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}}
 
{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]
 
{{Documentation}}[[Category:Cargo templates]][[Category:Item infoboxes]]
 
</noinclude>
 
</noinclude>

Latest revision as of 00:03, May 19, 2024

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.