Template:CStyle

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(dashed lines)
 
(22 intermediate revisions not shown)
Line 1: Line 1:
-
|- id="{{{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="icon">{{q|{{{2|}}}|"src"{{=}}"{{if
+
| <span class="chartlet-style" id="{{strip|{{{1|}}}}}"><!--
-
  | test= {{filepath:{{{2}}}}}
+
-->{<!--
-
  | then= {{filepath:{{{2}}}|nowiki}}
+
-->"icon":{{if
-
  | else= <nowiki>https:</nowiki>//wikipedia.org/wiki/Special:Redirect/file/{{PAGENAMEE:{{{2}}}}}?width{{=}}{{{iconwidth|20}}}px
+
    | test= {{{2|}}}{{{icon|}}}
-
  }}",}}{{q|{{{icon|}}}|{{{icon}}}}}</span><!--
+
    | then= { {{q|{{{2|}}}|"src":"{{if
-
--><span class="stroke">{{q|{{{color|}}}|"color"{{=}}"{{{color}}}",}}{{q|{{{width|}}}|"width"{{=}}"{{{width}}}"}}</span><!--
+
        | test= {{filepath:{{{2}}}}}
-
--><span class="fill">{{q|{{{fill|}}}|"color"{{=}}"{{{fill}}}"}}</span><!--
+
        | then= {{filepath:{{{2}}}|nowiki}}"
-
--><span class="text">{{q|{{{text|}}}|{{{text}}}}}</span><!--
+
        | else= {{PAGENAME:{{{2}}}}}"
-
--><span class="zindex">{{q|{{{zindex|}}}|"zindex"{{=}}"{{{zindex}}}"}}</span>}
+
      }}{{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|{{{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>

Latest revision as of 13:11, 28 August 2018


Helper for CruisersWiki:Chartlet.config

Personal tools
advertisement
Friends of Cruisers Wiki