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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 1: Строка 1:
 
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|}}} }}<!--
 
<includeonly>{{infobox status|{{{status|}}}|{{{status notes|}}} }}{{infobox requires|{{{requires|}}} }}<!--
-->{{#ifeq: {{{type}}} | Core |  
+
-->{{#ifeq: {{{type}}} | Core  
{{ifimage|{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|[[File:{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|thumb|right|400px|Фон специализации.]]}}
+
| {{ifimage|{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|[[File:{{{background|{{{name|{{#titleparts:{{PAGENAME}}}}}}} specialization.jpg}}}|thumb|right|400px|Фон специализации.]]}}
 +
{{#if: {{{description|}}} | {{quotation|game|{{{description|}}}}} }}
 
[[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]
 
[[File:{{{icon|{{#titleparts:{{PAGENAME}}}}.png}}}]]
 +
| {{#if: {{{description|}}} | {{quotation|game|{{{description|}}}}} }}
 
}}<!--
 
}}<!--
 
Set semantic properties
 
Set semantic properties
Строка 9: Строка 11:
 
  | 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}}}
 +
| Has game description ={{{description|}}}
 
  | Is for profession ={{{profession|}}}
 
  | Is for profession ={{{profession|}}}
 
  | Has specialization type ={{{type|Core}}}
 
  | Has specialization type ={{{type|Core}}}
Строка 26: Строка 29:
 
}}
 
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
== Description ==
+
== Usage ==
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Specialization infobox
 
{{Specialization infobox
 
| name =  
 
| name =  
 
| icon =  
 
| icon =  
 +
| description =
 
| profession =  
 
| profession =  
 
| type =  
 
| type =  
Строка 40: Строка 44:
 
; 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>.
 +
; 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>.
 
; 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".
+
; 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).

Версия 03:33, 11 апреля 2022

Usage

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

Parameters

name 
Optional. Specialization name. Defaults to the page name.
icon 
Required. Icon filename. Defaults to File:<page name>.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.