Шаблон:Event infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показана 1 промежуточная версия этого же участника) | |||
Строка 15: | Строка 15: | ||
;Тип события | ;Тип события | ||
:{{#ifeq:{{#replace:{{lc:{{{type|}}}}}|skill|hero}}|hero challenge| {{event icon|hero}}{{#set:Has event icon=hero}} | {{#if:{{{indicator|}}}|{{event icon|{{{indicator|}}}}}{{#set:Has event icon={{lc:{{{indicator|}}}}}}}|}} | :{{#ifeq:{{#replace:{{lc:{{{type|}}}}}|skill|hero}}|hero challenge| {{event icon|hero}}{{#set:Has event icon=hero}} | {{#if:{{{indicator|}}}|{{event icon|{{{indicator|}}}}}{{#set:Has event icon={{lc:{{{indicator|}}}}}}}|}} | ||
− | }} {{#if: {{{type|}}} |[[{{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}|{{#switch:{{#replace:{{lc:{{{type}}}}}|skill|hero}}|dynamic event=Динамическое|group event=Групповое|#default={{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}}}]]{{#set:Has event type={{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}}} |[[Has event type::Dynamic event|Динамическое]]}} | + | }} {{#if: {{{type|}}} |[[{{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}|{{#switch:{{#replace:{{lc:{{{type}}}}}|skill|hero}}|dynamic event=Динамическое|group event=Групповое|meta event=Мета-событие|#default={{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}}}]]{{#set:Has event type={{ucfirst:{{#replace:{{lc:{{{type}}}}}|skill|hero}}}}}} |[[Has event type::Dynamic event|Динамическое]]}} |
{{#if: {{{meta_event|}}}| | {{#if: {{{meta_event|}}}| | ||
;Часть | ;Часть | ||
Строка 30: | Строка 30: | ||
| ''Не указано'' {{#set:Has event level=0}} | | ''Не указано'' {{#set:Has event level=0}} | ||
}}{{#ifeq: {{lc:{{{type}}}}} | meta event | | }}{{#ifeq: {{lc:{{{type}}}}} | meta event | | ||
− | ;Кол. событий | + | ;Кол. событий |
:{{#ask:[[Is part of meta event::{{PAGENAME}}]]|format=count}} | :{{#ask:[[Is part of meta event::{{PAGENAME}}]]|format=count}} | ||
}}{{#if: {{{boss|}}}| | }}{{#if: {{{boss|}}}| |
Текущая версия на 12:23, 11 августа 2021
Usage[править]
{{Event infobox | name = | location = | type = | indicator = | level = | heart = | meta_event = | meta_event2 = | meta_event3 = | meta_event4 = ... | meta_event99 = | boss = | start_npc = | event_prev = | event_prev2 = | event_prev3 = | event_prev4 = ... | event_prev99 = | event_success = | event_success2 = | event_success3 = | event_success4 = ... | event_success99 = | event_failure = | event_failure2 = | event_failure3 = | event_failure4 = ... | event_failure99 = | event id = | coordinates = | map1 = | map1-text = | map2 = | map2-text = | map3 = | map3-text = | map4 = | map4-text = | map5 = | map5-text = | requires = }}
Parameters[править]
- name
- Only use if the event name does not match the article name; defaults to
{{PAGENAME}}
. - location
- Required. The location in which the event takes places (e.g. Shaemoor Fields). Separate multiple values with a semi-colon.
- coordinates / path / bounds
- Optional. The X and Y coordinates to the NPCs location. Displays an interactive map with a marker for the event location. EG
[12345, 31321]
. Obtain the coordinates from Widget:Event table. See {{Infobox map}} for more details. - type
- The event type (i.e. Dynamic event, Group event, Guild mission, Map meta event, Meta event, Special event, Hero challenge); defaults to Dynamic event.
- indicator
- Name the icon indicator of the event. See {{Event icon}} for a full list.
- level
- Required. The level of this event.
- meta_event
- The meta event this event is part of.
- meta_event2... meta_event99
- Same as above. (Only used if the event is part of multiple meta events)
- boss
- The name of this event's boss, if it has one
- heart
- If the event contributes towards the completion of a nearby heart, note the heart name (the wiki-link is generated automatically).
- start_npc
- The NPC used to initiate the event. (separate multiple entries with a comma)
- map1... map5
- Map images of the event (or parts of the event.)
- map1-text ... map5-text
- Map image descriptions. Defaults to "Click to enlarge".
- event_prev
- The event this is preceded by;
- event_prev2... event_prev99
- Same as above. (Only used if there are multiple preceding events)
- event_success
- The event that follows if the completion of the current event is considered successful.
- event_success2... event_success99
- Same as above. (Only used if there are multiple such events)
- event_failure
- The event that follows if the completion of the current event is considered a failure.
- event_failure2... event_failure99
- Same as above. (Only used if there are multiple such events)
- event id
- Internal event identifier (GUID). Multiple ids should be comma separated.
- 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), or "hot" (Heart of Thorns content; implies "current").
- 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.
Example[править]
{{Event infobox | name = Defend Bloodsaw Mill from the Flame Legion | location = Bulliyak Arsenal | type = Dynamic event | indicator = flag | meta_event = Flame Legion Battles | level = 23 | event_prev = Prevent the Flame Legion from retaking Incendio Templum | event_success = Recover the scattered pieces of scrap metal for Savor Foulnight | event_success2 = Defend Faint Ghostnight as he searches for a new devourer egg | event_success3 = Defeat Hazarar Razenight | event_failure = Recapture Bloodsaw Mill from the Flame Legion | map1 =User Lucian Shadowborn map.jpg | map1-text = Quest path }}
Defend Bloodsaw Mill from the Flame Legion
- Локация
- Bulliyak Arsenal
(Diessa Plateau) - Тип события
- Динамическое
- Часть
- Flame Legion Battles
- Уровень
- 23
- Предшествует
- Prevent the Flame Legion from retaking Incendio Templum
- В случае победы
- Recover the scattered pieces of scrap metal for Savor Foulnight
Defend Faint Ghostnight as he searches for a new devourer egg
Defeat Hazarar Razenight - В случае провала
- Recapture Bloodsaw Mill from the Flame Legion
Карты события | |
Quest path |