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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 1: Строка 1:
{{#switch: {{lc:{{{status|{{#ifeq: {{{historical|n}}} | y | historical }}}}}}}
+
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}<!--
| unimplemented = {{unimplemented content}} {{#set:Is historical=Y}}
+
 
| future        = {{future content}}        {{#set:Is historical=Y}}
+
--><div class="infobox quest">{{#set:Has context=Story}}
| historical    = {{historical content}}    {{#set:Is historical=Y}}
+
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
| current
+
<div class="wrapper">
| #default      = <!-- current content -->  {{#set:Is historical=N}}
+
{{#if: {{{season|}}} |
 +
;[[Living World|Сезон]]
 +
:[[Living World season {{{season}}}|Живой Мир: Сезон {{{season}}}]]
 
}}
 
}}
<div class="infobox quest">{{#set:Has game context=Story}}
+
;Глава
<p class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</p>
+
:{{#if: {{{chapter|}}} | [[Has story chapter::{{{chapter}}}]] | ''Unspecified'' }}
<div class="wrapper">
 
;[[Living World|Живой Мир]]
 
:{{#if: {{{chapter|}}} | [[{{{chapter}}}]] | ''Unspecified'' }}
 
 
{{#if: {{{year|}}} |
 
{{#if: {{{year|}}} |
 
;Год
 
;Год
Строка 18: Строка 17:
 
{{#if: {{{level|}}} |
 
{{#if: {{{level|}}} |
 
;Уровень
 
;Уровень
:{{{level|''Unspecified''}}}
+
:[[Has level requirement::{{{level}}}]]
 +
|
 +
;Уровень
 +
:''Unspecified''
 
}} {{#if: {{{prev|}}} |
 
}} {{#if: {{{prev|}}} |
 
;Предшествует
 
;Предшествует
 
:{{cname|{{{prev|}}}}}
 
:{{cname|{{{prev|}}}}}
 
}} {{#if: {{{next|}}} |
 
}} {{#if: {{{next|}}} |
;Следует
+
;Следует  
 
:{{cname|{{{next|}}}}}
 
:{{cname|{{{next|}}}}}
 
}}
 
}}
Строка 44: Строка 46:
 
{{!}}
 
{{!}}
 
[[File:{{{loading screen1|{{PAGENAME}} loading screen.jpg}}}|220x220px]]
 
[[File:{{{loading screen1|{{PAGENAME}} loading screen.jpg}}}|220x220px]]
<p style="font-size:.9em;">{{{loading screen1-text|{{#if: {{{loading screen2|}}} | Первый загрузочный экран | Загрузочный экран }}}}}</p> {{  #if: {{{loading screen2|}}} | [[File:{{{loading screen2|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{loading screen1-text|{{#if: {{{loading screen2|}}} | First loading screen | Loading screen }}}}}</p> {{  #if: {{{loading screen2|}}} | [[File:{{{loading screen2|}}}|220x220px]]
<p style="font-size:.9em;">{{{loading screen2-text|Второй загрузочный экран}}}</p> }}{{ #if: {{{loading screen3|}}} | [[File:{{{loading screen3|}}}|220x220px]]
+
<p style="font-size:.9em;">{{{loading screen2-text|Second loading screen}}}</p> }}{{ #if: {{{loading screen3|}}} | [[File:{{{loading screen3|}}}|220x220px]]
<p style="font-size:.9em;">{{{loading screen3-text|Третий загрузочный экран}}}</p> }}
+
<p style="font-size:.9em;">{{{loading screen3-text|Third loading screen}}}</p> }}
 
{{!}}}
 
{{!}}}
 
|{{clear}}}}
 
|{{clear}}}}

Версия 14:38, 29 июля 2016

Living world infobox

Глава
Unspecified
Локация
Unspecified
Уровень
Unspecified

Parameters

name 
Optional. Name of the event if the page name is not the same. Defaults to the page name.
chapter 
Required. Categorizes the living story and links to the living story chapter.
year 
Optional. The year in the Mouvelian calendar when this event happens.
location 
Required. The locations in which the event takes place. This is usually a comma separated list.
level 
Optional. The level of this event.
prev 
Optional. The name of the first previous event.
next 
Optional. The name of the first following event.
map1 
The name of the file (without the File: tag).
map1-text 
The text that goes under map1.
map2, map3, map4, map5, map2-text, map3-text, map4-text, map5-text 
Same as above.
loading screen1 
The name of the file (without the File: tag).
loading screen1-text 
The text that goes under loading screen1.
loading screen2, loading screen3 
Same as above.
categorize 
Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
status 
Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
historical 
Optional. (legacy parameter). Duplicates function of setting status = historical. y displays the {{historical content}} notice.

Code

{{Living world infobox
| name =
| year = 
| chapter = 
| location = 
| level =
| prev = 
| next = 
| map1 = 
| map1-text = 
}}