Template:CStyle
From CruisersWiki
(Difference between revisions)
(wikipedia incons stay unresolved, width gets inherited from defaults) |
|||
Line 1: | Line 1: | ||
<includeonly>|- | <includeonly>|- | ||
- | | {{if|test={{{2|}}}|then= {{image|{{{2|}}}|{{{width| | + | | {{if|test={{{2|}}}|then= {{image|{{{2|}}}|{{ifeq|{{{width|}}}|null|0px|{{{width|20}}}px}}}} }} |
| {{{1|}}} | | {{{1|}}} | ||
| {{if|test={{{2|}}}|then= {{if | | {{if|test={{{2|}}}|then= {{if | ||
Line 9: | Line 9: | ||
| <span class="chartlet-style" id="{{strip|{{{1|}}}}}"><!-- | | <span class="chartlet-style" id="{{strip|{{{1|}}}}}"><!-- | ||
-->{<!-- | -->{<!-- | ||
- | -->"{{ | + | -->"icon":{{if |
- | + | | test= {{{2|}}}{{{icon|}}} | |
- | + | | then= { {{q|{{{2|}}}|"src":"{{if | |
- | + | | test= {{filepath:{{{2}}}}} | |
- | + | | then= {{filepath:{{{2}}}|nowiki}}" | |
+ | | else= {{PAGENAME:{{{2}}}}}" | ||
+ | }}{{q|{{{width|}}}|,"width":{{{width}}}}}}}{{q|{{{icon|}}}|,{{{icon}}}}} } | ||
+ | | else= null | ||
+ | }}<!-- | ||
-->{{q|{{{outline|}}}|,"stroke":{ "color":{{{outline}}}{{q|{{{outlinew|}}}|,"width":{{{outlinew|2}}}}} } }}<!-- | -->{{q|{{{outline|}}}|,"stroke":{ "color":{{{outline}}}{{q|{{{outlinew|}}}|,"width":{{{outlinew|2}}}}} } }}<!-- | ||
-->{{q|{{{fill|}}}|,"fill":{ "color":{{{fill}}}} }}<!-- | -->{{q|{{{fill|}}}|,"fill":{ "color":{{{fill}}}} }}<!-- |
Revision as of 10:12, 1 February 2017
Helper for CruisersWiki:Chartlet.config