Template:CStyle
From CruisersWiki
(Difference between revisions)
Line 7: | Line 7: | ||
| else= [[wikipedia:file:{{{2}}}|{{{2|}}}]] | | else= [[wikipedia:file:{{{2}}}|{{{2|}}}]] | ||
}} | }} | ||
- | | <span class="chartlet-style" id="{{strip|{{{1|}}}}}">{<!-- | + | | <span class="chartlet-style" id="{{strip|{{{1|}}}}}"><!-- |
+ | -->{<!-- | ||
-->"icon":{ {{q|{{{2|}}}|"src":"{{if | -->"icon":{ {{q|{{{2|}}}|"src":"{{if | ||
- | + | | test= {{filepath:{{{2}}}}} | |
- | + | | then= {{filepath:{{{2}}}|nowiki}} | |
- | + | | else= <nowiki>https:</nowiki>//wikipedia.org/wiki/Special:Redirect/file/{{PAGENAMEE:{{{2}}}}}?width{{=}}{{{iconwidth|20}}}px | |
}}"}}{{q|{{{icon|}}}|,{{{icon}}}}} }<!-- | }}"}}{{q|{{{icon|}}}|,{{{icon}}}}} }<!-- | ||
-->{{q|{{{color|}}}|,"stroke":{ "color":"{{{color}}}"{{q|{{{width|}}}|,"width":"{{{width}}}"}} } }}<!-- | -->{{q|{{{color|}}}|,"stroke":{ "color":"{{{color}}}"{{q|{{{width|}}}|,"width":"{{{width}}}"}} } }}<!-- |
Revision as of 10:27, 29 December 2016
|- | | | [[wikipedia:file:{{{2}}}|]] | {"icon":{ }}