Шаблон:Iconify: различия между версиями

Материал из Русская Вики Hearts of Iron 4
Перейти к навигации Перейти к поиску
м (1 revision imported: From HoI4 beta wiki)
м (nowrap)
 
Строка 1: Строка 1:
<includeonly>[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}} icon|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{1}}}]]|[[{{{1}}}]]}}</includeonly><noinclude>
+
<includeonly><span style="white-space:nowrap">[[File:{{{file|{{{1}}}}}}.png|{{ucfirst:{{{1}}}}}|link={{{link|{{{1}}}}}}|{{#if:{{{2|}}}|{{{2}}}|x22px}}]] {{#if:{{{link|}}}|[[{{{link}}}|{{{1}}}]]|[[{{{1}}}]]}}</span></includeonly><noinclude>
 
{{template doc}}
 
{{template doc}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Текущая версия на 15:46, 15 июля 2016

[view] [edit]Template-info.png Template documentation

This template can be used for embedding icons in the text. It provides the icon followed by the corresponding link.

Parameters

Parameter Description Status Default
1 identifier for the icon required empty
2 width of the icon optional x22px
file alternative file optional {{{1}}}
link alternative link optional {{{1}}}

Usage

Usage is based on common naming convention that icons will be directly named after what they represent.

For instance:

Has trait {{iconify|Panzer Leader}}
Has trait Panzer Leader Panzer Leader