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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 1: Строка 1:
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|{{{release|}}}}}} }}{{#ifeq: {{{type}}} | Core | [[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]}}<!--
+
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|}}} }}<!--
 +
-->{{#ifeq: {{{type}}} | Core |
 +
{{ifimage|{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|[[File:{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|thumb|right|400px|Specialization background.]]}}
 +
[[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]
 +
}}<!--
 
Set semantic properties
 
Set semantic properties
 
-->{{#set:
 
-->{{#set:
  | Has context=Specialization
+
  | Has context =Specialization
  | Has canonical name={{{name|{{#titleparts:{{PAGENAME}}}}}}}
+
  | Has canonical name ={{{name|{{#titleparts:{{PAGENAME}}}}}}}
  | Has game icon=File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}
+
  | Has game icon =File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}
 
  | 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
Строка 28: Строка 33:
 
| profession =  
 
| profession =  
 
| type =  
 
| type =  
 +
| line number =
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Строка 34: Строка 40:
 
; 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. Icon filename. Defaults to <code>File:<page name>.png</code>.
 +
; 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" and HoT elite specialization "6" and PoF elite specialization "7".
 
; 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 requires}} 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>

Версия 00:20, 20 мая 2021

Description

{{Specialization infobox
| name = 
| icon = 
| profession = 
| type = 
| line number = 
}}

Parameters

name 
Optional. Specialization name. Defaults to the page name.
icon 
Required. Icon filename. Defaults to File:<page name>.png.
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" and HoT elite specialization "6" and PoF elite specialization "7".
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.