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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показана 1 промежуточная версия этого же участника)
Строка 1: Строка 1:
 
{{ #switch:{{lc:{{{1}}}}}
 
{{ #switch:{{lc:{{{1}}}}}
 
| guardian    | g  = {{guardian}}
 
| guardian    | g  = {{guardian}}
| revenant    | re = {{revenant}}
+
| revenant    | re = {{revenant}}
 
| warrior      | w  = {{warrior}}
 
| warrior      | w  = {{warrior}}
 +
| engineer    | en = {{engineer}}
 
| ranger      | r  = {{ranger}}
 
| ranger      | r  = {{ranger}}
 +
| thief        | t  = {{thief}}
 +
| elementalist | e  = {{elementalist}}
 +
| mesmer      | m  = {{mesmer}}
 
| necromancer  | n  = {{necromancer}}
 
| necromancer  | n  = {{necromancer}}
| mesmer      | m  = {{mesmer}}
 
| elementalist | e  = {{elementalist}}
 
| engineer    | en = {{engineer}}
 
| thief        | t  = {{thief}}
 
  
 
| dragonhunter | dh = {{dragonhunter}}
 
| dragonhunter | dh = {{dragonhunter}}
Строка 24: Строка 24:
 
| spellbreaker | sp = {{Spellbreaker}}
 
| spellbreaker | sp = {{Spellbreaker}}
 
| holosmith    | hs = {{Holosmith}}
 
| holosmith    | hs = {{Holosmith}}
| soulbeast     | sb = {{Soulbeast}}
+
| soulbeast   | sb = {{Soulbeast}}
 
| deadeye      | de = {{Deadeye}}
 
| deadeye      | de = {{Deadeye}}
 
| weaver      | we = {{Weaver}}
 
| weaver      | we = {{Weaver}}
 
| mirage      | mi = {{Mirage}}
 
| mirage      | mi = {{Mirage}}
 
| scourge      | sc = {{Scourge}}
 
| scourge      | sc = {{Scourge}}
 +
 +
| willbender  | wb = {{willbender}}
 +
| vindicator  | vi = {{vindicator}}
 +
| bladesworn  | bs = {{bladesworn}}
 +
| mechanist    | me = {{mechanist}}
 +
| untamed      | ut = {{untamed}}
 +
| specter      | st = {{specter}}
 +
| catalyst    | ca = {{catalyst}}
 +
| harbinger    | hb = {{harbinger}}
 +
| virtuoso    | vr = {{virtuoso}}
 +
 
| #default = [[File:Any tango icon 20px.png|Common|link=Profession]]
 
| #default = [[File:Any tango icon 20px.png|Common|link=Profession]]
 
}}<noinclude>
 
}}<noinclude>
  
 
== Description ==
 
== Description ==
This template is used to generate the icon for the given profession.  
+
This template is used to generate the icon for the given profession.
It returns ''Any'' or the given parameter if no valid profession name is given.  
+
It returns ''Any'' or the given parameter if no valid profession name is given.
It is used in {{tl|Skill infobox}} and {{tl|Trait infobox}}.  
+
It is used in {{tl|Skill infobox}} and {{tl|Trait infobox}}.
It uses [[:category:Profession icon templates|Profession icon templates]] which in turn use {{tl|Tango icon sizes}}.
+
It uses [[:Category:Profession icon templates|Profession icon templates]] which in turn use {{tl|Profession icon}}, except for the common/some templates which continue to use {{tl|Tango icon sizes}}.
  
 +
== Usage ==
 
=== Parameters ===
 
=== Parameters ===
; Unnamed parameter 1
+
;1 ''(unnamed parameter)''
 
: Profession name or profession abbreviation; case insensitive.
 
: Profession name or profession abbreviation; case insensitive.
 
== Example ==
 
<code><nowiki>{{Profession|guardian}}</nowiki></code> {{Profession|guardian}}<br>
 
