Difference between revisions of "Template:PGClothing"

From Nookipedia, the Animal Crossing wiki
(Adding second image (texture))
 
(62 intermediate revisions by 6 users not shown)
Line 3: Line 3:
 
|identifier = String
 
|identifier = String
 
|en_name = String
 
|en_name = String
|es_name = String
+
|in_dnm = Boolean
|de_name = String
+
|in_plus = Boolean
|fr_name = String
+
|in_pg = Boolean
|it_name = String
+
|in_e_plus = Boolean
|ja_name = String
+
|in_ique = Boolean
|zh_name = String
 
 
|catalog_num_dnm = Integer
 
|catalog_num_dnm = Integer
 
|catalog_num_plus = Integer
 
|catalog_num_plus = Integer
 
|catalog_num_pg = Integer
 
|catalog_num_pg = Integer
 
|catalog_num_e_plus = Integer
 
|catalog_num_e_plus = Integer
 +
|catalog_num_ique = Integer
 
|image = String
 
|image = String
 
|texture = String
 
|texture = String
Line 23: Line 23:
 
|availability2 = String
 
|availability2 = String
 
|availability2_note = String
 
|availability2_note = String
|availability3 = String
 
|availability3_note = String
 
 
|availability_other = List (,) of String
 
|availability_other = List (,) of String
 
|availability_other_note = String
 
|availability_other_note = String
|season = String
+
|availability_dates = String
 +
|availability_season = String
 
|style = String
 
|style = String
 
|universal_code = String
 
|universal_code = String
 
|universal_code_plus = String
 
|universal_code_plus = String
 
|notes = String
 
