Difference between revisions of "Template:PGTools"

From Nookipedia, the Animal Crossing wiki
m
Line 102: Line 102:
 
  | 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|}}}}}|Cannot be sold}}
 
  | rightdata        = {{#if:{{{sell|}}}|{{Currency|Bells|{{{sell|}}}}}|Cannot be sold}}
  | label2          = Obtain via
+
  | label            = Obtain via
  | 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>}}
+
  | 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>}}
  | label3 =  
+
  | label2 =  
 
{{#if: {{{availability-dnm|}}}
 
{{#if: {{{availability-dnm|}}}
 
| {{#switch: {{{availability-dnm}}}
 
| {{#switch: {{{availability-dnm}}}
Line 110: Line 110:
 
| {{#ifeq: {{{availability-pg}}} | {{{availability-e-plus}}}
 
| {{#ifeq: {{{availability-pg}}} | {{{availability-e-plus}}}
 
| Obtain via:<br>(all versions)
 
| Obtain via:<br>(all versions)
| Obtain via:<br>({{DnM|shortest}}/{{DnM+|shortest}}/{{PG|shortest}})
+
| Obtain via:<br>({{DnM|shortest}}/{{DnM+|shortest}}/<br>{{PG|shortest}})
 
}}
 
}}
 
| {{#ifeq: {{{availability-plus}}} | {{{availability-e-plus}}}
 
| {{#ifeq: {{{availability-plus}}} | {{{availability-e-plus}}}
Line 120: Line 120:
 
}}
 
}}
 
}}
 
}}
  | data3 = {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}}
+
  | data2 = {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}}
  | label4 =  
+
  | label3 =  
 
{{#if: {{{availability-plus|}}}
 
{{#if: {{{availability-plus|}}}
 
| {{#switch: {{{availability-plus}}}
 
| {{#switch: {{{availability-plus}}}
Line 133: Line 133:
 
}}
 
}}
 
}}
 
}}
  | data4 = {{#if: {{{availability-e-plus|}}}
+
  | data3 = {{#if: {{{availability-plus|}}}
| {{#switch: {{{availability-e-plus}}}
+
| {{#switch: {{{availability-plus}}}
 
| {{{availability-dnm}}} =
 
| {{{availability-dnm}}} =
 
| {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}
 
| {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}
 
}}
 
}}
 
}}
 
}}
  | label5 =
+
  | label4 =
 
{{#if: {{{availability-pg|}}}
 
{{#if: {{{availability-pg|}}}
 
| {{#switch: {{{availability-pg}}}
 
| {{#switch: {{{availability-pg}}}
Line 148: Line 148:
 
}}
 
}}
 
}}
 
}}
  | data5 =  
+
  | data4 =  
 
{{#if: {{{availability-pg|}}}
 
{{#if: {{{availability-pg|}}}
 
| {{#switch: {{{availability-pg}}}
 
| {{#switch: {{{availability-pg}}}
Line 156: Line 156:
 
}}
 
}}
 
}}
 
}}
  | label6 =
+
  | label5 =
 
{{#if: {{{availability-e-plus|}}}
 
{{#if: {{{availability-e-plus|}}}
 
| {{#switch: {{{availability-e-plus}}}
 
| {{#switch: {{{availability-e-plus}}}
Line 165: Line 165:
 
}}
 
}}
 
}}
 
}}
  | data6 =  
+
  | data5 =  
 
{{#if: {{{availability-e-plus|}}}
 
{{#if: {{{availability-e-plus|}}}
 
| {{#switch: {{{availability-e-plus}}}
 
| {{#switch: {{{availability-e-plus}}}
Line 174: Line 174:
 
}}
 
}}
 
}}
 
}}
  | label7           = Type
+
  | label6           = Type
  | data7           = [[{{{type|}}}]]
+
  | data6           = [[{{{type|}}}]]
  
  | label8           = [[Happy Home Academy|HRA]] points
+
  | label7           = [[Happy Home Academy|HRA]] points
  | data8           = {{{hra-base|}}}
+
  | data7           = {{{hra-base|}}}
  
  | label9           = {{#ifeq: {{{type|}}} | Balloon | [[Fêng shui|Feng shui]]|}}
+
  | label8           = {{#ifeq: {{{type|}}} | Balloon | [[Fêng shui|Feng shui]]|}}
  | data9           = {{#ifeq:{{{type|}}} | Balloon | {{#if: {{{color|}}} | [[Furniture/Animal Crossing/{{{color|}}}|{{color|{{{color|}}}}}]] | None }} | }}
+
  | data8           = {{#ifeq:{{{type|}}} | Balloon | {{#if: {{{color|}}} | [[Furniture/Animal Crossing/{{{color|}}}|{{color|{{{color|}}}}}]] | None }} | }}
  
 
  | widebottomlabel  = Appearances
 
  | widebottomlabel  = Appearances

Revision as of 02:07, August 25, 2022

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

[[File:|200px|]]
Buy price Sell price
Not for sale Cannot be sold
Type [[]]
Appearances
Names in other languages
 Unknown
 N/A
 Unknown
 Unknown
 N/A
 Unknown
 Unknown
 N/A
 N/A
 N/A
 N/A
 N/A

Notes



Template documentation (view)


More Cargo templates

Parameters

Names

identifier
An identifier that connects this item to items in other iterations of Animal Crossing. If an item changes name from game to game, the identifier remains constant. The identifier should be the name of the item as it appears in the earliest Animal Crossing game. For items which can only be obtained as a customization option in a later game (e.g. the Black Pawn & White Pawn become customization options for the Pawn in ACNL), the later name is used instead.
Default value: Item name in page title.
name
The English name of the item.
Default value: Item name in page title.
ja-name
The Japanese name of the item.
fr-name
The French name of the item.
de-name
The German name of the item.
it-name
The Italian name of the item.
zh-name
The Simplified Chinese name of the item.
es-name
The Spanish name of the item.

Metadata

hra-base
The base Happy Room Academy score of the item.
color
The fêng shui color of the item, if applicable. (Only will appear for balloons.)
type
The type of handheld item/tool the item is. This will determine the category.
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.
num-ique
The item's number in the catalog in Dòngwù Sēnlín, if applicable.

Acquiring

availability1, availability2
How the item can be acquired. Value should match one of the options in Template:Availability.
availability1_note, availability2_note
Specification of how the item can be acquired; see the note parameter in Template:Availability.
buy
Cost to purchase in Bells.
sell
Sell price in Bells.

Other

universal-code
The item's universal code in Animal Crossing. Does not currently appear on the page.