Difference between revisions of "Template:MaterialText"

From Animal Crossing: Pocket Camp Wiki
Jump to: navigation, search
(Optimize?)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
  +
<includeonly>{{#vardefine:image
<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>
 
  +
| {{#switch:{{{1|}}}
  +
| Bells = Bells
  +
| Caps = Caps
  +
| Leaf Ticket = Leaf_Ticket
  +
| = Error-image
  +
| #default =
  +
{{#var:{{{1|}}}.Image
  +
| {{#vardefineecho:{{{1|}}}.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>

Latest revision as of 14:42, 24 January 2021