<code><nowiki>{{Profession|g}}</nowiki></code> {{Profession|g}}
 
 
== Standard Values ==
 
 
{| {{STDT}}
 
{| {{STDT}}
! Parameter !! Icon
+
! colspan="3" | Profession
|-
+
! colspan="3" | Heart of Thorns
| guardian<br>g || {{Profession|guardian}}
+
! colspan="3" | Path of Fire
|-
+
! colspan="3" | End of Dragons
| revenant<br>re || {{Profession|revenant}}
 
|-
 
| warrior<br>w || {{Profession|warrior}}
 
|-
 
| ranger<br>r || {{Profession|ranger}}
 
|-
 
| necromancer<br>n || {{Profession|necromancer}}
 
|-
 
| mesmer<br>m || {{Profession|mesmer}}
 
|-
 
| elementalist<br>e || {{Profession|elementalist}}
 
|-
 
| engineer<br>en || {{Profession|engineer}}
 
|-
 
| thief<br>t || {{Profession|thief}}
 
|-
 
| dragonhunter<br>dh || {{Profession|dragonhunter}}
 
|-
 
| herald<br>h || {{Profession|herald}}
 
|-
 
| berserker<br>b || {{Profession|berserker}}
 
|-
 
| druid<br>d || {{Profession|druid}}
 
|-
 
| reaper<br>rp || {{Profession|reaper}}
 
|-
 
| chronomancer<br>c || {{Profession|chronomancer}}
 
|-
 
| tempest<br>tp || {{Profession|tempest}}
 
|-
 
| scrapper<br>s || {{Profession|scrapper}}
 
 
|-
 
|-
| daredevil<br>dd || {{Profession|daredevil}}
+
! colspan="2" | Parameter
 +
! rowspan="2" | Icon
 +
! colspan="2" | Parameter
 +
! rowspan="2" | Icon
 +
! colspan="2" | Parameter
 +
! rowspan="2" | Icon
 +
! colspan="2" | Parameter
 +
! rowspan="2" | Icon
 +
|- class="line-bottom"
 +
! Full
 +
! <abbr title="Abbreviated">Abbr.</abbr>
 +
! Full
 +
! <abbr title="Abbreviated">Abbr.</abbr>
 +
! Full
 +
! <abbr title="Abbreviated">Abbr.</abbr>
 +
! Full
 +
! <abbr title="Abbreviated">Abbr.</abbr>
 
|-
 
|-
| firebrand<br>fb || {{Profession|firebrand}}
+
| guardian || g || {{profession|guardian}}
 +
| dragonhunter || dh || {{profession|dragonhunter}}
 +
| firebrand || fb || {{profession|firebrand}}
 +
| willbender || wb || {{profession|willbender}}
 
|-
 
|-
| renegade<br>rn || {{Profession|renegade}}
+
| revenant || re || {{profession|revenant}}
 +
| herald || h || {{profession|herald}}
 +
| renegade || rn || {{profession|renegade}}
 +
| vindicator || vn || {{profession|vindicator}}
 
|-
 
|-
| spellbreaker<br>sp || {{Profession|spellbreaker}}
+
| warrior || w || {{profession|warrior}}
 +
| berserker || b || {{profession|berserker}}
 +
| spellbreaker || sp || {{profession|spellbreaker}}
 +
| bladesworn || bs || {{profession|bladesworn}}
 
|-
 
|-
| holosmith<br>hs || {{Profession|holosmith}}
+
| engineer || en || {{profession|engineer}}
 +
| scrapper || s || {{profession|scrapper}}
 +
| holosmith || hs || {{profession|holosmith}}
 +
| mechanist || me || {{profession|mechanist}}
 
|-
 
|-
| soulbeast<br>sb || {{Profession|soulbeast}}
+
| ranger || r || {{profession|ranger}}
 +
| druid || d || {{profession|druid}}
 +
| soulbeast || sb || {{profession|soulbeast}}
 +
| untamed || ut || {{profession|untamed}}
 
|-
 
|-
| deadeye<br>de || {{Profession|deadeye}}
+
| thief || t || {{profession|thief}}
 +
| daredevil || dd || {{profession|daredevil}}
 +
| deadeye || de || {{profession|deadeye}}
 +
| specter || st || {{profession|specter}}
 
|-
 
|-
| weaver<br>we || {{Profession|weaver}}
+
| elementalist || e || {{profession|elementalist}}
 +
| tempest || tp || {{profession|tempest}}
 +
| weaver || we || {{profession|weaver}}
 +
| catalyst || ca || {{profession|catalyst}}
 
|-
 
|-
| mirage<br>mi || {{Profession|mirage}}
+
| mesmer || m || {{profession|mesmer}}
 +
| chronomancer || c || {{profession|chronomancer}}
 +
| mirage || mi || {{profession|mirage}}
 +
| virtuoso || vr || {{profession|virtuoso}}
 
|-
 
|-
| scourge<br>sc || {{Profession|scourge}}
+
| necromancer || n || {{profession|necromancer}}
 +
| reaper || rp || {{profession|reaper}}
 +
| scourge || sc || {{profession|scourge}}
 +
| harbinger || hb || {{profession|harbinger}}
 
|-
 
|-
| default || {{Profession|default}}
+
| ''default'' || || {{profession|default}} || || || || || || || || ||
 
|}
 
|}
  
