Difference between revisions of "Template:PGItems"

From Nookipedia, the Animal Crossing wiki
Line 96: Line 96:
 
  | label3 =  
 
  | label3 =  
 
{{#if: {{{availability-dnm|}}}
 
{{#if: {{{availability-dnm|}}}
| {{#if: {{{in-ique|}}}
+
    |{{#if: {{{num-ique|}}}
| Obtain via:<br>({{DnM|shortest}}/{{iQue|shortest}})
+
        |Obtain via:<br>({{DnM|shortest}}/{{iQue|shortest}})
         | Obtain via:<br>({{DnM|shortest}})
+
         |Obtain via:<br>({{DnM|shortest}})
 
     }}
 
     }}
| {{#if: {{{in-ique|}}}
+
    |{{#if: {{{num-ique|}}}
| Obtain via:<br>({{iQue|shortest}})
+
        |Obtain via:<br>({{iQue|shortest}})
 +
    }}
 +
}}
 +
 
 +
| data3 =
 +
{{#if: {{{availability-dnm|}}}
 +
    | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}} {{#if: {{{availability-dnm-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm-other|}}}}}|}}
 +
    | {{#if: {{{availability-ique|}}}
 +
        | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique|}}}}} {{#if: {{{availability-ique-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique-other|}}}}}|}}
 
     }}
 
     }}
 
}}
 
}}
| data3 = {{#if: {{{availability-dnm|}}}
+
 
| {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-dnm|}}}}} {{#if: {{{availability-dnm-other|}}}
+
  | label4 =  
    |<div class="mw-collapsible mw-collapsed" style="width:100%">
+
{{#if: {{{availability-plus|}}}
Also available from...
+
        | {{#switch: {{{availability-plus}}}{{{availability-plus-other|}}}
<div class="mw-collapsible-content">
+
            | {{{availability-pg}}}{{{availability-pg-other|}}} =
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-dnm-other|}}} }}
+
            {{#ifeq: {{{availability-plus}}}{{{availability-plus-other|}}} | {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
</div>
+
                | Obtain via:<br>({{DnM+|shortest}}/{{PG|shortest}}/{{nowrap|{{DnMe+|shortest}}}})
</div>| }}
+
                | Obtain via:<br>({{DnM+|shortest}}/{{PG|shortest}})
| {{#if: {{{availability-ique|}}}
+
            }}
| {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-ique|}}}}} {{#if: {{{availability-dnm-other|}}}
+
            | {{{availability-e-plus}}}{{{availability-e-plus-other|}}} = Obtain via:<br>({{DnM+|shortest}}/{{DnMe+|shortest}})
    |<div class="mw-collapsible mw-collapsed" style="width:100%">
+
            | Obtain via:<br>({{DnM+|shortest}})
Also available from...
+
        }}
<div class="mw-collapsible-content">
+
}}
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-ique-other|}}} }}
+
 
</div>
+
| data4 =
</div>| }}
+
{{#if: {{{availability-plus|}}}
 +
    |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}}{{#if: {{{availability-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus-other|}}}}}|}}
 +
}}
 +
 
 +
 
 +
| label5 =  
 +
{{#if: {{{availability-pg|}}}
 +
    | {{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}
 +
        | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        | {{{availability-e-plus}}}{{{availability-e=plus-other|}}} = Obtain via:<br>({{PG|shortest}}/{{DnMe+|shortest}})
 +
        | Obtain via:<br>({{PG|shortest}})
 
     }}
 
     }}
 +
}}
 +
 +
| data5  =
 +
{{#if: {{{availability-pg|}}}
 +
    |{{#switch: {{{availability-pg}}}{{{availability-pg-other|}}}
 +
        | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg|}}}}}{{#if: {{{availability-pg-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg-other|}}}}}|}}}}
 
}}
 
}}
| label4 =
+
 
{{#if: {{{availability-plus|}}} |Obtain via:<br>({{DnM+|shortest}}) | }}
 
| data4 = {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-plus|}}}}} {{#if: {{{availability-plus-other|}}} |<div class="mw-collapsible mw-collapsed" style="width:100%">
 
Also available from...
 
<div class="mw-collapsible-content">
 
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-plus-other|}}} }}
 
</div>
 
</div>| }}
 
 
| label5 =
 
{{#if: {{{availability-pg|}}} |Obtain via:<br>({{PG|shortest}}) | }}
 
| data5 = {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-pg|}}}}} {{#if: {{{availability-pg-other|}}} |<div class="mw-collapsible mw-collapsed" style="width:100%">
 
Also available from...
 
<div class="mw-collapsible-content">
 
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-pg-other|}}} }}
 
</div>
 
</div>| }}
 
  
 
| label6 =  
 
| label6 =  
{{#if: {{{availability-e-plus|}}} |Obtain via:<br>({{DnMe+|shortest}}) | }}
+
{{#if: {{{availability-e-plus|}}}
  | data6 = {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus|}}}}} {{#if: {{{availability-e-plus-other|}}} |<div class="mw-collapsible mw-collapsed" style="width:100%">
+
    | {{#switch: {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
Also available from...
+
        | {{{availability-plus}}}{{{availability-plus-other|}}} =
<div class="mw-collapsible-content">
+
        | {{{availability-pg}}}{{{availability-pg-other|}}} =
{{#invoke: Items | outputAvailabilitiesFromList | {{{availability-e-plus-other|}}} }}
+
        | Obtain via:<br>({{DnMe+|shortest}})
</div>
+
    }}
</div>| }}
+
}}
 +
 
 +
  | data6 =
 +
{{#if: {{{availability-e-plus|}}}
 +
    |{{#switch: {{{availability-e-plus}}}{{{availability-e-plus-other|}}}
 +
    | {{{availability-plus}}}{{{availability-plus-other|}}} =
 +
        | {{{availability-pg}}}{{{availability-pg-other|}}} =
 +
    | {{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus|}}}}}{{#if: {{{availability-e-plus-other|}}} |{{#invoke: Items| outputAvailabilitiesFromList | {{{availability-e-plus-other|}}}}}|}}}}
 +
}}
  
 
  | widebottomlabel  = Appearances
 
  | widebottomlabel  = Appearances

Revision as of 08:10, November 6, 2022

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

[[File:|256px|class=sprite|]]
Buy price Sell price
Not for sale Cannot be sold
Appearances
Names in other languages
 Unknown
 N/A
 Unknown
 Unknown
 N/A
 Unknown
 Unknown
 N/A
 N/A
 N/A
 N/A
 N/A
Lua Logo.svg
This template is using a Lua module
To change certain features of this template, the following modules will need to be edited:
  • Module:Items
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
    Lua Logo.svg
    This template is using a Lua module
    To change certain features of this template, the following modules will need to be edited:
  • Module:Items
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

    No documentation for Template:PGItems exists. Create it.