Template:CStyle

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(dashed lines)
 
(17 intermediate revisions not shown)
Line 1: Line 1:
-
|-  
+
<includeonly>|-  
-
| {{image|{{{2|}}}|{{{iconwidth|20px}}}}}
+
| {{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":{ {{q|{{{2|}}}|"src":"{{if
+
-->"icon":{{if
-
    | test= {{filepath:{{{2}}}}}
+
    | test= {{{2|}}}{{{icon|}}}
-
    | then= {{filepath:{{{2}}}|nowiki}}
+
    | then= { {{q|{{{2|}}}|"src":"{{if
-
    | else= <nowiki>https:</nowiki>//wikipedia.org/wiki/Special:Redirect/file/{{PAGENAMEE:{{{2}}}}}?width{{=}}{{{iconwidth|20}}}px
+
        | test= {{filepath:{{{2}}}}}
-
  }}"}}{{q|{{{icon|}}}|,{{{icon}}}}} }<!--
+
        | then= {{filepath:{{{2}}}|nowiki}}"
-
-->{{q|{{{color|}}}|,"stroke":{ "color":{{{color}}}{{q|{{{width|}}}|,"width":{{{width}}}}} } }}<!--
+
        | else= {{PAGENAME:{{{2}}}}}"
 +
      }}{{q|{{{width|}}}|,"width":{{{width}}}}}}}{{q|{{{icon|}}}|,{{{icon}}}}} }
 +
    | else= null
 +
    }}<!--
 +
-->{{q|{{{outline|}}}|,"stroke":{ "color":{{{outline}}}{{q|{{{outlinew|}}}|,"width":{{{outlinew|2}}}}}{{q|{{{dash|}}}|,"lineDash":[{{{dash}}}]}} } }}<!--
-->{{q|{{{fill|}}}|,"fill":{ "color":{{{fill}}}} }}<!--
-->{{q|{{{fill|}}}|,"fill":{ "color":{{{fill}}}} }}<!--
-
-->{{q|{{{text|}}}|,"text":{ {{{text}}} } }}<!--
+
-->{{q|{{{text|}}}|,"text":{ {{{text}}}<!--
-
-->{{q|{{{zindex|}}}|,"zindex":{{{zindex}}} }}<!--
+
  -->{{q|{{{textoutl|}}}|,"stroke":{ "color":{{{textoutl}}}{{q|{{{txoutlw|}}}|,"width":{{{textoutlw}}}}} } }}<!--
-
-->}</span><noinclude>
+
  -->{{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

Personal tools
advertisement
Friends of Cruisers Wiki