Difference between revisions of "Template:PGInterior"

From Nookipedia, the Animal Crossing wiki
m
(Adding identifier table)
(27 intermediate revisions by 6 users not shown)
Line 7: Line 7:
 
|in_pg = Boolean
 
|in_pg = Boolean
 
|in_e_plus = Boolean
 
|in_e_plus = Boolean
 +
|in_ique = Boolean
 
|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
 
|category = String
 
|category = String
Line 31: Line 33:
 
|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>{{DISPLAYTITLE:{{#invoke:Items|italicizeGameInTitle|{{SUBPAGENAME}}}}}}{{#ifeq:{{NAMESPACE}}|Item|<!--Attach to other tables -->{{PGLang/CargoAttach}}{{PGIdentifier/CargoAttach}}{{#cargo_store:
 
_table=pg_interior
 
_table=pg_interior
|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 = {{#if:{{{num-dnm|}}}|Yes|{{{in-dnm|No}}}}}
 
|in_plus = {{#if:{{{num-plus|}}}|Yes|{{{in-plus|No}}}}}
 
|in_plus = {{#if:{{{num-plus|}}}|Yes|{{{in-plus|No}}}}}
 
|in_pg = {{#if:{{{num-pg|}}}|Yes|{{{in-pg|No}}}}}
 
|in_pg = {{#if:{{{num-pg|}}}|Yes|{{{in-pg|No}}}}}
 
|in_e_plus = {{#if:{{{num-e-plus|}}}|Yes|{{{in-e-plus|No}}}}}
 
|in_e_plus = {{#if:{{{num-e-plus|}}}|Yes|{{{in-e-plus|No}}}}}
 +
|in_ique = {{#if:{{{num-ique|}}}|Yes|{{{in-ique|No}}}}}
 
|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|}}}
 
|category = {{{category|}}}
 
|category = {{{category|}}}
Line 65: Line 69:
 
}}<!-- 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 72: Line 76:
 
|it_name = {{{it-name|}}}
 
|it_name = {{{it-name|}}}
 
|ja_name = {{{ja-name|}}}
 
|ja_name = {{{ja-name|}}}
|zh-name = {{#if:{{{num-dnm|}}}|{{{zh-name|}}}|}}
+
|zh_name = {{{zh-name|}}}
}}}}</includeonly>
+
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
{{Infobox 2.0
+
_table=pg_identifier
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|category = Interior
 +
}}}}</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        = {{#if:{{{num-pg|}}}|'''<nowiki>#</nowiki>{{{num-pg|}}}'''|&nbsp;}}
+
  | lefticon        = [[File:{{#switch: {{{category|}}}
| righticon        = [[File:{{#switch: {{{category|}}}
+
| Wallpaper = Wallpaper PG Inv Icon.png{{!}}Type of wallpaper
| Wallpaper = Wall NH Category Icon.png{{!}}Type of wallpaper
+
| Carpet = Carpet PG Inv Icon.png{{!}}Type of carpet}}|sub|class=sprite|link=]]
| Carpet = Floor NH Category Icon.png{{!}}Type of carpet
+
| 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}}}}}}}}
| All NH Category Icon.png{{!}}Type of item}}|sub|20px|link=]]
 
  
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{{name|}}}]]
+
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{#invoke:SentenceCase|main|{{{name|}}}}}]]
 
  | caption          =  
 
  | caption          =  
  
  | 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|}}}}}|Unknown}}
  
 
  | 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|}}}}}}}{{#if:{{{plus-availability|}}}|{{Availability|{{{plus-availability|}}}|note={{{plus-availability-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:{{{plus-availability|}}}|{{Availability|{{{plus-availability|}}}|note={{{plus-availability-note|}}}}}}}{{#if: {{{availability-other|}}} | {{#invoke: Items | outputAvailabilitiesFromList | {{{availability-other|}}} }} | }}</div>}}
  
  | label2          = Rarity Group
+
  | label2          = [[Group|Rarity group]]
  | data2            = {{#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 items may be common while in another town, Group A items will be rare.}} | None}}
+
  | data2            = {{#if: {{{rarity-group|}}} | {{{rarity-group|Unknown}}} | None}}
  
  | label3          = [[Happy Home Academy|HRA]] Points
+
  | label3          = [[Happy Home Academy|HRA]] points
 
  | data3            = {{{hra-points|Unknown}}}
 
  | data3            = {{{hra-points|Unknown}}}
  
 
  | 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_interior|fields=CONCAT("[[Item:", ww_interior.en_name, " (Wild World)|''Wild World'' (", ww_interior.en_name, ")]]<br />")|where=ww_interior.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=nh_interior|fields=CONCAT("[[Item:", nh_interior.en_name, " (New Horizons)|''New Horizons'' (", nh_interior.en_name, ")]]<br />")|where=nh_interior.identifier="{{{identifier|}}}"|default=}}
  | zh-name          = {{#if:{{{num-dnm|}}}|{{{zh-name|}}}|N/A}}
+
 
  | fr-name          = {{{fr-name|}}}
+
  | languages        = Names
  | es-name          = {{{es-name|}}}
+
  | ja-name          = {{#if:{{{ja-name|}}}|{{{ja-name|}}}|N/A}}
  | it-name          = {{{it-name|}}}
+
  | zh-name          = {{#if:{{{zh-name|}}}|{{{zh-name|}}}|N/A}}
  | de-name          = {{{de-name|}}}
+
  | fr-name          = {{#if:{{{fr-name|}}}|{{{fr-name|}}}|N/A}}
 +
  | es-name          = {{#if:{{{es-name|}}}|{{{es-name|}}}|N/A}}
 +
  | it-name          = {{#if:{{{it-name|}}}|{{{it-name|}}}|N/A}}
 +
  | de-name          = {{#if:{{{de-name|}}}|{{{de-name|}}}|N/A}}
 
  | zht-name        = N/A
 
  | zht-name        = N/A
 
  | ko-name          = N/A
 
  | ko-name          = N/A
Line 121: Line 131:
 
  | nl-name          = N/A
 
  | nl-name          = N/A
 
  | ru-name          = N/A
 
  | ru-name          = N/A
}}<includeonly>{{#if:{{{num-dnm|}}}|[[Category:Doubutsu no Mori {{#switch: {{{category|}}}
+
}}<includeonly>[[Category:First-generation Animal Crossing {{#switch: {{{category|}}}
 
  | Wallpaper = wallpapers
 
  | Wallpaper = wallpapers
 
  | Carpet = carpets
 
  | Carpet = carpets
  | {{{category|}}}}}]]}}{{#if:{{{num-plus|}}}|[[Category:Animal Crossing {{#switch: {{{category|}}}
+
| {{{category|}}}}}]]{{#if:{{{num-dnm|}}}|[[Category:Doubutsu no Mori {{#switch: {{{category|}}}
 +
| Wallpaper = wallpapers
 +
| Carpet = carpets
 +
  | {{{category|}}}}}]]}}{{#if:{{{num-plus|}}}|[[Category:Doubutsu no Mori+ {{#switch: {{{category|}}}
 
  | Wallpaper = wallpapers
 
  | Wallpaper = wallpapers
 
  | Carpet = carpets
 
  | Carpet = carpets
Line 133: Line 146:
 
  | Wallpaper = wallpapers
 
  | Wallpaper = wallpapers
 
  | Carpet = carpets
 
  | Carpet = carpets
  | {{{category|}}}}}]]}}</includeonly><noinclude>{{clear}}
+
  | {{{category|}}}}}]]}}{{#if:{{{num-ique|}}}|[[Category:Dòngwù Sēnlín {{#switch: {{{category|}}}
 +
| Wallpaper = wallpapers
 +
| Carpet = carpets
 +
| {{{category|}}}}}]]}}{{#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}}

Revision as of 10:39, November 30, 2022

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

[[File:|sub|class=sprite|link=]]  
[[File:|256px|class=sprite|]]
Buy price Sell price
Not for sale Unknown
Rarity group None
HRA points Unknown
Appearances
Names in other languages
 N/A
 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:PGInterior exists. Create it.