Шаблон:Specialization infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|}}} }}<!-- | <includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|}}} }}<!-- | ||
− | -->{{# | + | -->{{#switch:{{lc:{{{type}}}}} |
− | + | | core = {{ifimage|{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|[[File:{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|thumb|right|400px|Фон специализации.]]}} | |
{{#if: {{{description|}}} | {{quotation|game|{{{description|}}}}} }} | {{#if: {{{description|}}} | {{quotation|game|{{{description|}}}}} }} | ||
− | [[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]] | + | <div style="float:left; margin-right:0.5em; margin-bottom:0.5em;">[[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]</div> |
− | + | | elite = <div style="float:right;">{{ifimage|{{{elite icon|{{{name|{{#titleparts:{{PAGENAME}}}}}}} icon (highres).png}}}|[[File:{{{elite icon|{{{name|{{#titleparts:{{PAGENAME}}}}}}} icon (highres).png}}}|160px|right|Elite specialization character icon.]]}}</div> | |
+ | {{#if: {{{description|}}} | {{quotation|game|{{{description|}}}}} }} | ||
+ | <div style="float:left; margin-right:0.5em;">[[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]</div> | ||
}}<!-- | }}<!-- | ||
Set semantic properties | Set semantic properties | ||
− | -->{{#set: | + | -->{{#if: {{NAMESPACE}} | <!-- no properties if outside of main space --> | |
+ | {{#set: | ||
| Has context =Specialization | | Has context =Specialization | ||
| Has canonical name ={{{name|{{#titleparts:{{PAGENAME}}}}}}} | | Has canonical name ={{{name|{{#titleparts:{{PAGENAME}}}}}}} | ||
Строка 15: | Строка 18: | ||
| Has specialization type ={{{type|Core}}} | | Has specialization type ={{{type|Core}}} | ||
| Has trait line number ={{{line number|}}} | | Has trait line number ={{{line number|}}} | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
− | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of | + | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of main space --> |
{{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | ||
{{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} | ||
Строка 43: | Строка 47: | ||
=== Parameters === | === Parameters === | ||
; name : Optional. Specialization name. Defaults to the page name. | ; name : Optional. Specialization name. Defaults to the page name. | ||
− | ; icon : Required. | + | ; icon : Required. Filename of the trait line icon as seen in the Hero panel. Defaults to <code>File:<page name>.png</code>. |
+ | ; elite icon : Optional. For elite specializations only. Filename of the icon of the elite specialization as seen in the name plates and party/squad interface. Defaults to <code>File:<page name> icon (highres).png</code>. | ||
; description : Optional. In-game specialization description. | ; description : Optional. In-game specialization description. | ||
; background : Optional. Background filename. Defaults to <code>File:<page name> specialization.jpg</code>. | ; background : Optional. Background filename. Defaults to <code>File:<page name> specialization.jpg</code>. |
Текущая версия на 09:50, 5 января 2024
Usage[править]
{{Specialization infobox | name = | icon = | description = | profession = | type = | line number = }}
Parameters[править]
- name
- Optional. Specialization name. Defaults to the page name.
- icon
- Required. Filename of the trait line icon as seen in the Hero panel. Defaults to
File:<page name>.png
. - elite icon
- Optional. For elite specializations only. Filename of the icon of the elite specialization as seen in the name plates and party/squad interface. Defaults to
File:<page name> icon (highres).png
. - description
- Optional. In-game specialization description.
- background
- Optional. Background filename. Defaults to
File:<page name> specialization.jpg
. - profession
- Required. The profession the specialization is for.
- type
- Required. "Core" or "Elite".
- line number
- Required. Trait line number to sort trait lines in a logical way. The trait lines are numbered ascendingly matching the in-game order, core specializations: "1-5", HoT elite specializations "6", PoF elite specialization "7" and EoD elite specializations "8".
- categorize
- Optional. Whether or not to categorize the content.
- status
- Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
- status notes
- Optional. Allows provision of additional reason for the given status.
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.