Difference between revisions of "Template:Unit image"
Jump to navigation
Jump to search
m |
m (Make them all protocol-relative. In case certificates stop working at some point.) |
||
Line 1: | Line 1: | ||
{{#ifeq:{{#invoke:String|str_find|{{{1}}}|http}}|-1| | {{#ifeq:{{#invoke:String|str_find|{{{1}}}|http}}|-1| | ||
{{#if:{{{1|}}}|<img src="//manual.zero-k.info/unitpics/{{{1}}}.png" alt="{{{2|}}}"{{#if:{{{style|}}}|<nowiki> </nowiki>style="{{{style|}}}"}}>| | {{#if:{{{1|}}}|<img src="//manual.zero-k.info/unitpics/{{{1}}}.png" alt="{{{2|}}}"{{#if:{{{style|}}}|<nowiki> </nowiki>style="{{{style|}}}"}}>| | ||
− | }}|{{#invoke:String|replace|{{{1|}}}| | + | }}|{{#invoke:String|replace|{{{1|}}}|https?:|replace=|plain=false}}<nowiki></nowiki> |
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Please add categories and interwiki links to /doc subpage, not here! --> | <!-- Please add categories and interwiki links to /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |