Template:CStyle

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(wikipedia incons stay unresolved, width gets inherited from defaults)
Line 1: Line 1:
<includeonly>|-  
<includeonly>|-  
-
| {{if|test={{{2|}}}|then= {{image|{{{2|}}}|{{{width|20px}}}}} }}
+
| {{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|}}}}}"><!--
-->{<!--
-->{<!--
-
-->"{{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>//en.wikipedia.org/wiki/Special:Redirect/file/{{PAGENAMEE:{{{2}}}}}?width{{=}}{{{width|20}}}px
+
        | test= {{filepath:{{{2}}}}}
-
  }}"}}{{q|{{{icon|}}}|,{{{icon}}}}} }<!--
+
        | 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

Personal tools
advertisement
Friends of Cruisers Wiki