Template:CStyle
From CruisersWiki
(Difference between revisions)
(dashed lines) |
|||
(16 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | |- | + | <includeonly>|- |
- | | {{image|{{{2|}}}|{{{ | + | | {{if|test={{{2|}}}|then= {{image|{{{2|}}}|{{ifeq|{{{width|}}}|null|0px|{{{width|20}}}px}}}} }} |
| {{{1|}}} | | {{{1|}}} | ||
- | | {{if | + | | {{if|test={{{2|}}}|then= {{if |
| test= {{filepath:{{{2}}}}} | | test= {{filepath:{{{2}}}}} | ||
| then= [[:file:{{{2}}}|{{{2|}}}]] | | then= [[:file:{{{2}}}|{{{2|}}}]] | ||
| 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":{{if |
- | + | | test= {{{2|}}}{{{icon|}}} | |
- | + | | then= { {{q|{{{2|}}}|"src":"{{if | |
- | + | | test= {{filepath:{{{2}}}}} | |
- | + | | then= {{filepath:{{{2}}}|nowiki}}" | |
- | -->{{q|{{{ | + | | else= {{PAGENAME:{{{2}}}}}" |
- | -->{{q|{{{fill|}}}|," | + | }}{{q|{{{width|}}}|,"width":{{{width}}}}}}}{{q|{{{icon|}}}|,{{{icon}}}}} } |
- | -->{{q|{{{text|}}}|," | + | | else= null |
- | -->{{q|{{{ | + | }}<!-- |
- | -->}</span><noinclude> | + | -->{{q|{{{outline|}}}|,"stroke":{ "color":{{{outline}}}{{q|{{{outlinew|}}}|,"width":{{{outlinew|2}}}}}{{q|{{{dash|}}}|,"lineDash":[{{{dash}}}]}} } }}<!-- |
+ | -->{{q|{{{fill|}}}|,"fill":{ "color":{{{fill}}}} }}<!-- | ||
+ | -->{{q|{{{text|}}}|,"text":{ {{{text}}}<!-- | ||
+ | -->{{q|{{{textoutl|}}}|,"stroke":{ "color":{{{textoutl}}}{{q|{{{txoutlw|}}}|,"width":{{{textoutlw}}}}} } }}<!-- | ||
+ | -->{{q|{{{textfill|}}}|,"fill":{ "color":{{{textfill}}}} }}<!-- | ||
+ | --> } }}<!-- | ||
+ | -->{{q|{{{zindex|}}}|,"zIndex":{{{zindex}}} }}<!-- | ||
+ | -->}</span></includeonly><noinclude> | ||
+ | Helper for [[CruisersWiki:Chartlet.config]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13:11, 28 August 2018
Helper for CruisersWiki:Chartlet.config