Template:CStyle

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(dashed lines)
 
(6 intermediate revisions not shown)
Line 1: Line 1:
<includeonly>|-  
<includeonly>|-  
-
| {{image|{{{2|}}}|{{{width|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|}}}}}"><!--
-->{<!--
-->{<!--
-
-->"{{q|{{{2|}}}{{{icon|}}}|icon|x}}":{ {{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{{=}}{{{width|20}}}px
+
        | test= {{filepath:{{{2}}}}}
-
  }}"}}{{q|{{{icon|}}}|,{{{icon}}}}} }<!--
+
        | then= {{filepath:{{{2}}}|nowiki}}"
-
-->{{q|{{{outline|}}}|,"stroke":{ "color":{{{outline}}}{{q|{{{outlinew|}}}|,"width":{{{outlinew|2}}}}} } }}<!--
+
        | 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}}}<!--

Latest revision as of 13:11, 28 August 2018


Helper for CruisersWiki:Chartlet.config

Personal tools
advertisement
Friends of Cruisers Wiki