Template:TWI: Difference between revisions

From TNOpediA
Content added Content deleted
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:{{{1}}}|{{#if: {{{3|}}} | {{{3}}} | 15px}}]] [[{{{2}}}]]
{{#ifeq: {{{4|}}}|nolink|[[File:{{{1}}}|{{#if: {{{3|}}} | {{{3}}} | 15px}}]] {{{2}}}| [[File:{{{1}}}|{{#if: {{{3|}}} | {{{3}}} | 15px}}|link={{{2}}}]] [[{{{2}}}{{#if: {{{5|}}} | {{!}}{{{5}}} | }}]]}}<noinclude><br>
{{Documentation}}

<noinclude>
TWI = Text with Icon<br>
Usage: 1 = File, 2 = Name, 3 = Size of icon (If not defined then 15px)<br>

Example:<br>
<nowiki>{{TWI|Flag_of_Aiir.svg|Aïr}}</nowiki><br>
{{TWI|Flag_of_Aiir.svg|Aïr}}<br>
<nowiki>{{TWI|Flag_of_Aiir.svg|Aïr|50px}}</nowiki><br>
{{TWI|Flag_of_Aiir.svg|Aïr|50px}}


</noinclude>
</noinclude>

Latest revision as of 14:53, 30 March 2024

[[File:{{{1}}}|15px|link={{{2}}}]] [[{{{2}}}]]

Page Module:Documentation/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").