Шаблон:Story infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{infobox status|{{{status|{{ | + | {{#set:Has context=Story}}<!-- |
+ | -->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!-- | ||
+ | -->{{infobox requires|{{{requires|}}} }}<!-- | ||
− | --><div class="infobox quest"> | + | --><div class="infobox quest"> |
{{#if: {{{choice|}}} | {{#if: {{{choice|}}} | ||
| {{#if: {{ifimage|Biography {{{choice}}}.png|exists}} | | {{#if: {{ifimage|Biography {{{choice}}}.png|exists}} | ||
− | | <div class="icon infobox-icon">[[Has game icon::File:Biography {{{choice}}}.png|40px|{{ | + | | <div class="icon infobox-icon">[[Has game icon::File:Biography {{{choice}}}.png|40px|{{Story infobox/biography text|{{{choice}}}}}]]</div> |
}} | }} | ||
}} | }} | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
+ | <div class="wrapper"> | ||
; Год | ; Год | ||
: {{{year|1325}}} <small>[[Mouvelian calendar|AE]]</small> | : {{{year|1325}}} <small>[[Mouvelian calendar|AE]]</small> | ||
− | {{#if: {{{ | + | ; История |
+ | : {{#if: {{{storyline|}}} | [[Is part of storyline::{{{storyline}}}]] | ''Storyline missing'' }} | ||
; Глава | ; Глава | ||
− | : | + | : {{#if: {{{chapter|}}} |
− | }}{{# | + | | {{#switch: {{{storyline|}}} |
− | {{ | + | | Personal story |
− | }} | + | | Heart of Thorns |
+ | | Path of Fire = {{#show: {{{chapter}}} | ?Has canonical name | default = {{{chapter}}} }} {{#set: Has story chapter ={{{chapter}}} }} | ||
+ | | #default = {{cname|{{{chapter}}}}} {{#set: Has story chapter ={{cname|{{{chapter}}}}} }} | ||
+ | }} | ||
+ | | {{#switch: {{{storyline|}}} | ||
+ | | Heart of Thorns | ||
+ | | Path of Fire = {{{name|{{PAGENAME}}}}} {{#set: Has story chapter ={{PAGENAME}} }} | ||
+ | | #default = ''Chapter missing'' | ||
+ | }} | ||
+ | }} | ||
+ | {{infobox location|{{{location|}}}}} | ||
; Уровень | ; Уровень | ||
− | : | + | : {{#if: {{{level|}}} | {{#if: {{#explode:{{#replace:{{{level}}}|-|–}}|–|1}} | {{#set: | Has level requirement=80 }}{{#replace:{{{level}}}|-|–}} | [[Has level requirement::{{{level}}}]] }} | ''Level missing'' }} |
{{#if: {{{race|}}} | | {{#if: {{{race|}}} | | ||
; [[Playable races|Раса]] | ; [[Playable races|Раса]] | ||
− | : {{race|{{{race}}}}} [[ | + | : {{race|{{{race}}}}} [[Is for race::{{{race}}}|{{rus lang|race|{{{race}}}}}]] |
}}{{#if: {{{choice|}}} | | }}{{#if: {{{choice|}}} | | ||
; Выбор | ; Выбор | ||
− | : {{ | + | : {{Story infobox/biography text|{{{choice}}}}}{{#set:Has personal story choice requirement={{{choice}}}}} |
}}{{#if: {{{order|}}} | | }}{{#if: {{{order|}}} | | ||
; Орден | ; Орден | ||
− | : [[Has game icon::File:{{{order}}} (order icon).png|16px]] [[{{{order}}}]] | + | : [[Has game icon::File:{{{order}}} (order icon).png|16px]] [[Has personal story order requirement::{{{order}}}]] |
}}{{#if: {{{prev|}}} | | }}{{#if: {{{prev|}}} | | ||
; Предшествует | ; Предшествует | ||
− | : {{#arraymap: {{{prev|}}} |;|@@@| {{#if: {{#vardefineecho:prev_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:prev_bg}}|16px]] }} {{cname|@@@}} |<br>}} | + | : {{#arraymap: {{{prev|}}} |;|@@@| {{#if: {{#vardefineecho:prev_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:prev_bg}}|16px]] }} {{cname|@@@}} {{#ifeq: {{lc:@@@}}|character creation||{{#set:Has story previous step=@@@}}}}|<br>}} |
}}{{#if: {{{next|}}} | | }}{{#if: {{{next|}}} | | ||
; Следует | ; Следует | ||
− | : {{#arraymap: {{{next|}}} |;|@@@| {{#if: {{#vardefineecho:next_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:next_bg}}|16px]] }} {{cname|@@@}} |<br>}} | + | : {{#arraymap: {{{next|}}} |;|@@@| {{#if: {{#vardefineecho:next_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:next_bg}}|16px]] }} {{cname|@@@}} {{#set:Has story next step=@@@}}|<br>}} |
}} | }} | ||
− | {{#if: {{{ | + | </div> |
+ | {{#if: {{{gallery1|}}}{{ifimage|{{PAGENAME}} map.jpg|exists}} | | ||
{{{!}} style="width:100%" | {{{!}} style="width:100%" | ||
{{!}}- style="text-align:center;" | {{!}}- style="text-align:center;" | ||
{{!}} | {{!}} | ||
− | [[File:{{{ | + | [[File:{{{gallery1|{{PAGENAME}} map.jpg}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery1-text|Click to enlarge}}}</p>{{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery2-text|Click to enlarge}}}</p>}}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{gallery3-text|Click to enlarge}}}</p>}} |
{{!}}} | {{!}}} | ||
− | |{{clear}}}}<!-- | + | |{{clear}}}} |
+ | </div><!-- | ||
+ | |||
+ | SEMANTIC PROPERTIES | ||
+ | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | ||
+ | {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} | ||
+ | | <!-- Do not apply properties --> | | ||
+ | {{#if: {{{storyline|}}} | | ||
+ | {{#if: {{{chapter number|}}} | | ||
+ | {{#set: | ||
+ | | Has story storyline number = {{#switch: {{{storyline}}} | ||
+ | | Personal story = 1 | ||
+ | | Living World Season 1 = 2 | ||
+ | | Living World Season 2 = 3 | ||
+ | | Heart of Thorns = 4 | ||
+ | | Living World Season 3 = 5 | ||
+ | | Path of Fire = 6 | ||
+ | | Living World Season 4 = 7 | ||
+ | | The Icebrood Saga = 8 | ||
+ | | #default = 9 | ||
+ | }} | ||
+ | | Has story chapter number ={{{chapter number}}} | ||
+ | | Has story sortkey number ={{{sortkey number|0}}} | ||
+ | | Has story step number ={{{step number|1}}} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | {{#if: {{{id|}}} | | ||
+ | {{#set: Has story id ={{{id}}}|+sep=; }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | ||
{{#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 }} | ||
− | |||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
− | {{#if: {{{ | + | {{#if: {{{storyline|}}} |
− | | {{# | + | | {{#switch: {{{storyline}}} |
− | | {{ | + | | Personal story = [[Category:Personal story]] |
+ | | Living World Season 1 = [[Category:Living World Season 1 story]]<!-- Otherwise do nothing, manually done for historical pages --> | ||
+ | | Living World Season 2 = [[Category:Living World Season 2 story]][[Category:{{{chapter}}}]] | ||
+ | | Heart of Thorns = [[Category:Heart of Thorns story]] | ||
+ | | Living World Season 3 = [[Category:Living World Season 3 story]][[Category:{{{chapter}}}]] | ||
+ | | Path of Fire = [[Category:Path of Fire story]] | ||
+ | | Living World Season 4 = [[Category:Living World Season 4 story]][[Category:{{{chapter}}}]] | ||
+ | | The Icebrood Saga = [[Category:The Icebrood Saga story]][[Category:{{{chapter}}}]] | ||
}} | }} | ||
}} | }} | ||
− | }} | + | }}<noinclude>__TOC__ |
− | + | This infobox should be used at the top of all story articles. | |
− | This infobox should be used at the top of | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
− | {{ | + | {{Story infobox |
+ | | year = | ||
+ | | storyline = | ||
| chapter = | | chapter = | ||
| chapter number = | | chapter number = | ||
Строка 72: | Строка 125: | ||
| prev = | | prev = | ||
| next = | | next = | ||
− | |||
− | |||
}} | }} | ||
</pre> | </pre> | ||
+ | |||
=== Parameters === | === Parameters === | ||
; name | ; name | ||
Строка 81: | Строка 133: | ||
; year | ; year | ||
: Optional. The year in the [[Mouvelian calendar]] when this event happens. Defaults to "1325" AE. | : Optional. The year in the [[Mouvelian calendar]] when this event happens. Defaults to "1325" AE. | ||
+ | ; storyline | ||
+ | : Required. Name of the tab within the Story Journal, e.g. "Living World Season 2". (Exception: "Personal story" instead of "My Story") | ||
; chapter | ; chapter | ||
− | : Required. Name of the section in the story journal in the Hero panel | + | : Required. Name of the section in the story journal in the Hero panel. |
; chapter number | ; chapter number | ||
; step number | ; step number | ||
− | : Required. Numbers representing | + | : Required. Numbers representing position within the storyline and chapter respectively. |
+ | ; sortkey number | ||
+ | : Optional. Supplements the above chapter/step numbers. Provides additional position information to help return results in a logical order. | ||
; location | ; location | ||
− | : Required. The locations in which the event takes place. | + | : Required. The locations in which the event takes place. Separate multiple values with semi-colons. |
; level | ; level | ||
: Required. The level of the storyline step. | : Required. The level of the storyline step. | ||
+ | ; prev | ||
+ | : Optional. The name of the previous story step. Separate multiple values with semi-colons. Sets the semantic property [[Property:Has story previous step]] | ||
+ | ; next | ||
+ | : Optional. The name of the next story step. Separate multiple values with semi-colons. Sets the semantic property [[Property:Has story next step]] | ||
+ | ; gallery1 | ||
+ | : Optional. The name of the file (without the File: tag). | ||
+ | ; gallery1-text | ||
+ | : Optional. Changes the text that goes under gallery1. | ||
+ | ; gallery2, gallery3 | ||
+ | ; gallery2-text, gallery3-text | ||
+ | : Optional. Same as above and adds additional gallery images and text. | ||
+ | ; id | ||
+ | : Optional. An ID derived from [[API:2/quests]]. Sets the semantic property [[Property:Has story id]]. | ||
+ | ; status | ||
+ | : Optional. Status of content. Only set if not currently accessible in-game, displays relevant notice. Available options: <code>historical</code>, <code>future</code>, <code>unimplemented</code>, <code>current</code> (default). | ||
+ | ; status notes | ||
+ | : Optional. Allows provision of additional reason for the given status. | ||
+ | ; status date | ||
+ | : Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format). | ||
+ | ; 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. | ||
+ | |||
+ | === Specific to the Personal story === | ||
; race | ; race | ||
− | : Optional. The race of the character required for the storyline step. Options: Asura, Charr, Human, Norn, or Sylvari. | + | : Optional. The race of the character required for the storyline step. Options: <code>Asura</code>, <code>Charr</code>, <code>Human</code>, <code>Norn</code>, or <code>Sylvari</code>. |
; choice | ; choice | ||
− | : Optional. The [[Biography]] choice. See {{tl| | + | : Optional. The [[Biography]] choice. See {{tl|Story infobox/biography text}} for valid options. |
; order | ; order | ||
− | : Optional. The order required for the storyline step. Options: Durmand | + | : Optional. The order required for the storyline step. Options: <code>Durmand Priory</code>, <code>Order of Whispers</code>, or <code>Vigil</code>. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Example == | |
<pre> | <pre> | ||
− | {{ | + | {{Story infobox |
| name = The Championship Fight | | name = The Championship Fight | ||
+ | | storyline = Personal story | ||
| chapter = Everyone Makes Mistakes | | chapter = Everyone Makes Mistakes | ||
| chapter number = 2 | | chapter number = 2 | ||
| step number = 4 | | step number = 4 | ||
− | | location = Frost Basin | + | | location = Frost Basin; Lake Mourn |
| level = 20 | | level = 20 | ||
| race = Norn | | race = Norn | ||
Строка 125: | Строка 192: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Story infobox |
| name = The Championship Fight | | name = The Championship Fight | ||
+ | | storyline = Personal story | ||
| chapter = Everyone Makes Mistakes | | chapter = Everyone Makes Mistakes | ||
| chapter number = 2 | | chapter number = 2 | ||
| step number = 4 | | step number = 4 | ||
− | | location = Frost Basin | + | | location = Frost Basin; Lake Mourn |
| level = 20 | | level = 20 | ||
| race = Norn | | race = Norn | ||
Строка 138: | Строка 206: | ||
}} | }} | ||
− | [[Category:Infobox templates | + | [[Category:Infobox templates]] |
</noinclude> | </noinclude> |
Версия 23:53, 4 марта 2020
Story infobox
This infobox should be used at the top of all story articles.
Usage
{{Story infobox | year = | storyline = | chapter = | chapter number = | step number = | location = | level = | race = | choice = | order = | prev = | next = }}
Parameters
- name
- Optional. Name of the event. Defaults to the page name. Use if page name contains qualifiers.
- year
- Optional. The year in the Mouvelian calendar when this event happens. Defaults to "1325" AE.
- storyline
- Required. Name of the tab within the Story Journal, e.g. "Living World Season 2". (Exception: "Personal story" instead of "My Story")
- chapter
- Required. Name of the section in the story journal in the Hero panel.
- chapter number
- step number
- Required. Numbers representing position within the storyline and chapter respectively.
- sortkey number
- Optional. Supplements the above chapter/step numbers. Provides additional position information to help return results in a logical order.
- location
- Required. The locations in which the event takes place. Separate multiple values with semi-colons.
- level
- Required. The level of the storyline step.
- prev
- Optional. The name of the previous story step. Separate multiple values with semi-colons. Sets the semantic property Property:Has story previous step
- next
- Optional. The name of the next story step. Separate multiple values with semi-colons. Sets the semantic property Property:Has story next step
- gallery1
- Optional. The name of the file (without the File: tag).
- gallery1-text
- Optional. Changes the text that goes under gallery1.
- gallery2, gallery3
- gallery2-text, gallery3-text
- Optional. Same as above and adds additional gallery images and text.
- id
- Optional. An ID derived from API:2/quests. Sets the semantic property Property:Has story id.
- status
- Optional. Status of content. Only set if not currently accessible in-game, displays relevant notice. Available options:
historical
,future
,unimplemented
,current
(default). - status notes
- Optional. Allows provision of additional reason for the given status.
- status date
- Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.
Specific to the Personal story
- race
- Optional. The race of the character required for the storyline step. Options:
Asura
,Charr
,Human
,Norn
, orSylvari
. - choice
- Optional. The Biography choice. See {{Story infobox/biography text}} for valid options.
- order
- Optional. The order required for the storyline step. Options:
Durmand Priory
,Order of Whispers
, orVigil
.
Example
{{Story infobox | name = The Championship Fight | storyline = Personal story | chapter = Everyone Makes Mistakes | chapter number = 2 | step number = 4 | location = Frost Basin; Lake Mourn | level = 20 | race = Norn | choice = Revenge | prev = The Semifinals | next = Dredge Technology }}
The Championship Fight
- Год
- 1325 AE
- История
- Personal story
- Глава
- Everyone Makes Mistakes
- Локация
- Frost Basin; Lake Mourn
- Уровень
- 20
- Раса
- Норн
- Выбор
- Sought Revenge
- Предшествует
- The Semifinals
- Следует
- Dredge Technology