Template:Latest map variant/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} {{Lua|Module:Map variants}} Returns the item page name of a map with this name from the most recent series in which it appeared. ==Usage== Use this template on a map page as the parameter to other templates that expect an item page name, such as <nowiki>{{Item acquisition|page={{Latest map variant}}}}</nowiki> or <nowiki>{{il|page={{Latest map variant}}}}</nowiki> ===Parameters=== Use the page parameter to specify how to query for map va...")
 
(Weird example. Although this could work, there is no use case where this template must be used with Template:Item link.)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:
Use this template on a map page as the parameter to other templates that expect an item page name, such as  
Use this template on a map page as the parameter to other templates that expect an item page name, such as  
  <nowiki>{{Item acquisition|page={{Latest map variant}}}}</nowiki>
  <nowiki>{{Item acquisition|page={{Latest map variant}}}}</nowiki>
or
<nowiki>{{il|page={{Latest map variant}}}}</nowiki>


===Parameters===
===Parameters===
Use the page parameter to specify how to query for map variants. If blank, the current page name will be used instead
Use the item_name parameter to specify how to query for map variants. If blank, the name of the current page will be used instead


{| class="wikitable"
{| class="wikitable"
! Parameter !! Description
! Parameter !! Description
|-
|-
| <code>page</code>
| <code>1</code>, <code>item_name</code>
| Base name of the map to find variants of
| Base name of the map to find variants of
|}
|}


==Example==
==Example==
<pre>{{Latest map variant|page=Cursed Crypt Map}}</pre>
<pre>{{Latest map variant|Cursed Crypt Map}}</pre>


{{Latest map variant|page=Cursed Crypt Map}}
{{Latest map variant|Cursed Crypt Map}}


{{Documentation categories|
{{Documentation categories|

Latest revision as of 16:38, 2 June 2024

This subpage provides documentation for Template:Latest map variant.

Lua logo

This template uses the following modules:

Returns the item page name of a map with this name from the most recent series in which it appeared.

Usage

Use this template on a map page as the parameter to other templates that expect an item page name, such as

{{Item acquisition|page={{Latest map variant}}}}

Parameters

Use the item_name parameter to specify how to query for map variants. If blank, the name of the current page will be used instead

Parameter Description
1, item_name Base name of the map to find variants of

Example

{{Latest map variant|Cursed Crypt Map}}

Map:Cursed Crypt Map (Necropolis)