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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показано 5 промежуточных версий этого же участника)
Строка 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}}
 +
| eod
 +
| end of dragons            = {{End of Dragons content}}
 +
| soto
 +
| soo
 +
| secrets of the obscure    = {{Secrets of the Obscure content}}
 +
| lws1
 +
| living world season 1      = {{Living World Season 1 content}}
 
| lws2
 
| lws2
| lws 2
+
| living world season 2     = {{Living World Season 2 content}}
| living world season 2
+
| gates of maguuma
| season 2 = {{Living World Season 2 content}}
+
| entanglement
| gom
+
| the dragon's reach: part 1
| gates of maguuma = {{Living World Season 2 content|Gates of Maguuma}}
+
| the dragon's reach: part 2
| entanglement = {{Living World Season 2 content|Entanglement}}
+
| echoes of the past
| dr1
+
| tangled paths
| dragon's reach 1
+
| seeds of truth
| the dragon's reach 1
+
| point of no return         = {{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}}
 
| dr2
 
| dragon's reach 2
 
| the dragon's reach 2
 
| the dragon's reach part 2
 
| the dragon's reach: part 2 = {{Living World Season 2 content|The Dragon's Reach: Part 2}}
 
| eotp
 
| echoes of the past = {{Living World Season 2 content|Echoes of the Past}}
 
| tp
 
| tangled paths = {{Living World Season 2 content|Tangled Paths}}
 
| sot
 
| seeds of truth = {{Living World Season 2 content|Seeds of Truth}}
 
| ponr
 
| point of no return = {{Living World Season 2 content|Point of No Return}}
 
 
| lws3
 
| lws3
| lws 3
+
| living world season 3     = {{Living World Season 3 content}}
| living world season 3
+
| out of the shadows
| season 3 = {{Living World Season 3 content}}
+
| rising flames
| oots
+
| a crack in the ice
| out of the shadows = {{Living World Season 3 content|Out of the Shadows}}
+
| the head of the snake
| rf
+
| flashpoint
| rising flames = {{Living World Season 3 content|Rising Flames}}
+
| one path ends              = {{Living World Season 3 content}}
| citi
+
| lws4
| aciti
+
| living world season 4      = {{Living World Season 4 content}}
| crack in the ice
+
| daybreak
| a crack in the ice = {{Living World Season 3 content|A Crack in the Ice}}
+
| a bug in the system
| hots
+
| long live the lich
| thots
+
| a star to guide us
| head of the snake
+
| all or nothing
| the head of the snake = {{Living World Season 3 content|The Head of the Snake}}
+
| war eternal                = {{Living World Season 4 content}}
| fp
+
| lws5
| flashpoint = {{Living World Season 3 content|Flashpoint}}
+
| the icebrood saga
| ope
+
| living world season 5      = {{The Icebrood Saga content}}
| one path ends = {{Living World Season 3 content|One Path Ends}}
+
| bound by blood
 +
| whisper in the dark
 +
| shadow in the ice
 +
| visions of the past: steel and fire
 +
| no quarter                = {{The Icebrood Saga content}}
 
}}|}}</includeonly><noinclude>
 
}}|}}</includeonly><noinclude>
 +
== Description ==
 +
This template provides an icon in the top-right corner of a page with an infobox to indicate the expansion/release required to access the content.
  
 
== Usage ==
 
== Usage ==
The release indicates the expansion/dlc requires to access the content. Multiple values can be separated by a comma (,). The template is only for use in the infobox, for pages lacking an infobox users should use the [[:Category:Notice templates|notice templates]] directly.
+
Specify the expansion/release required to access the content. Multiple values can be separated by a comma (,).
  
Used in:
+
The template is only for use in an infobox, for pages lacking an infobox users should use [[:Category:Notice templates|notice templates]] directly.
:{{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}}
 
  
<pre>
+
<pre>{{infobox requires|<requires>}}</pre>
{{infobox release|<release>}}
 
