Редактирование: Шаблон:Story infobox

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 1: Строка 1:
{{#set:Has context=Story}}<!--
+
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}<!--
-->{{infobox status|{{{status|}}}|{{{status notes|}}}|date={{{status date|}}}}}<!--
 
-->{{infobox requires|{{{requires|}}} }}<!--
 
  
--><div class="infobox quest">
+
--><div class="infobox quest">{{#set:Has game context=Story}}
 
{{#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|{{Story infobox/biography text|{{{choice}}}}}]]</div>
+
     | <div class="icon infobox-icon">[[Has game icon::File:Biography {{{choice}}}.png|40px|{{Personal 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'' }}
 
 
; Глава
 
; Глава
: {{#if: {{{chapter|}}}
+
: [[Has story chapter::{{{chapter}}}]]
  | {{#switch: {{{storyline|}}}
+
}}{{#if: {{{location|}}} |
      | Personal story
+
{{infobox location|{{{location|{{{region|}}}}}}}}
      | 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'' }}
+
: [[Has level requirement::{{{level|0}}}|{{{level|''Unspecified''}}}]]
 
{{#if: {{{race|}}} |
 
{{#if: {{{race|}}} |
 
; [[Playable races|Раса]]
 
; [[Playable races|Раса]]
: {{race|{{{race}}}}} [[Is for race::{{{race}}}|{{rus lang|race|{{{race}}}}}]]
+
: {{race|{{{race}}}}} [[Has personal story race requirement::{{{race}}}|{{{race}}}]]
 
}}{{#if: {{{choice|}}} |
 
}}{{#if: {{{choice|}}} |
 
; Выбор
 
; Выбор
: {{Story infobox/biography text|{{{choice}}}}}{{#set:Has personal story choice requirement={{{choice}}}}}
+
: {{Personal story infobox/biography text|{{{choice}}}}}
 
}}{{#if: {{{order|}}} |
 
}}{{#if: {{{order|}}} |
 
; Орден
 
; Орден
: [[Has game icon::File:{{{order}}} (order icon).png|16px]] [[Has personal story order requirement::{{{order}}}]]
+
: [[Has game icon::File:{{{order}}} (order icon).png|16px]] [[{{{order}}}]]
 
}}{{#if: {{{prev|}}} |
 
}}{{#if: {{{prev|}}} |
 
; Предшествует
 
; Предшествует
: {{#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>}}
+
: {{#arraymap: {{{prev|}}} |;|@@@| {{#if: {{#vardefineecho:prev_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:prev_bg}}|16px]] }} {{cname|@@@}} |<br>}}
 
}}{{#if: {{{next|}}} |
 
}}{{#if: {{{next|}}} |
 
; Следует
 
; Следует
: {{#arraymap: {{{next|}}} |;|@@@| {{#if: {{#vardefineecho:next_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:next_bg}}|16px]] }} {{cname|@@@}} {{#set:Has story next step=@@@}}|<br>}}
+
: {{#arraymap: {{{next|}}} |;|@@@| {{#if: {{#vardefineecho:next_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:next_bg}}|16px]] }} {{cname|@@@}} |<br>}}
 
}}
 
}}
</div>
+
{{#if: {{{map1|}}}{{#ifexist:File:{{PAGENAME}} map.jpg|exists}} |
{{#if: {{{gallery1|}}}{{ifimage|{{PAGENAME}} map.jpg|exists}} |
 
 
{{{!}} style="width:100%"
 
{{{!}} style="width:100%"
 
{{!}}- style="text-align:center;"
 
{{!}}- style="text-align:center;"
 
{{!}}
 
{{!}}
[[File:{{{gallery1|{{PAGENAME}} map.jpg}}}|220x220px]]
+
[[File:{{{map1|{{PAGENAME}} map.jpg}}}|220x220px]]
<p style="font-size:.9em;">{{{gallery1-text|Click to enlarge}}}</p>{{#if:   {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{map1-text|Нажмите, чтобы увеличить}}}</p>{{#if: {{{map2|}}} | [[File:{{{map2|}}}|220x220px]]
<p style="font-size:.9em;">{{{gallery2-text|Click to enlarge}}}</p>}}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{map2-text|Нажмите, чтобы увеличить}}}</p>}}{{#if: {{{map3|}}} | [[File:{{{map3|}}}|220x220px]]
<p style="font-size:.9em;">{{{gallery3-text|Click to enlarge}}}</p>}}
+
<p style="font-size:.9em;">{{{map3-text|Нажмите, чтобы увеличить}}}</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: {{{storyline|}}}
+
   {{#if: {{{step number|}}}
   | {{#switch: {{{storyline}}}
+
   | {{#if: {{{chapter number|}}}
       | Personal story = [[Category:Personal story]]
+
       | {{#set:Has personal story number={{{step number}}};{{{chapter number}}}}}
      | 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.
+
</div><noinclude>__TOC__
 +
This infobox should be used at the top of [[personal story]] articles.
  
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
{{Story infobox
+
{{Personal story infobox
| year =
 
| storyline =
 
 
| chapter =  
 
| chapter =  
 
| chapter number =  
 
| chapter number =  
Строка 125: Строка 72:
 
| prev =  
 
| prev =  
 
| next =  
 
| next =  
 +
| map1 =
 +
| map1-text =
 
}}
 
}}
 
</pre>
 
</pre>
 
 
=== Parameters ===
 
=== Parameters ===
 
; name
 
; name
Строка 133: Строка 81:
 
; 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 position within the storyline and chapter respectively.
+
: Required. Numbers representing step and chapter positions in the personal storyline.
; 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. Separate multiple values with semi-colons.
+
: Required. The locations in which the event takes place. This is usually a comma separated list.
 
; level
 
; level
 
: Required. The level of the storyline step.
 
: Required. The level of the storyline step.
 +
; 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 {{tl|Personal story infobox/biography text}} for valid options.
 +
; order
 +
: Optional. The order required for the storyline step. Options: Durmand priory, Order of Whispers, or Vigil.
 
; prev
 
; prev
: Optional. The name of the previous story step. Separate multiple values with semi-colons. Sets the semantic property [[Property:Has story previous step]]
+
: Optional. The name of the first previous event. Separate multiple values with semi-colons.
 
; next
 
; next
: Optional. The name of the next story step. Separate multiple values with semi-colons. Sets the semantic property [[Property:Has story next step]]
+
: Optional. The name of the first previous event. Separate multiple values with semi-colons.
; gallery1
+
; map1
: Optional. The name of the file (without the File: tag).
+
: Optional. The name of the map file (without the File: tag).
; gallery1-text
+
; map1-text
: Optional. Changes the text that goes under gallery1.
+
: Optional. Changes the text that goes under map1.
; gallery2, gallery3
+
; map2, map3
; gallery2-text, gallery3-text
+
; map2-text, map3-text
: Optional. Same as above and adds additional gallery images and text.
+
: Optional. Same as above and adds additional maps and map text.
; id
 
: Optional. An ID derived from [[API:2/quests]]. Sets the semantic property [[Property:Has story id]].
 
 
; status
 
; 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).
+
: 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 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
 
: 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
 
: Optional. The [[Biography]] choice. See {{tl|Story infobox/biography text}} for valid options.
 
; order
 
: Optional. The order required for the storyline step. Options: <code>Durmand Priory</code>, <code>Order of Whispers</code>, or <code>Vigil</code>.
 
  
== Example ==
+
=== Example ===
 
<pre>
 
<pre>
{{Story infobox
+
{{Personal 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
Строка 192: Строка 125:
 
}}
 
}}
 
</pre>
 
</pre>
{{Story infobox
+
{{Personal 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
Строка 206: Строка 138:
 
}}
 
}}
  
[[Category:Infobox templates]]
+
[[Category:Infobox templates|Personal story]]
 
</noinclude>
 
</noinclude>

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)