Шаблон:Infobox requires — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) м (Blood переименовал страницу Шаблон:Infobox release в Шаблон:Infobox requires) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
<includeonly>{{#arraymap: {{{1}}}|,|@@@|{{#switch: {{lc:@@@}} | <includeonly>{{#arraymap: {{{1}}}|,|@@@|{{#switch: {{lc:@@@}} | ||
| hot | | hot | ||
− | | heart of thorns = {{Heart of Thorns content}} | + | | heart of thorns = {{Heart of Thorns content}} |
| pof | | pof | ||
− | | path of fire = {{Path of Fire content}} | + | | path of fire = {{Path of Fire content}} |
+ | | lws1 | ||
+ | | living world season 1 = {{Living World Season 1 content}} | ||
| lws2 | | lws2 | ||
− | + | | living world season 2 = {{Living World Season 2 content}} | |
− | | living world season 2 | + | | gates of maguuma = {{Living World Season 2 content|Gates of Maguuma}} |
− | + | | entanglement = {{Living World Season 2 content|Entanglement}} | |
− | |||
− | | gates of maguuma = {{Living World Season 2 content|Gates of Maguuma}} | ||
− | | entanglement = {{Living World Season 2 content|Entanglement}} | ||
− | |||
− | |||
− | |||
− | |||
| the dragon's reach: part 1 = {{Living World Season 2 content|The Dragon's Reach: Part 1}} | | the dragon's reach: part 1 = {{Living World Season 2 content|The Dragon's Reach: Part 1}} | ||
− | |||
− | |||
− | |||
− | |||
| the dragon's reach: part 2 = {{Living World Season 2 content|The Dragon's Reach: Part 2}} | | the dragon's reach: part 2 = {{Living World Season 2 content|The Dragon's Reach: Part 2}} | ||
− | + | | echoes of the past = {{Living World Season 2 content|Echoes of the Past}} | |
− | | echoes of the past = {{Living World Season 2 content|Echoes of the Past}} | + | | tangled paths = {{Living World Season 2 content|Tangled Paths}} |
− | + | | seeds of truth = {{Living World Season 2 content|Seeds of Truth}} | |
− | | tangled paths = {{Living World Season 2 content|Tangled Paths}} | + | | point of no return = {{Living World Season 2 content|Point of No Return}} |
− | |||
− | | seeds of truth = {{Living World Season 2 content|Seeds of Truth}} | ||
− | |||
− | | point of no return = {{Living World Season 2 content|Point of No Return}} | ||
| lws3 | | lws3 | ||
− | + | | living world season 3 = {{Living World Season 3 content}} | |
− | | living world season 3 | + | | out of the shadows = {{Living World Season 3 content|Out of the Shadows}} |
− | + | | rising flames = {{Living World Season 3 content|Rising Flames}} | |
− | + | | a crack in the ice = {{Living World Season 3 content|A Crack in the Ice}} | |
− | | out of the shadows = {{Living World Season 3 content|Out of the Shadows}} | + | | the head of the snake = {{Living World Season 3 content|The Head of the Snake}} |
− | + | | flashpoint = {{Living World Season 3 content|Flashpoint}} | |
− | | rising flames = {{Living World Season 3 content|Rising Flames}} | + | | one path ends = {{Living World Season 3 content|One Path Ends}} |
− | + | | lws4 | |
− | + | | living world season 4 = {{Living World Season 4 content}} | |
− | + | | daybreak = {{Living World Season 4 content|Daybreak}} | |
− | | a crack in the ice = {{Living World Season 3 content|A Crack in the Ice}} | + | | a bug in the system = {{Living World Season 4 content|A Bug in the System}} |
− | + | | long live the lich = {{Living World Season 4 content|Long Live the Lich}} | |
− | + | | a star to guide us = {{Living World Season 4 content|A Star to Guide Us}} | |
− | + | }}|}}</includeonly><noinclude>This template provides an icon in the top-right corner of a page with an infobox to indicate when content was released. | |
− | | the head of the snake = {{Living World Season 3 content|The Head of the Snake}} | ||
− | |||
− | | flashpoint = {{Living World Season 3 content|Flashpoint}} | ||
− | |||
− | | one path ends = {{Living World Season 3 content|One Path Ends}} | ||
− | | lws4 | ||
− | |||
− | | living world season 4 | ||
− | | | ||
− | | | ||
− | | | ||
− | }}|}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | + | Specify the expansion/release required to access the content. Multiple values can be separated by a comma (,). | |
− | + | The template is only for use in an infobox, for pages lacking an infobox users should use [[:Category:Notice templates|notice templates]] directly. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | : | ||
− | : | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <pre> | + | <pre>{{infobox requires|<requires>}}</pre> |
− | {{infobox | ||
− | </pre> | ||
== Parameters == | == Parameters == | ||
;Unnamed parameter 1 | ;Unnamed parameter 1 | ||
− | :The release required to access the content. | + | :The release required to access the content. Accepted values (ignores case): |
− | + | :* <code>hot</code>, <code>heart of thorns</code> | |
− | : | + | :* <code>pof</code>, <code>path of fire</code> |
− | : | + | :* <code>lws1</code>, <code>living world season 1</code> |
− | ::lws2, | + | :* <code>lws2</code>, <code>living world season 2</code> |
− | : | + | :** <code>gates of maguuma</code> |
− | : | + | :** <code>entanglement</code> |
− | : | + | :** <code>the dragon's reach: part 1</code> |
− | : | + | :** <code>the dragon's reach: part 2</code> |
− | : | + | :** <code>echoes of the past</code> |
− | : | + | :** <code>tangled paths</code> |
− | : | + | :** <code>seeds of truth</code> |
− | : | + | :** <code>point of no return</code> |
− | : | + | :* <code>lws3</code>, <code>living world season 3</code> |
− | : | + | :** <code>out of the shadows</code> |
− | : | + | :** <code>rising flames</code> |
− | : | + | :** <code>a crack in the ice</code> |
− | : | + | :** <code>the head of the snake</code> |
− | : | + | :** <code>flashpoint</code> |
− | : | + | :** <code>one path ends</code> |
− | : | + | :* <code>lws4</code>, <code>living world season 4</code> |
− | ::: | + | :** <code>daybreak</code> |
+ | :** <code>a bug in the system</code> | ||
+ | :** <code>long live the lich</code> | ||
+ | :** <code>a star to guide us</code> | ||
== Examples == | == Examples == | ||
<pre> | <pre> | ||
− | {{infobox | + | {{infobox requires|hot}} |
− | + | {{infobox requires|lws2}} | |
− | {{infobox | + | {{infobox requires|out of the shadows}} |
− | {{infobox | ||
Within an infobox | Within an infobox | ||
− | | | + | | requires = hot, lws3 |
</pre> | </pre> | ||
− | {{infobox | + | |
− | {{infobox | + | == Used in == |
− | {{infobox | + | * {{tl|Adventure infobox}} |
+ | * {{tl|Area infobox}} | ||
+ | * {{tl|Armor infobox}} | ||
+ | * {{tl|Armor set infobox}} | ||
+ | * {{tl|Back item infobox}} | ||
+ | * {{tl|Effect infobox}} | ||
+ | * {{tl|Event infobox}} | ||
+ | * {{tl|Guild upgrade infobox}} | ||
+ | * {{tl|Heart infobox}} | ||
+ | * {{tl|Item infobox}} | ||
+ | * {{tl|Mastery infobox}} | ||
+ | * {{tl|NPC infobox}} | ||
+ | * {{tl|Object infobox}} | ||
+ | * {{tl|Pet infobox}} | ||
+ | * {{tl|Skill infobox}} | ||
+ | * {{tl|skin infobox}} | ||
+ | * {{tl|Specialization infobox}} | ||
+ | * {{tl|Story infobox}} | ||
+ | * {{tl|Trait infobox}} | ||
+ | * {{tl|Trinket infobox}} | ||
+ | * {{tl|Upgrade component infobox}} | ||
+ | * {{tl|Weapon infobox}} | ||
[[Category:Infobox subtemplates]] | [[Category:Infobox subtemplates]] | ||
</noinclude> | </noinclude> |
Версия 23:27, 17 декабря 2018
This template provides an icon in the top-right corner of a page with an infobox to indicate when content was released.
Содержание
Usage
Specify the expansion/release required to access the content. Multiple values can be separated by a comma (,).
The template is only for use in an infobox, for pages lacking an infobox users should use notice templates directly.
{{infobox requires|<requires>}}
Parameters
- Unnamed parameter 1
- The release required to access the content. Accepted values (ignores case):
-
hot
,heart of thorns
-
pof
,path of fire
-
lws1
,living world season 1
-
lws2
,living world season 2
-
gates of maguuma
-
entanglement
-
the dragon's reach: part 1
-
the dragon's reach: part 2
-
echoes of the past
-
tangled paths
-
seeds of truth
-
point of no return
-
-
lws3
,living world season 3
-
out of the shadows
-
rising flames
-
a crack in the ice
-
the head of the snake
-
flashpoint
-
one path ends
-
-
lws4
,living world season 4
-
daybreak
-
a bug in the system
-
long live the lich
-
a star to guide us
-
-
Examples
{{infobox requires|hot}} {{infobox requires|lws2}} {{infobox requires|out of the shadows}} Within an infobox | requires = hot, lws3
Used in
- {{Adventure infobox}}
- {{Area infobox}}
- {{Armor infobox}}
- {{Armor set infobox}}
- {{Back item infobox}}
- {{Effect infobox}}
- {{Event infobox}}
- {{Guild upgrade infobox}}
- {{Heart infobox}}
- {{Item infobox}}
- {{Mastery infobox}}
- {{NPC infobox}}
- {{Object infobox}}
- {{Pet infobox}}
- {{Skill infobox}}
- {{skin infobox}}
- {{Specialization infobox}}
- {{Story infobox}}
- {{Trait infobox}}
- {{Trinket infobox}}
- {{Upgrade component infobox}}
- {{Weapon infobox}}