Difference between revisions of "Template:MaterialText"

From Animal Crossing: Pocket Camp Wiki
Jump to: navigation, search
(Optimize?)
Line 1: Line 1:
  +
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#ifeq:{{{1|}}}|Bells|{{#vardefine:image|[[File:Bells.png|24px|link={{{1|}}}]]}}|{{#ifeq:{{{1|}}}|Caps|{{#vardefine:image|[[File:Caps.png|24px|link={{{1|}}}]]}}|{{#ifeq:{{{1|}}}|Leaf Ticket|{{#vardefine:image|[[File:Leaf_Ticket.png|24px|link={{{1|}}}]]}}|{{#vardefine:image|[[File:Moo_-_Mr._Resetti.jpg|24px|link={{{1|}}}]]}}}}}}}}{{#ifeq:{{#cargo_query:tables=CraftMaterials|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=CraftMaterials|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=Collectibles|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=Collectibles|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=GardenCreatures|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=GardenCreatures|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=FishingTourneyCreatures|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=FishingTourneyCreatures|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=Flowers|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=Flowers|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=Seeds|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=Seeds|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=Furniture|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=Furniture|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#ifeq:{{#cargo_query:tables=Tools|where=_pageName="{{{1|}}}"|default=No}} | No | | {{#vardefine:image|[[File:{{#cargo_query:tables=Tools|fields=Image|where=_pageName="{{{1|}}}"|no html}}.png|24px|link={{{1|}}}]]}}}}{{#var:image}} {{#if:{{{link|}}} | [[{{{1|}}}]] | {{{1|}}} }}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
 
  +
| Bells = {{#vardefine:image|Bells}}
  +
| Caps = {{#vardefine:image|Caps}}
  +
| Leaf Ticket = {{#vardefine:image|Leaf_Ticket}}
  +
| #default = {{#vardefine:image|{{#cargo_query:tables=Entities|fields=Image|where=_pageName="{{{1|}}}"|default=Error-image|no html}}}}
  +
}}[[File:{{#var:image}}.png|24px|link={{{1|}}}]] {{#if:{{{link|}}} | [[{{{1|}}}]] | {{{1|}}}
  +
}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>

Revision as of 12:17, 24 January 2021