Difference between revisions of "Template:PGInterior"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "<nowiki>;</nowiki>" to "<nowiki>;</nowiki> ")
(Adding identifier table)
(8 intermediate revisions by 2 users not shown)
Line 33: Line 33:
 
|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>{{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}}}}}
Line 69: 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 77: Line 77:
 
|ja_name = {{{ja-name|}}}
 
|ja_name = {{{ja-name|}}}
 
|zh_name = {{{zh-name|}}}
 
|zh_name = {{{zh-name|}}}
 +
}}<!-- Cargo Store for identifiers -->{{#cargo_store:
 +
_table=pg_identifier
 +
|identifier = {{{identifier|}}}
 +
|en_name = {{{name|}}}
 +
|category = Interior
 
}}}}</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|}}}}}}}}
 
  | 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        = [[File:{{#switch: {{{category|}}}
 
  | lefticon        = [[File:{{#switch: {{{category|}}}
 
  | Wallpaper = Wallpaper PG Inv Icon.png{{!}}Type of wallpaper
 
  | Wallpaper = Wallpaper PG Inv Icon.png{{!}}Type of wallpaper
 
  | Carpet = Carpet PG Inv Icon.png{{!}}Type of carpet}}|sub|class=sprite|link=]]
 
  | Carpet = Carpet PG Inv Icon.png{{!}}Type of carpet}}|sub|class=sprite|link=]]
  | 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-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}}}}}}}}
+
  | 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|}}}|256px|class=sprite|{{{name|}}}]]
+
  | image            = [[File:{{{image|}}}|256px|class=sprite|{{#invoke:SentenceCase|main|{{{name|}}}}}]]
 
  | caption          =  
 
  | caption          =  
  
Line 96: Line 101:
  
 
  | 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          = [[Group|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
Line 111: Line 116:
  
 
  | widebottomlabel3 = In other games
 
  | widebottomlabel3 = In other games
  | widebottomdata3  = {{#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=}}
+
  | 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=}}
  
 
  | languages        = Names
 
  | languages        = Names
Line 126: 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
 +
| Carpet = carpets
 +
| {{{category|}}}}}]]{{#if:{{{num-dnm|}}}|[[Category:Doubutsu no Mori {{#switch: {{{category|}}}
 
  | Wallpaper = wallpapers
 
  | Wallpaper = wallpapers
 
  | Carpet = carpets
 
  | Carpet = carpets

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.