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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox release|{{{release|}}} }}{{#ifeq: {{{type}}} | Core | [[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]}}<!--
+
<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|}}}}} }}
 +
<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 --> |
  | Has context=Specialization
+
{{#set:
  | Has canonical name={{{name|{{#titleparts:{{PAGENAME}}}}}}}
+
  | Has context =Specialization
  | Has game icon=File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}
+
  | Has canonical name ={{{name|{{#titleparts:{{PAGENAME}}}}}}}
 +
  | Has game icon =File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}
 +
| Has game description ={{{description|}}}
 
  | Is for profession ={{{profession|}}}
 
  | Is for profession ={{{profession|}}}
 
  | Has specialization type ={{{type|Core}}}
 
  | Has specialization type ={{{type|Core}}}
 +
| Has trait line number ={{{line number|}}}
 +
}}
 
}}<!--
 
}}<!--
 
AUTOCATEGORIZATION
 
AUTOCATEGORIZATION
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace -->
+
-->{{#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 }}
Строка 21: Строка 33:
 
}}
 
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
== Description ==
+
== Usage ==
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Specialization infobox
 
{{Specialization infobox
 
| name =  
 
| name =  
 
| icon =  
 
| icon =  
 +
| description =
 
| profession =  
 
| profession =  
 
| type =  
 
| type =  
 +
| line number =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Строка 33: Строка 47:
 
=== Parameters ===
 
=== Parameters ===
 
; name : Optional. Specialization name. Defaults to the page name.
 
; name : Optional. Specialization name. Defaults to the page name.
; icon : Required. Icon filename. Defaults to <code>File:<page name>.png</code>.
+
; 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.
 +
; background : Optional. Background filename. Defaults to <code>File:<page name> specialization.jpg</code>.
 
; profession : Required. The profession the specialization is for.
 
; profession : Required. The profession the specialization is for.
 
; type : Required. "Core" or "Elite".
 
; 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.
 
; 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 : 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.
 
; status notes : Optional. Allows provision of additional reason for the given status.
; release : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options.
+
; requires : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options.
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Текущая версия на 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.