[[Category:Icon templates]]
+
=== Example ===
 +
<code><nowiki>{{Profession|guardian}}</nowiki></code> {{Profession|guardian}}<br>
 +
<code><nowiki>{{Profession|g}}</nowiki></code> {{Profession|g}}
 +
 
 +
[[Category:Profession icon templates|*]]
 
</noinclude>
 
</noinclude>

Текущая версия на 04:53, 2 марта 2022

Common

Description[править]

This template is used to generate the icon for the given profession. It returns Any or the given parameter if no valid profession name is given. It is used in {{Skill infobox}} and {{Trait infobox}}. It uses Profession icon templates which in turn use {{Profession icon}}, except for the common/some templates which continue to use {{Tango icon sizes}}.

Usage[править]

Parameters[править]

1 (unnamed parameter)
Profession name or profession abbreviation; case insensitive.
Profession Heart of Thorns Path of Fire End of Dragons
Parameter Icon Parameter Icon Parameter Icon Parameter Icon
Full Abbr. Full Abbr. Full Abbr. Full Abbr.
guardian g Guardian icon small.png dragonhunter dh Dragonhunter icon small.png firebrand fb Firebrand icon small.png willbender wb Willbender icon small.png
revenant re Revenant icon small.png herald h Herald icon small.png renegade rn Renegade icon small.png vindicator vn Vindicator icon small.png
warrior w Warrior icon small.png berserker b Berserker icon small.png spellbreaker sp Spellbreaker icon small.png bladesworn bs Bladesworn icon small.png
engineer en Engineer icon small.png scrapper s Scrapper icon small.png holosmith hs Holosmith icon small.png mechanist me Mechanist icon small.png
ranger r Ranger icon small.png druid d Druid icon small.png soulbeast sb Soulbeast icon small.png untamed ut Untamed icon small.png
thief t Thief icon small.png daredevil dd Daredevil icon small.png deadeye de Deadeye icon small.png specter st Specter icon small.png
elementalist e Elementalist icon small.png tempest tp Tempest icon small.png weaver we Weaver icon small.png catalyst ca Catalyst icon small.png
mesmer m Mesmer icon small.png chronomancer c Chronomancer icon small.png mirage mi Mirage icon small.png virtuoso vr Virtuoso icon small.png
necromancer n Necromancer icon small.png reaper rp Reaper icon small.png scourge sc Scourge icon small.png harbinger hb Harbinger icon small.png
default Common

Example[править]

{{Profession|guardian}} Guardian icon small.png
{{Profession|g}} Guardian icon small.png