Template:CStyle
From CruisersWiki
(Difference between revisions)
Line 7: | Line 7: | ||
| else= [[wikipedia:file:{{{2}}}|{{{2|}}}]] | | else= [[wikipedia:file:{{{2}}}|{{{2|}}}]] | ||
}} | }} | ||
- | | <span class="icon">{{q|{{{2|}}}|"src"{{=}}"{{{2}}}",}}{{q|{{{width|}}}|"width"{{=}}"{{{iconwidth}}}",}}{{q|{{{icon|}}}|{{{icon}}}}}</span> | + | | <span class="icon">{{q|{{{2|}}}|"src"{{=}}"{{if |
+ | | test= {{filepath:{{{2}}}}} | ||
+ | | then= {{filepath:{{{2}}}}} | ||
+ | | else= https://wikipedia.org/wiki/Special:Redirect/file/{{urlencode:{{{2}}}}}{{q|{{{width|}}}|?width{{=}}{{{iconwidth}}}}} | ||
+ | }}",}}{{q|{{{width|}}}|"width"{{=}}"{{{iconwidth}}}",}}{{q|{{{icon|}}}|{{{icon}}}}}</span> | ||
<span class="stroke">{{q|{{{color|}}}|"color"{{=}}"{{{color}}}",}}{{q|{{{width|}}}|"width"{{=}}"{{{width}}}"}}</span> | <span class="stroke">{{q|{{{color|}}}|"color"{{=}}"{{{color}}}",}}{{q|{{{width|}}}|"width"{{=}}"{{{width}}}"}}</span> | ||
<span class="fill">{{q|{{{fill|}}}|"color"{{=}}"{{{fill}}}"}}</span> | <span class="fill">{{q|{{{fill|}}}|"color"{{=}}"{{{fill}}}"}}</span> | ||
<span class="text">{{q|{{{text|}}}|{{{text}}}}}</span> | <span class="text">{{q|{{{text|}}}|{{{text}}}}}</span> | ||
<span class="zindex">{{q|{{{zindex|}}}|"zindex"{{=}}"{{{zindex}}}"}}</span> | <span class="zindex">{{q|{{{zindex|}}}|"zindex"{{=}}"{{{zindex}}}"}}</span> |
Revision as of 09:18, 29 December 2016
|- id="" | | | [[wikipedia:file:{{{2}}}|]] |