Template:Map variants: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>AnSq
(shaped fix)
>Illviljan
(Replaced content with "<includeonly>This item has other versions. {{#invoke:Item table|item_disambiguation}}</includeonly><noinclude>{{documentation}}</noinclude>")
Line 1: Line 1:
<includeonly>{{#vardefine:one | {{#replace:{{#sub:{{{1|{{SUBPAGENAME}} }}}|0|{{#pos:{{{1|{{SUBPAGENAME}} }}}|Map}} }} | Shaped |}}
<includeonly>This item has other versions.
 
{{#invoke:Item table|item_disambiguation}}</includeonly><noinclude>{{documentation}}</noinclude>
}}{{#vardefine:war      | {{#if:{{{war|}}}      |{{{war}}}      |{{#var:one}} }}
}}{{#vardefine:atlas    | {{#if:{{{atlas|}}}    |{{{atlas}}}    |{{#var:one}} }}
}}{{#vardefine:awakening | {{#if:{{{awakening|}}} |{{{awakening}}} |{{#var:one}} }}
}}{{#vardefine:original  | {{#if:{{{original|}}}  |{{{original}}}  |{{#var:one}} }}
 
}}{{#vardefine:show_current | {{{show_current|0}}}
 
}}{{#vardefine:war_exists          | {{#if:{{#cargo_query:table = maps |where = maps._pageName='{{#var:war}} Map (War for the Atlas)'        |default=}} | 1 | 0}}
}}{{#vardefine:atlas_exists        | {{#if:{{#cargo_query:table = maps |where = maps._pageName='{{#var:atlas}} Map (Atlas of Worlds)'        |default=}} | 1 | 0}}
}}{{#vardefine:atlas_shaped_exists | {{#if:{{#cargo_query:table = maps |where = maps._pageName='Shaped {{#var:atlas}} Map (Atlas of Worlds)' |default=}} | 1 | 0}}
}}{{#vardefine:awakening_exists    | {{#if:{{#cargo_query:table = maps |where = maps._pageName='{{#var:awakening}} Map (The Awakening)'      |default=}} | 1 | 0}}
}}{{#vardefine:original_exists    | {{#if:{{#cargo_query:table = maps |where = maps._pageName='{{#var:original}} Map (Original)'            |default=}} | 1 | 0}}
 
}}{{#vardefine:onpage_war          | {{#ifeq:{{SUBPAGENAME}} | {{#var:war}} Map (War for the Atlas)        | 1 | 0}}
}}{{#vardefine:onpage_atlas        | {{#ifeq:{{SUBPAGENAME}} | {{#var:atlas}} Map (Atlas of Worlds)        | 1 | 0}}
}}{{#vardefine:onpage_atlas_shaped | {{#ifeq:{{SUBPAGENAME}} | Shaped {{#var:atlas}} Map (Atlas of Worlds) | 1 | 0}}
}}{{#vardefine:onpage_awakening    | {{#ifeq:{{SUBPAGENAME}} | {{#var:awakening}} Map (The Awakening)      | 1 | 0}}
}}{{#vardefine:onpage_original    | {{#ifeq:{{SUBPAGENAME}} | {{#var:original}} Map (Original)            | 1 | 0}}
 
}}{{#vardefine:show_war          | {{#expr: not {{#var:onpage_war}}          or {{#var:show_current}} }}
}}{{#vardefine:show_atlas        | {{#expr: not {{#var:onpage_atlas}}        or {{#var:show_current}} }}
}}{{#vardefine:show_atlas_shaped | {{#expr: not {{#var:onpage_atlas_shaped}} or {{#var:show_current}} }}
}}{{#vardefine:show_awakening    | {{#expr: not {{#var:onpage_awakening}}    or {{#var:show_current}} }}
}}{{#vardefine:show_original    | {{#expr: not {{#var:onpage_original}}    or {{#var:show_current}} }}
 
}}{{#ifexpr:not {{{hide_heading|0}}} | == {{{heading|Other versions}}} ==
|}}{{#ifexpr:  {{#var:show_war}}          | {{#ifexpr:{{#var:war_exists}}          | * {{il|page={{#var:war}} Map (War for the Atlas)        |name={{#var:war}} Map (War for the Atlas)}}        |* There is no {{#var:war}} Map in the ''War for the Atlas'' map series
}} |}}{{#ifexpr:{{#var:show_atlas}}        | {{#ifexpr:{{#var:atlas_exists}}        | * {{il|page={{#var:atlas}} Map (Atlas of Worlds)        |name={{#var:atlas}} Map (Atlas of Worlds)}}        |* There is no {{#var:atlas}} Map in the ''Atlas of Worlds'' map series
}} |}}{{#ifexpr:{{#var:show_atlas_shaped}} | {{#ifexpr:{{#var:atlas_shaped_exists}} | * {{il|page=Shaped {{#var:atlas}} Map (Atlas of Worlds) |name=Shaped {{#var:atlas}} Map (Atlas of Worlds)}}
|}}|}}{{#ifexpr:{{#var:show_awakening}}    | {{#ifexpr:{{#var:awakening_exists}}    | * {{il|page={{#var:awakening}} Map (The Awakening)      |name={{#var:awakening}} Map (The Awakening)}}      |* There is no {{#var:awakening}} Map in ''The Awakening'' map series
}} |}}{{#ifexpr:{{#var:show_original}}    | {{#ifexpr:{{#var:original_exists}}    | * {{il|page={{#var:original}} Map (Original)            |name={{#var:original}} Map (Original)}}            |* There is no {{#var:original}} Map in the ''Original'' map series
}} |}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 10:32, 7 April 2018

Template documentation[view] [edit] [history] [purge]


Lua logo

This template uses the following modules:

This template displays a table of map variants that share the same name. The maps are listed in order of which series they belong to, from the most recent to the oldest.

Usage

Use this template on a map page to create a section listing its variants.

Parameters

Use one of the following parameters to specify how to query for map variants. If both are omitted, the current page name is used.

Parameter Description
1, item_name Get variants of the map with this name. Use this parameter or |page=, not both.
page Get variants of the map on this page. Use this parameter or |item_name=, not both.

Example

{{Map variants|item_name=Cursed Crypt Map}}

This item has other versions. Script error: The function "item_disambiguation" does not exist.