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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<span style="display:inline-block;overflow:hidden;width:{{#if:{{{large|}}}|35px|20px}};height:{{#if:{{{large|}}}|35px|20px}};vertical-align:middle;">[[Image:{{#repla...»)
 
 
Строка 1: Строка 1:
<span style="display:inline-block;overflow:hidden;width:{{#if:{{{large|}}}|35px|20px}};height:{{#if:{{{large|}}}|35px|20px}};vertical-align:middle;">[[Image:{{#replace:{{#replace:{{{1|Skill}}}|+|}}|%|}}.png|{{#if:{{{large|}}}|35x35px|20x20px}}|{{{1|}}}]]</span>&nbsp;{{{1|}}}<noinclude>
+
<span style="display:inline-block;overflow:hidden;width:{{#if:{{{large|}}}|35px|20px}};height:{{#if:{{{large|}}}|35px|20px}};vertical-align:middle;">[[Image:{{#replace:{{#replace:{{{1|Skill}}}|+|}}|%|}}.png|{{#if:{{{large|}}}|35x35px|20x20px}}|{{{2|{{{1|}}}}}}]]</span>&nbsp;{{{2|{{{1|}}}}}}<noinclude>
  
 
== Description ==
 
== Description ==
Строка 10: Строка 10:
 
=== Parameters ===
 
=== Parameters ===
 
; ''unnamed parameter'' 1
 
; ''unnamed parameter'' 1
: Asset name.
+
: File name without "File:" namespace prefix or ".png" suffix.
 +
; ''unnamed parameter'' 2
 +
: Optional display text. Defaults to parameter 1.
 
; ''large''
 
; ''large''
 
: Put anything for this to make the icon twice as large.
 
: Put anything for this to make the icon twice as large.

Текущая версия на 14:20, 26 мая 2017

Skill.png 

Description[править]

{{plain icon|<asset name>}}

Displays an icon for a game asset followed by the asset name in plaintext. Assumes the standard practice for icon names: File:<asset name>.png

This template is intended for assets that have icons but do not have individual articles, thus using a template like {{Skill icon}} or {{Item icon}} (which always force a link) doesn't make sense.

Parameters[править]

unnamed parameter 1
File name without "File:" namespace prefix or ".png" suffix.
unnamed parameter 2
Optional display text. Defaults to parameter 1.
large
Put anything for this to make the icon twice as large.

Examples[править]

  • Research Politics Level 1 Research Politics Level 1 is produced from {{plain icon|Research Politics Level 1}}
  • Hire Outfitter Hire Outfitter is produced from {{plain icon|Hire Outfitter|large=y}}