Редактирование: Шаблон:Story infobox
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 1: | Строка 1: | ||
− | + | {{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}<!-- | |
− | |||
− | |||
− | --><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|{{ | + | | <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> | ||
− | |||
; Год | ; Год | ||
: {{{year|1325}}} <small>[[Mouvelian calendar|AE]]</small> | : {{{year|1325}}} <small>[[Mouvelian calendar|AE]]</small> | ||
− | + | {{#if: {{{chapter|}}} | | |
− | |||
; Глава | ; Глава | ||
− | : | + | : [[Has story chapter::{{{chapter}}}]] |
− | + | }}{{#if: {{{location|}}} | | |
− | + | {{infobox location|{{{location|{{{region|}}}}}}}} | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
; Уровень | ; Уровень | ||
− | : | + | : [[Has level requirement::{{{level|0}}}|{{{level|''Unspecified''}}}]] |
{{#if: {{{race|}}} | | {{#if: {{{race|}}} | | ||
; [[Playable races|Раса]] | ; [[Playable races|Раса]] | ||
− | : {{race|{{{race}}}}} [[ | + | : {{race|{{{race}}}}} [[Has personal story race requirement::{{{race}}}|{{{race}}}]] |
}}{{#if: {{{choice|}}} | | }}{{#if: {{{choice|}}} | | ||
; Выбор | ; Выбор | ||
− | : {{ | + | : {{Personal story infobox/biography text|{{{choice}}}}} |
}}{{#if: {{{order|}}} | | }}{{#if: {{{order|}}} | | ||
; Орден | ; Орден | ||
− | : [[Has game icon::File:{{{order}}} (order icon).png|16px]] [[ | + | : [[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|@@@ | + | : {{#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| | + | : {{#arraymap: {{{next|}}} |;|@@@| {{#if: {{#vardefineecho:next_bg|{{#show:@@@|?Has game icon|link=none}}}} | [[{{#var:next_bg}}|16px]] }} {{cname|@@@}} |<br>}} |
}} | }} | ||
− | + | {{#if: {{{map1|}}}{{#ifexist:File:{{PAGENAME}} map.jpg|exists}} | | |
− | {{#if: {{{ | ||
{{{!}} style="width:100%" | {{{!}} style="width:100%" | ||
{{!}}- style="text-align:center;" | {{!}}- style="text-align:center;" | ||
{{!}} | {{!}} | ||
− | [[File:{{{ | + | [[File:{{{map1|{{PAGENAME}} map.jpg}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{map1-text|Нажмите, чтобы увеличить}}}</p>{{#if: {{{map2|}}} | [[File:{{{map2|}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{map2-text|Нажмите, чтобы увеличить}}}</p>}}{{#if: {{{map3|}}} | [[File:{{{map3|}}}|220x220px]] |
− | <p style="font-size:.9em;">{{{ | + | <p style="font-size:.9em;">{{{map3-text|Нажмите, чтобы увеличить}}}</p>}} |
{{!}}} | {{!}}} | ||
− | |{{clear}} | + | |{{clear}}}}<!-- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }}<!-- | ||
− | |||
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: {{{ | + | {{#if: {{{step number|}}} |
− | | {{# | + | | {{#if: {{{chapter number|}}} |
− | | | + | | {{#set:Has personal story number={{{step number}}};{{{chapter number}}}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
}} | }} | ||
− | }}<noinclude>__TOC__ | + | }} |
− | This infobox should be used at the top of | + | </div><noinclude>__TOC__ |
+ | This infobox should be used at the top of [[personal story]] articles. | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
− | {{ | + | {{Personal story infobox |
− | |||
− | |||
| 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. | ||
− | |||
− | |||
; 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 step and chapter positions in the personal storyline. |
− | |||
− | |||
; location | ; location | ||
− | : Required. The locations in which the event takes place. | + | : 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 | + | : Optional. The name of the first previous event. Separate multiple values with semi-colons. |
; next | ; next | ||
− | : Optional. The name of the | + | : Optional. The name of the first previous event. Separate multiple values with semi-colons. |
− | ; | + | ; map1 |
− | : Optional. The name of the file (without the File: tag). | + | : Optional. The name of the map file (without the File: tag). |
− | ; | + | ; map1-text |
− | : Optional. Changes the text that goes under | + | : Optional. Changes the text that goes under map1. |
− | ; | + | ; map2, map3 |
− | ; | + | ; map2-text, map3-text |
− | : Optional. Same as above and adds additional | + | : Optional. Same as above and adds additional maps and map text. |
− | |||
− | |||
; status | ; status | ||
− | : Optional. Status of content. Only set if not currently | + | : 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 |
| name = The Championship Fight | | name = The Championship Fight | ||
− | |||
| 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 | ||
Строка 192: | Строка 125: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Personal story infobox |
| name = The Championship Fight | | name = The Championship Fight | ||
− | |||
| 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 | ||
Строка 206: | Строка 138: | ||
}} | }} | ||
− | [[Category:Infobox templates]] | + | [[Category:Infobox templates|Personal story]] |
</noinclude> | </noinclude> |