Difference between revisions of "Template:MaterialText"

From Animal Crossing: Pocket Camp Wiki
Jump to: navigation, search
(Optimize?)
(Optimize?)
 
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
+
<includeonly>{{#vardefine:image
| Bells = {{#vardefine:image|Bells}}
+
| {{#switch:{{{1|}}}
  +
| Bells = Bells
| Caps = {{#vardefine:image|Caps}}
 
  +
| Caps = Caps
| Leaf Ticket = {{#vardefine:image|Leaf_Ticket}}
+
| Leaf Ticket = Leaf_Ticket
| #default = {{#vardefine:image|{{#cargo_query:tables=Entities|fields=Image|where=_pageName="{{{1|}}}"|default=Error-image|no html}}}}
 
  +
| = Error-image
}}[[File:{{#var:image}}.png|24px|link={{{1|}}}]] {{#if:{{{link|}}} | [[{{{1|}}}]] | {{{1|}}}
 
  +
| #default =
}}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude>
 
  +
{{#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