</pre>
 
  
== Parameters ==
+
=== Parameters ===
;Unnamed parameter 1
+
;1 ''(unnamed parameter)''
:The release required to access the content.
+
:The release required to access the content. Accepted values (ignores case):
:Accepted values (ignores capitals):
+
:* <code>hot</code>, <code>heart of thorns</code>
::hot, heart of thorns
+
:* <code>pof</code>, <code>path of fire</code>
::pof, path of fire
+
:* <code>eod</code>, <code>end of dragons</code>
::lws2, lws 2, living world season 2, season 2
+
:* <code>soto</code>, <code>soo</code>, <code>secrets of the obscure</code>
:::gom, gates of maguuma
+
:* <code>lws1</code>, <code>living world season 1</code>
:::entanglement
+
:* <code>lws2</code>, <code>living world season 2</code>
:::dr1, dragon's reach 1, the dragon's reach 1, the dragon's reach part 1, the dragon's reach: part 1
+
:** <code>gates of maguuma</code>
:::dr2, dragon's reach 2, the dragon's reach 2, the dragon's reach part 2, the dragon's reach: part 2
+
:** <code>entanglement</code>
:::eotp, echoes of the past
+
:** <code>the dragon's reach: part 1</code>
:::tp, tangled paths
+
:** <code>the dragon's reach: part 2</code>
:::sot, seeds of truth
+
:** <code>echoes of the past</code>
:::ponr, point of no return
+
:** <code>tangled paths</code>
::lws3, lws 3, living world season 3, season 3
+
:** <code>seeds of truth</code>
:::oots, out of the shadows
+
:** <code>point of no return</code>
:::rf, rising flames
+
:* <code>lws3</code>, <code>living world season 3</code>
:::citi, aciti, crack in the ice, a crack in the ice
+
:** <code>out of the shadows</code>
:::hots, thots, head of the snake, the head of the snake
+
:** <code>rising flames</code>
:::fp, flashpoint
+
:** <code>a crack in the ice</code>
:::ope, one path ends
+
:** <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>
 +
:** <code>all or nothing</code>
 +
:** <code>war eternal</code>
 +
:* <code>lws5</code>, <code>living world season 5</code>, <code>the icebrood saga</code>
 +
:** <code>bound by blood</code>
 +
:** <code>whisper in the dark</code>
 +
:** <code>shadow in the ice</code>
 +
:** <code>visions of the past: steel and fire</code>
 +
:** <code>no quarter</code>
  
== Examples ==
+
=== Examples ===
 
<pre>
 
<pre>
{{infobox release}}
+
{{infobox requires|hot}}
{{infobox release|hot}}
+
{{infobox requires|lws2}}
{{infobox release|lws2, lws3}}
+
{{infobox requires|out of the shadows}}
{{infobox release|oots}}
 
  
 
Within an infobox
 
Within an infobox
| release = hot, lws3
+
| requires = hot, lws3
 
</pre>
 
</pre>
{{infobox release}}
+
 
{{infobox release|hot}}
+
== Used in ==
{{infobox release|lws2, lws3}}
+
* {{tl|Adventure 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|Location 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>

Текущая версия на 15:35, 6 сентября 2023

Description[править]

This template provides an icon in the top-right corner of a page with an infobox to indicate the expansion/release required to access the content.

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[править]

1 (unnamed parameter)
The release required to access the content. Accepted values (ignores case):
  • hot, heart of thorns
  • pof, path of fire
  • eod, end of dragons
  • soto, soo, secrets of the obscure
  • 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
    • all or nothing
    • war eternal
  • lws5, living world season 5, the icebrood saga
    • bound by blood
    • whisper in the dark
    • shadow in the ice
    • visions of the past: steel and fire
    • no quarter

Examples[править]

{{infobox requires|hot}}
{{infobox requires|lws2}}
{{infobox requires|out of the shadows}}

Within an infobox
| requires = hot, lws3

Used in[править]