Difference between revisions of "Template:PGFurniture"
From Nookipedia, the Animal Crossing wiki
PanchamBro (talk | contribs) (adding title parameter) |
PanchamBro (talk | contribs) m (Text replacement - "color-class" to "colorclass") |
||
(13 intermediate revisions by 5 users not shown) | |||
Line 29: | Line 29: | ||
|buy = Integer | |buy = Integer | ||
|sell = Integer | |sell = Integer | ||
+ | |point_requirement = Integer | ||
+ | |savings_requirement = Integer | ||
|availability1 = String | |availability1 = String | ||
|availability1_note = String | |availability1_note = String | ||
Line 60: | Line 62: | ||
|width = Integer | |width = Integer | ||
|length_ique = Integer | |length_ique = Integer | ||
+ | |clock = Boolean | ||
|interactable = Boolean | |interactable = Boolean | ||
|interactivity = String | |interactivity = String | ||
Line 71: | Line 74: | ||
|universal_code = String | |universal_code = String | ||
|notes = String | |notes = String | ||
− | }}</noinclude><includeonly>{{#if:{{{nodisplaytitle|}}}||{{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_furniture | _table=pg_furniture | ||
|identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}} | |identifier = {{{identifier|{{#replace:{{#titleparts:{{PAGENAME}}||-1}}|<nowiki> </nowiki>(Animal Crossing)|}}}}} | ||
Line 101: | Line 104: | ||
|buy = {{{buy|}}} | |buy = {{{buy|}}} | ||
|sell = {{{sell|}}} | |sell = {{{sell|}}} | ||
+ | |point_requirement = {{{point-requirement|}}} | ||
+ | |savings_requirement = {{{savings-requirement|}}} | ||
|availability1 = {{{availability1|}}} | |availability1 = {{{availability1|}}} | ||
|availability1_note = {{{availability1-note|}}} | |availability1_note = {{{availability1-note|}}} | ||
Line 132: | Line 137: | ||
|length_ique = {{#if:{{{length-ique|}}}|{{{length-ique|}}}|{{{length|}}}}} | |length_ique = {{#if:{{{length-ique|}}}|{{{length-ique|}}}|{{{length|}}}}} | ||
|width = {{{width|}}} | |width = {{{width|}}} | ||
+ | |clock = {{{clock|}}} | ||
|interactable = {{{interactable|}}} | |interactable = {{{interactable|}}} | ||
|interactivity = {{{interactivity|}}} | |interactivity = {{{interactivity|}}} | ||
Line 153: | Line 159: | ||
|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 = Furniture | ||
}}}}</includeonly>{{Infobox 2.0 | }}}}</includeonly>{{Infobox 2.0 | ||
+ | | colorclass = color-series | ||
| primarycolor = 39 100 | | primarycolor = 39 100 | ||
| secondarycolor = 42 73 | | secondarycolor = 42 73 | ||
Line 188: | Line 200: | ||
| data3 = | | data3 = | ||
{{#if: {{{availability-dnm|}}} | {{#if: {{{availability-dnm|}}} | ||
− | | | + | | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}} {{#if: {{{availability-dnm-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm-other|}}}}}|}} |
| {{#if: {{{availability-ique|}}} | | {{#if: {{{availability-ique|}}} | ||
− | | | + | | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique|}}}}} {{#if: {{{availability-ique-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique-other|}}}}}|}} |
}} | }} | ||
}} | }} | ||
Line 209: | Line 221: | ||
| data4 = | | data4 = | ||
{{#if: {{{availability-plus|}}} | {{#if: {{{availability-plus|}}} | ||
− | | | + | | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}{{#if: {{{availability-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus-other|}}}}}|}} |
}} | }} | ||
Line 226: | Line 238: | ||
|{{#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|}}}}}|}} |
+ | }} | ||
}} | }} | ||
Line 244: | Line 257: | ||
| {{{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|}}}}}|}} |
+ | }} | ||
}} | }} | ||
Line 269: | Line 283: | ||
| widebottomlabel4 = In other games | | widebottomlabel4 = In other games | ||
− | | widebottomdata4 = {{#cargo_query:tables=ww_furniture|fields=CONCAT("[[Item:", ww_furniture.en_name, " (Wild World)|''Wild World'' (", ww_furniture.en_name, ")]]<br />")|where=ww_furniture.identifier="{{{identifier|}}}"|default=}}{{#cargo_query:tables=nh_furniture|fields=CONCAT("[[Item:", nh_furniture.en_name, " (New Horizons)|''New Horizons'' (", nh_furniture.en_name, ")]]<br />")|where=nh_furniture.identifier="{{{identifier|}}}"|default=}} | + | | widebottomdata4 = {{#cargo_query:tables=ww_furniture|fields=CONCAT("[[Item:", ww_furniture.en_name, " (Wild World)|''Wild World'' (", ww_furniture.en_name, ")]]<br />")|where=ww_furniture.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=cf_furniture|fields=CONCAT("[[Item:", cf_furniture.en_name, " (City Folk)|''City Folk'' (", cf_furniture.en_name, ")]]<br />")|where=cf_furniture.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nl_furniture|fields=CONCAT("[[Item:", nl_furniture.en_name, " (New Leaf)|''New Leaf'' (", nl_furniture.en_name, ")]]<br />")|where=nl_furniture.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nl_photo|fields=CONCAT("[[Item:", nl_photo.en_name, " (New Leaf)|''New Leaf'' (", nl_photo.en_name, ")]]<br />")|where=nl_photo.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nh_furniture|fields=CONCAT("[[Item:", nh_furniture.en_name, " (New Horizons)|''New Horizons'' (", nh_furniture.en_name, ")]]<br />")|where=nh_furniture.identifier="{{{identifier|}}}"|delimiter=|default=}}{{#cargo_query:tables=nh_tool|fields=CONCAT("[[Item:", nh_tool.en_name, " (New Horizons)|''New Horizons'' (", nh_tool.en_name, ")]]<br />")|where=nh_tool.identifier="{{{identifier|}}}"|delimiter=|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|}}}"|delimiter=|default=}}{{#cargo_query:tables=nh_photo|fields=CONCAT("[[Item:", nh_photo.en_name, " (New Horizons)|''New Horizons'' (", nh_photo.en_name, ")]]<br />")|where=nh_photo.identifier="{{{identifier|}}}"|delimiter=|default=}} |
− | |||
| languages = Names | | languages = Names | ||
Line 295: | Line 308: | ||
{{#if:{{{num-ique|}}}|[[Category:Dòngwù Sēnlín furniture]]}} | {{#if:{{{num-ique|}}}|[[Category:Dòngwù Sēnlín furniture]]}} | ||
{{#if:{{{in-ique|}}}|[[Category:Dòngwù Sēnlín furniture]]}} | {{#if:{{{in-ique|}}}|[[Category:Dòngwù Sēnlín furniture]]}} | ||
− | {{#if: {{{collection|}}} | [[Category:{{#invoke:Collection|main|1={{{collection|}}}}}]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability1|}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability2|}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability3|}}}]]}}}}{{#if: {{{availability-other|}}} | {{#ifeq: {{{availability-other|}}} | Unobtainable | [[Category:Unobtainable items]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-other|}}}}}}}}}{{#if: {{{availability-dnm|}}} | {{#ifeq: {{{availability-dnm|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-dnm|}}}}}{{#if:{{{availability-dnm-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-dnm-other|}}}}}}}}}}}{{#if: {{{availability-plus|}}} | {{#ifeq: {{{availability-plus|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori+]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-plus|}}}}}{{#if:{{{availability-plus-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-plus-other|}}}}}}}}}}}{{#if: {{{availability-pg|}}} | {{#ifeq: {{{availability-pg|}}} | Unobtainable | [[Category:Unobtainable items in Animal Crossing]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-pg|}}}}}{{#if:{{{availability-pg-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-pg-other|}}}}}}}}}}}{{#if: {{{availability-e-plus|}}} | {{#ifeq: {{{availability-e-plus|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori e+]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-e-plus|}}}}}{{#if:{{{availability-e-plus-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-e-plus-other|}}}}}}}}}}}{{#if: {{{availability-ique|}}} | {{#ifeq: {{{availability-ique|}}} | Unobtainable | [[Category:Unobtainable items in Dòngwù Sēnlín]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-ique|}}}}}{{#if:{{{availability-ique-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-ique-other|}}}}}}}}}}}</includeonly><noinclude>{{clear}} | + | {{#if: {{{collection|}}} | [[Category:{{{collection-link|{{#invoke:Collection|main|1={{{collection|}}}}}}}}]]}}{{#if: {{{availability1|}}} | {{#ifeq:{{{availability1|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability1|}}}]]}}}}{{#if: {{{availability2|}}} | {{#ifeq:{{{availability2|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability2|}}}]]}}}}{{#if: {{{availability3|}}} | {{#ifeq:{{{availability3|}}}|Unobtainable|[[Category:Unobtainable items]]|[[Category:Acquired from {{{availability3|}}}]]}}}}{{#if: {{{availability-other|}}} | {{#ifeq: {{{availability-other|}}} | Unobtainable | [[Category:Unobtainable items]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-other|}}}}}}}}}{{#if: {{{availability-dnm|}}} | {{#ifeq: {{{availability-dnm|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-dnm|}}}}}{{#if:{{{availability-dnm-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-dnm-other|}}}}}}}}}}}{{#if: {{{availability-plus|}}} | {{#ifeq: {{{availability-plus|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori+]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-plus|}}}}}{{#if:{{{availability-plus-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-plus-other|}}}}}}}}}}}{{#if: {{{availability-pg|}}} | {{#ifeq: {{{availability-pg|}}} | Unobtainable | [[Category:Unobtainable items in Animal Crossing]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-pg|}}}}}{{#if:{{{availability-pg-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-pg-other|}}}}}}}}}}}{{#if: {{{availability-e-plus|}}} | {{#ifeq: {{{availability-e-plus|}}} | Unobtainable | [[Category:Unobtainable items in Doubutsu no Mori e+]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-e-plus|}}}}}{{#if:{{{availability-e-plus-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-e-plus-other|}}}}}}}}}}}{{#if: {{{availability-ique|}}} | {{#ifeq: {{{availability-ique|}}} | Unobtainable | [[Category:Unobtainable items in Dòngwù Sēnlín]] | {{#invoke: Items| outputAvailabilitiesCategoriesFromList | {{{availability-ique|}}}}}{{#if:{{{availability-ique-other|}}}|{{#invoke: Items| outputAvailabilitiesCategoriesFromList |{{{availability-ique-other|}}}}}}}}}}}</includeonly><noinclude>{{clear}} |
== Notes == | == Notes == |
Latest revision as of 01:03, May 19, 2024
This template defines the table "pg_furniture". View table.
| ||||||||
[[File:|200px|]] | ||||||||
Buy price | Sell price | |||||||
---|---|---|---|---|---|---|---|---|
Not for sale | Cannot be sold | |||||||
Size | .0 x .0
×
| |||||||
HRA points | Unknown | |||||||
HRA penalty if facing wall | Unknown | |||||||
Feng shui | None | |||||||
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
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
Parameters
Names
en-name
- The English name of the item. Items only available in Japanese versions should have the translated name in this parameter.
- Default value: Item name in page title.
ja-name
- The Japanese name of the item. All items should have a Japanese names.
fr-name
- The French name of the item, if applicable. Only items in Animal Crossing have French names.
de-name
- The German name of the item, if applicable. Only items in Animal Crossing have German names.
it-name
- The Italian name of the item, if applicable. Only items in Animal Crossing have Italian names.
zh-name
- The Simplified Chinese name of the item, if applicable. Only items in Doubutsu no Mori have Chinese names.
es-name
- The Spanish name of the item, if applicable. Only items in Animal Crossing have Spanish names.
Metadata
series
- The HRA series the item is a part of, if applicable.
set
- The HRA set the item is a part of, if applicable.
theme
- Theme HRA theme the item is a part of, if applicable.
function
- The functionality of the item (e.g. clock, lighting, table), if applicable. Functions are not an in-game attribute; Nookipedia uses them to distinguish and categorize items.
color
- The fêng shui color of the item, if applicable.
hra-base
- The base Happy Room Academy score of item.
length
- The length of the item as a float (can be 1.0 or 2.0). Sources an image using {{Size}}.
width
- The width of the item as a float (can be 1.0 or 2.0). Sources an image using {{Size}}.
interactable
- Boolean of whether the player can interact with the item.
- Currently not displayed in the template.
sound
- Whether the item produces sound (music or otherwise).
- Currently not displayed in the template.
animated
- Whether the item is animated without any interaction. This will mostly be used with some wallpapers/flooring, but some furniture as well (e.g. fires, wind turbine, etc.)
- Currently not displayed in the template.
num-dnm
- The item's number in the catalog in Doubutsu no Mori, if applicable.
num-plus
- The item's number in the catalog in Doubutsu no Mori+, if applicable.
num-pg
- The item's number in the catalog in Animal Crossing, if applicable.
num-e-plus
- The item's number in the catalog in Doubutsu no Mori e+, if applicable.
Acquiring
availability1
- How the item can be acquired. Value should match one of the options in Template:Availability.
rarity-group
- The rarity group for items obtained from Tom Nook's store, if applicable. Automatically adds a note about how rarity groups work.
buy
- Cost to purchase in Bells, if applicable.
sell
- Sell price in Bells.
Internal data
id_dnm
- The item's internal hexadecimal ID in Doubutsu no Mori, if applicable.
id_plus
- The item's internal hexadecimal ID in Doubutsu no Mori+, if applicable.
id_pg
- The item's internal hexadecimal ID in Animal Crossing, if applicable.
id_e_plus
- The item's internal hexadecimal ID in Doubutsu no Mori e+, if applicable.
Other
num_display
- The catalog number to be displayed in the infobox. Should match the number in the game in the page title (e.g. Blue Bed (Animal Crossing) would have its
num_pg
value in this parameter, while Dharma (Doubutsu no Mori+ would use thenum_plus
value).
notes
- Any additional notes (special properties, glitches, attribution, etc.).
max-length
- Optional parameter that can be used to force the 2-column or 3-column display of the item name translations. The default value is 30. Increasing the value creates a tendency towards a 3-column display, decreasing it, a 2-column display.