Difference between revisions of "Template:Furniture Text"
MstrPoptart (talk | contribs) m |
BryghtShadow (talk | contribs) (Optimize?) |
||
Line 1: | Line 1: | ||
+ | <includeonly>{{#vardefine:furniture text image |
||
⚫ | |||
+ | | {{#if:{{{1|}}} |
||
+ | | {{#var:{{{1|}}}.Image |
||
+ | | {{#vardefineecho:{{{1|}}}.Image |
||
+ | | {{#cargo_query:tables=Furniture|where=_pageName="{{{1}}}"|fields=Image|group by=_pageName|no html}} |
||
+ | }} |
||
+ | }} |
||
+ | | Error-image |
||
+ | }} |
||
+ | }}[[File:{{#var:furniture text image}}.png|24px|link=]] {{#ifeq:{{{tooltip|true}}}|true |
||
+ | | {{#vardefine:furniture tooltip content |
||
+ | | {{#if:{{{1|}}} |
||
+ | | {{#var:{{{1|}}}.Tooltip |
||
+ | | {{#vardefineecho:{{{1|}}}.Tooltip |
||
⚫ | |||
+ | }} |
||
+ | }} |
||
+ | }} |
||
+ | }}{{Tooltip|[[{{{1}}}]]|{{#var:furniture tooltip content}}|line=false}} |
||
+ | | [[{{{1}}}]] |
||
+ | }}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> |