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

 
Строка 1: Строка 1:
<includeonly><i class="icon icon-{{{mod}}} {{{class|}}}"></i></includeonly><noinclude><pre>
+
<includeonly><i class="icon icon-{{{mod|}}} {{{class|}}}"></i></includeonly><noinclude><templatedata>
{{ui/icon| mod = | class = }}
+
{
</pre>
+
"params": {
Позволяет вставить иконку.
+
"mod": {
 
+
"description": "Выбор варианта иконки",
'''Параметры:'''
+
"example": "archetype-assassin || archetype-magician || archetype-monk || archetype-shooter || archetype-warrior || arrow-decor || arrow || check || class-arcana || class-bard || class-battlemaster || class-berserker || class-blades || class-blaster || class-demonic || class-destroyer || class-devilhunter || class-fighter || class-hawkeye || class-hunter || class-infighter || class-lancemaster || class-magician || class-paladin || class-scout || class-soulmaster || class-summoner || class-warlord || class-warrior || copy-past || cross || crystal || download || error__icon || friend || lock || logo || pending || refresh || search || shopping-cart || social-discord || social-facebook || social-forum || social-instagram || social-mail || social-odnoklassniki || social-reddit || social-steam-simple || social-steam || social-twitch || social-twitter || social-vkontakte-clean || social-vkontakte || social-weibo || social-youtube || stopwatch || triangle-full || triangle || unlock || warning",
 
+
"type": "line",
* <code>mod</code> : строка<br>Варианты: <code>archetype-assassin || archetype-magician || archetype-monk || archetype-shooter || archetype-warrior || arrow-decor || arrow || check || class-arcana || class-bard || class-battlemaster || class-berserker || class-blades || class-blaster || class-demonic || class-destroyer || class-devilhunter || class-fighter || class-hawkeye || class-hunter || class-infighter || class-lancemaster || class-magician || class-paladin || class-scout || class-soulmaster || class-summoner || class-warlord || class-warrior || copy-past || cross || crystal || download || error__icon || friend || lock || logo || pending || refresh || search || shopping-cart || social-discord || social-facebook || social-forum || social-instagram || social-mail || social-odnoklassniki || social-reddit || social-steam-simple || social-steam || social-twitch || social-twitter || social-vkontakte-clean || social-vkontakte || social-weibo || social-youtube || stopwatch || triangle-full || triangle || unlock || warning</code>.
+
"required": true,
* <code>class</code> : строка (необязательный)<br>Позволяет присвоить дополнительный класс.
+
"label": "Модификатор"
 
+
},
'''Результат:'''
+
"class": {
 
+
"description": "Добавляет дополнительные классы",
* Возвращает строку.
+
"type": "line",
</noinclude>
+
"label": "Класс"
 +
}
 +
},
 +
"format": "inline",
 +
"description": "Шаблон для добавления текстовой иконки.",
 +
    "paramOrder": [
 +
        "mod",
 +
        "class"
 +
    ]
 +
}
 +
</templatedata></noinclude>

Текущая версия на 18:57, 15 июля 2021

Шаблон для добавления текстовой иконки.

Параметры шаблона

Шаблон использует строчное форматирование параметров.

ПараметрОписаниеТипСтатус
Модификаторmod

Выбор варианта иконки

Пример
archetype-assassin || archetype-magician || archetype-monk || archetype-shooter || archetype-warrior || arrow-decor || arrow || check || class-arcana || class-bard || class-battlemaster || class-berserker || class-blades || class-blaster || class-demonic || class-destroyer || class-devilhunter || class-fighter || class-hawkeye || class-hunter || class-infighter || class-lancemaster || class-magician || class-paladin || class-scout || class-soulmaster || class-summoner || class-warlord || class-warrior || copy-past || cross || crystal || download || error__icon || friend || lock || logo || pending || refresh || search || shopping-cart || social-discord || social-facebook || social-forum || social-instagram || social-mail || social-odnoklassniki || social-reddit || social-steam-simple || social-steam || social-twitch || social-twitter || social-vkontakte-clean || social-vkontakte || social-weibo || social-youtube || stopwatch || triangle-full || triangle || unlock || warning
Строка (короткая)обязательный
Классclass

Добавляет дополнительные классы

Строка (короткая)необязательный