|notes = String
}}</noinclude><includeonly>{{DISPLAYTITLE:{{#replace:{{SUBPAGENAME}}|Animal Crossing|''Animal Crossing''}}}}{{#ifeq:{{NAMESPACE}}|Item|{{#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_furniture
+
_table=pg_clothing
|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|}}}
|es_name = {{{es-name|}}}
+
|in_dnm = {{#if:{{{num-dnm|}}}|Yes|{{{in-dnm|No}}}}}
|de_name = {{{de-name|}}}
+
|in_plus = {{#if:{{{num-plus|}}}|Yes|{{{in-plus|No}}}}}
|fr_name = {{{fr-name|}}}
+
|in_pg = {{#if:{{{num-pg|}}}|Yes|{{{in-pg|No}}}}}
|it_name = {{{it-name|}}}
+
|in_e_plus = {{#if:{{{num-e-plus|}}}|Yes|{{{in-e-plus|No}}}}}
|ja_name = {{{ja-name|}}}
+
|in_ique = {{#if:{{{num-ique|}}}|Yes|{{{in-ique|No}}}}}
|zh_name = {{{zh-name|}}}
 
 
|catalog_num_dnm = {{{num-dnm|}}}
 
|catalog_num_dnm = {{{num-dnm|}}}
 
|catalog_num_plus = {{{num-plus|}}}
 
|catalog_num_plus = {{{num-plus|}}}
 
|catalog_num_pg = {{{num-pg|}}}
 
|catalog_num_pg = {{{num-pg|}}}
 
|catalog_num_e_plus = {{{num-e-plus|}}}
 
|catalog_num_e_plus = {{{num-e-plus|}}}
 +
|catalog_num_ique = {{{num-ique|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 
|texture = {{{texture|}}}
 
|texture = {{{texture|}}}
Line 56: Line 55:
 
|availability2 = {{{availability2|}}}
 
|availability2 = {{{availability2|}}}
 
|availability2_note = {{{availability2-note|}}}
 
|availability2_note = {{{availability2-note|}}}
|availability3 = {{{availability3|}}}
 
|availability3_note = {{{availability3-note|}}}
 
 
|availability_other = {{{availability-other|}}}
 
|availability_other = {{{availability-other|}}}
 
|availability_other_note = {{{availability-other-note|}}}
 
|availability_other_note = {{{availability-other-note|}}}
|season = {{{season|}}}
+
|availability_dates = {{#switch: {{{availability-season|}}} |Spring=Feb 25 – May 26|Summer=May 27 – Aug 26|Fall=Aug 27 – Nov 26|Winter=Nov 27 – Feb 24}}
 +
|availability_season = {{{availability-season|}}}
 
|style = {{{style|}}}
 
|style = {{{style|}}}
 
|universal_code = {{{universal-code|}}}
 
|universal_code = {{{universal-code|}}}
 
|universal_code_plus = {{{universal-code-plus|}}}
 
|universal_code_plus = {{{universal-code-plus|}}}
 
|notes = {{{notes|}}}
 
|notes = {{{notes|}}}
}}}}</includeonly>
+
}}<!-- Cargo Store for different language names -->{{#cargo_store:
{{Infobox 2.0
+
_table=pg_language_name
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|de_name = {{{de-name|}}}
 +
|es_name = {{{es-name|}}}
 +
|fr_name = {{{fr-name|}}}
 +
|it_name = {{{it-name|}}}
 +
|ja_name = {{{ja-name|}}}
 +
|zh_name = {{#if:{{{num-ique|}}}|{{{zh-name|}}}|}}
 +
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 +
_table=pg_identifier
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|category = Clothing
 +
}}}}</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|}}}}}}}}
 
  | subtitleabove    = {{#if:{{{collection|}}}{{{function|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{collection|}}}|[[{{{collection-link|{{{collection|}}}}}}]]}}{{#if:{{{function|}}}|{{#if:{{{collection|}}}|&nbsp;&nbsp;{{Colorshow|dcab00|'''{{!}}'''}}&nbsp;&nbsp;}}{{{function|}}}}}{{#if:{{{collection|}}}{{{function|}}}|</span>|}}
 
  | subtitleabove    = {{#if:{{{collection|}}}{{{function|}}}|<span style{{=}}"display:inline-block;">|}}{{#if:{{{collection|}}}|[[{{{collection-link|{{{collection|}}}}}}]]}}{{#if:{{{function|}}}|{{#if:{{{collection|}}}|&nbsp;&nbsp;{{Colorshow|dcab00|'''{{!}}'''}}&nbsp;&nbsp;}}{{{function|}}}}}{{#if:{{{collection|}}}{{{function|}}}|</span>|}}
  | lefticon        = &nbsp;<!--'''<nowiki>#</nowiki>{{{num-display|}}}'''-->
+
  | lefticon        = [[File:Clothing PG Inv Icon.png|Type of clothing|sub|class=sprite|link=]]
| righticon        = &nbsp;
+
| righticon        = {{#if:{{{num-pg|}}}|'''<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num-pg|}}}}}'''|&nbsp;}}{{#if:{{{num-dnm|}}}{{{num-plus|}}}{{{num-e-plus|}}}{{{num-ique|}}}|{{Note|{{#if:{{{num-pg|}}}|{{PG}} catalog number<nowiki>;</nowiki>&#32;}}{{#if:{{{num-dnm|}}}|<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num-dnm|}}}}} in {{DnM}}{{#if:{{{num-plus|}}}{{{num-e-plus|}}}{{{num-ique|}}}|<nowiki>;</nowiki>&#32;}}}}{{#if:{{{num-plus|}}}|<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num-plus|}}}}} in {{DnM+}}{{#if:{{{num-e-plus|}}}{{{num-ique|}}}|<nowiki>;</nowiki>&#32;}}}}{{#if:{{{num-e-plus|}}}|<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num-e-plus|}}}}} in {{DnMe+}}{{#if:{{{num-ique|}}}|<nowiki>;</nowiki>&#32;}}}}{{#if:{{{num-ique|}}}|<nowiki>#</nowiki>{{#invoke:formatnum|main|lang=en|{{{num-ique|}}}}} in {{iQue}}}}}}}}
  
  | image            = [[File:{{{image|}}}|200px|{{{name|}}}]]
+
  | image            = {{#if:{{{image|}}}|
| caption          =
+
{{TabStart}}
| image2          = [[File:{{{texture|}}}|200px|{{{name|}}}]]
+
{{TabHeader|Model}}
| caption2        =  
+
[[File:{{{image|}}}|200px|{{#invoke:SentenceCase|main|{{{name|}}}}}]]
 +
{{TabHeader|Texture}}
 +
[[File:{{{texture|}}}|200px|class=sprite|Texture of {{{name|}}}]]
 +
{{TabEnd}}|[[File:{{{texture|}}}|class=sprite|Texture of {{{name|}}}]]|}}
  
  | leftlabel        = Buy Price
+
  | leftlabel        = Buy price
  | rightlabel      = Sell Price
+
  | rightlabel      = Sell price
 
  | leftdata        = {{#if:{{{buy|}}}|{{Currency|Bells|{{{buy|}}}|short=yes}}|Not for sale}}
 
  | leftdata        = {{#if:{{{buy|}}}|{{Currency|Bells|{{{buy|}}}|short=yes}}|Not for sale}}
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Unknown}}
+
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}}
  
 
  | label            = Obtain via
 
  | label            = Obtain via
  | data            = {{Availability|{{{availability1|}}}|note={{{availability1-note|}}}}}{{#if:{{{availability2|}}}|{{Availability|{{{availability2|}}}|note={{{availability2-note|}}}}}}}{{#if:{{{availability3|}}}|{{Availability|{{{availability3|}}}|note={{{availability3-note|}}}}}}}
+
  | data            = {{#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>}}
  
  | label2          = Season
+
  | label2          = {{#if: {{{availability-season|}}} | Season | }}
  | data2            = {{#if:{{{season|}}}|{{{season|}}}|All year}}
+
  | data2            = {{#if: {{{availability-season|}}} | [[{{{availability-season|}}}]] <small>({{#switch: {{{availability-season|}}} |Spring=Feb 25 – May 26|Summer=May 27 – Aug 26|Fall=Aug 27 – Nov 26|Winter=Nov 27 – Feb 24}})</small>}}
  
  | label3          = Rarity Group
+
  | label3          = [[Group|Rarity group]]
 
  | data3            = {{#if: {{{rarity-group|}}} | {{{rarity-group|Unknown}}} {{Note|Each item belongs in one of three rarity groups (A, B, or C), and each group is mapped to a rarity when the town is created. For example, in one town Group A clothing may be common while in another town, Group A clothing will be rare.}} | None}}
 
  | data3            = {{#if: {{{rarity-group|}}} | {{{rarity-group|Unknown}}} {{Note|Each item belongs in one of three rarity groups (A, B, or C), and each group is mapped to a rarity when the town is created. For example, in one town Group A clothing may be common while in another town, Group A clothing will be rare.}} | None}}
  
 
  | label4          = Style  
 
  | label4          = Style  
  | data4            = {{#if: {{{style|}}} | {{{style|Unknown}}} {{Note|In {{DnMe+|nolink}} only, each clothing item has a style that determines which villagers will like or dislike it when given as a gift from another villager, as well as their reaction to the player if they wear it.}} | None}}  
+
  | data4            = {{#if: {{{style|}}} | [[Clothing/Doubutsu no Mori e+/{{{style|}}}|{{{style|Unknown}}}]] {{Note|In {{DnMe+|nolink}} only, each clothing item has a style that determines which villagers will like or dislike it when given as a gift from another villager, as well as their reaction to the player if they wear it.}} | None}}  
  
  | label5          = [[Happy Home Academy|HRA]] Points
+
  | label5          = [[Happy Home Academy|HRA]] points
 
  | data5            = 3
 
  | data5            = 3
  
 
  | widebottomlabel  = Appearances
 
  | widebottomlabel  = Appearances
  | widebottomdata  = {{#if: {{{num-dnm|}}} | {{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM|shortest}}|appears=no}} }}{{#if: {{{num-plus|}}} | {{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM+|shortest}}|appears=no}} }}{{#if: {{{num-pg|}}} | {{Infobox Appearance|game={{PG|shortest}}|appears=yes}}| {{Infobox Appearance|game={{PG|shortest}}|appears=no}} }}{{#if: {{{num-e-plus|}}} | {{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}} }}
+
  | widebottomdata  = {{#if: {{{num-dnm|}}} | {{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}| {{#if: {{{in-dnm|}}} | {{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM|shortest}}|appears=no}} }} }}{{#if: {{{num-plus|}}} | {{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}| {{#if: {{{in-plus|}}} | {{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnM+|shortest}}|appears=no}} }} }}{{#if: {{{num-pg|}}} | {{Infobox Appearance|game={{PG|shortest}}|appears=yes}}| {{#if: {{{in-pg|}}} | {{Infobox Appearance|game={{PG|shortest}}|appears=yes}}| {{Infobox Appearance|game={{PG|shortest}}|appears=no}} }} }}{{#if: {{{num-e-plus|}}} | {{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}| {{#if: {{{in-e-plus|}}} | {{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}| {{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}} }} }}{{#if: {{{num-ique|}}} | {{Infobox Appearance|game={{iQue|shortest}}|appears=yes}}| {{#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
  | ja-name          = {{{ja-name|}}}
+
| widebottomdata3  = {{#cargo_query:tables=ww_clothing|fields=CONCAT("[[Item:", ww_clothing.en_name, " (Wild World)|''Wild World'' (", ww_clothing.en_name, ")]]<br />")|where=ww_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=cf_clothing|fields=CONCAT("[[Item:", cf_clothing.en_name, " (City Folk)|''City Folk'' (", cf_clothing.en_name, ")]]<br />")|where=cf_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nl_clothing|fields=CONCAT("[[Item:", nl_clothing.en_name, " (New Leaf)|''New Leaf'' (", nl_clothing.en_name, ")]]<br />")|where=nl_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nh_clothing|fields=CONCAT("[[Item:", nh_clothing.en_name, " (New Horizons)|''New Horizons'' (", nh_clothing.en_name, ")]]<br />")|where=nh_clothing.identifier="{{{identifier|}}}"|delimiter=|default=}}
  | zh-name          = {{{zh-name|}}}
+
 
  | fr-name          = {{{fr-name|}}}
+
  | languages        = Names
  | es-name          = {{{es-name|}}}
+
  | ja-name          = {{{ja-name|Unknown}}}
  | it-name          = {{{it-name|}}}
+
  | zh-name          = {{#if:{{{num-ique|}}}|{{{zh-name|Unknown}}}|N/A}}
  | de-name          = {{{de-name|}}}
+
  | fr-name          = {{#if:{{{fr-name|}}}|{{{fr-name|Unknown}}}|N/A}}
 +
  | es-name          = {{#if:{{{es-name|}}}|{{{es-name|Unknown}}}|N/A}}
 +
  | it-name          = {{#if:{{{it-name|}}}|{{{it-name|Unknown}}}|N/A}}
 +
  | de-name          = {{#if:{{{de-name|}}}|{{{de-name|Unknown}}}|N/A}}
 
  | zht-name        = N/A
 
  | zht-name        = N/A
 
  | ko-name          = N/A
 
  | ko-name          = N/A
Line 118: Line 136:
 
  | nl-name          = N/A
 
  | nl-name          = N/A
 
  | ru-name          = N/A
 
  | ru-name          = N/A
}}<noinclude>{{clear}}
+
}}<includeonly>[[Category:First-generation Animal Crossing clothing]]{{#if:{{{num-dnm|}}}|[[Category:Doubutsu no Mori clothing]]}}{{#if:{{{num-plus|}}}|[[Category:Doubutsu no Mori+ clothing]]}}{{#if:{{{num-pg|}}}|[[Category:Animal Crossing clothing]]}}{{#if:{{{num-e-plus|}}}|[[Category:Doubutsu no Mori e+ clothing]]}}{{#if:{{{num-ique|}}}|[[Category:Dòngwù Sēnlín clothing]]}}{{#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}}
 
== Notes ==
 
== Notes ==
 
{{Note list}}
 
{{Note list}}

Latest revision as of 03:59, April 20, 2024

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

Type of clothing  
[[File:|class=sprite|Texture of ]]
Buy price Sell price
Not for sale Cannot be sold
Rarity group None
Style None
HRA points 3
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

Notes



No documentation for Template:PGClothing exists. Create it.