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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}<!--
+
{{#set:Has context=Story}}<!--
 +
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
 +
-->{{infobox requires|{{{requires|}}} }}<!--
  
--><div class="infobox quest">{{#set:Has game context=Story}}
+
--><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|{{Personal story infobox/biography text|{{{choice}}}}}]]</div>
+
     | <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: {{{chapter|}}} |
+
; История
 +
: {{#if: {{{storyline|}}} | [[Is part of storyline::{{{storyline}}}]] | ''Storyline missing'' }}
 
; Глава
 
; Глава
: [[Has story chapter::{{{chapter}}}]]
+
: {{#if: {{{chapter|}}}
}}{{#if: {{{location|}}} |
+
  | {{#switch: {{{storyline|}}}
{{infobox location|{{{location|{{{region|}}}}}}}}
+
      | 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|}}}}}
 
; Уровень
 
; Уровень
: [[Has level requirement::{{{level|0}}}|{{{level|''Unspecified''}}}]]
+
: {{#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}}}}} [[Has personal story race requirement::{{{race}}}|{{{race}}}]]
+
: {{race|{{{race}}}}} [[Is for race::{{{race}}}|{{rus lang|race|{{{race}}}}}]]
 
}}{{#if: {{{choice|}}} |
 
}}{{#if: {{{choice|}}} |
 
; Выбор
 
; Выбор
: {{Personal story infobox/biography text|{{{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: {{{map1|}}}{{#ifexist:File:{{PAGENAME}} map.jpg|exists}} |
+
</div>
 +
{{#if: {{{gallery1|}}}{{ifimage|{{PAGENAME}} map.jpg|exists}} |
 
{{{!}} style="width:100%"
 
{{{!}} style="width:100%"
 
{{!}}- style="text-align:center;"
 
{{!}}- style="text-align:center;"
 
{{!}}
 
{{!}}
[[File:{{{map1|{{PAGENAME}} map.jpg}}}|220x220px]]
+
[[File:{{{gallery1|{{PAGENAME}} map.jpg}}}|220x220px]]
<p style="font-size:.9em;">{{{map1-text|Нажмите, чтобы увеличить}}}</p>{{#if: {{{map2|}}} | [[File:{{{map2|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{gallery1-text|Click to enlarge}}}</p>{{#if:   {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x220px]]
<p style="font-size:.9em;">{{{map2-text|Нажмите, чтобы увеличить}}}</p>}}{{#if: {{{map3|}}} | [[File:{{{map3|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{gallery2-text|Click to enlarge}}}</p>}}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|220x220px]]
<p style="font-size:.9em;">{{{map3-text|Нажмите, чтобы увеличить}}}</p>}}
+
<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 }}
          {{#ifeq: {{lc:{{{historical}}}}} | y | do not categorize }}<!-- legacy support -->
 
 
  | <!-- Do not categorize --> |
 
  | <!-- Do not categorize --> |
   {{#if: {{{step number|}}}
+
   {{#if: {{{storyline|}}}
   | {{#if: {{{chapter number|}}}
+
   | {{#switch: {{{storyline}}}
       | {{#set:Has personal story number={{{step number}}};{{{chapter number}}}}}
+
       | 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__
</div><noinclude>__TOC__
+
This infobox should be used at the top of all story articles.
This infobox should be used at the top of [[personal story]] articles.
 
  
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
{{Personal story infobox
+
{{Story infobox
 +
| year =
 +
| storyline =
 
| chapter =  
 
| chapter =  
 
| chapter number =  
 
| chapter number =  
Строка 72: Строка 125:
 
| prev =  
 
| prev =  
 
| next =  
 
| next =  
| map1 =
 
| map1-text =
 
 
}}
 
}}
 
</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 step and chapter positions in the personal storyline.
+
: 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. This is usually a comma separated list.
+
: 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|Personal story infobox/biography text}} for valid options.
+
: 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 priory, Order of Whispers, or Vigil.
+
: Optional. The order required for the storyline step. Options: <code>Durmand Priory</code>, <code>Order of Whispers</code>, or <code>Vigil</code>.
; prev
 
: Optional. The name of the first previous event. Separate multiple values with semi-colons.
 
; next
 
: Optional. The name of the first previous event. Separate multiple values with semi-colons.
 
; map1
 
: Optional. The name of the map file (without the File: tag).
 
; map1-text
 
: Optional. Changes the text that goes under map1.
 
; map2, map3
 
; map2-text, map3-text
 
: Optional. Same as above and adds additional maps and map text.
 
; status
 
: Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
 
  
=== Example ===
+
== Example ==
 
<pre>
 
<pre>
{{Personal story infobox
+
{{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, Lake Mourn  
+
| location = Frost Basin; Lake Mourn
 
| level = 20
 
| level = 20
 
| race = Norn
 
| race = Norn
Строка 125: Строка 192:
 
}}
 
}}
 
</pre>
 
</pre>
{{Personal story infobox
+
{{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, Lake Mourn  
+
| location = Frost Basin; Lake Mourn
 
| level = 20
 
| level = 20
 
| race = Norn
 
| race = Norn
Строка 138: Строка 206:
 
}}
 
}}
  
[[Category:Infobox templates|Personal story]]
+
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Версия 23:53, 4 марта 2020

Story infobox

Год
1325 AE
История
Storyline missing
Глава
Chapter missing
Локация
Unspecified
Уровень
Level missing

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, or Sylvari.
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, or Vigil.

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
}}
Sought Revenge

The Championship Fight

Год
1325 AE
История
Personal story
Глава
Everyone Makes Mistakes
Локация
Frost Basin; Lake Mourn
Уровень
20
Раса
Norn tango icon 20px.png Норн
Выбор
Sought Revenge
Предшествует
The Semifinals
Следует
Dredge Technology