Template:Preload area article: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
m (KickahaOta moved page Path of Exile Wiki:Manual of Style/area to Template:Preload area article: Switch to new substitution template naming scheme that keeps templates in Template space)
(Allow setting cats parameter)
 
Line 1: Line 1:
<includeonly>{{Query area infoboxes
<includeonly>{{Query area infoboxes
|where=areas.id="{{{area_id}}}"
|where=areas.id="{{{area_id}}}"
|cats=yes
|cats={{safesubst:#if: {{{cats|}}} |{{{cats}}}|yes}}
}}
}}
{{{description|'''{{PAGENAME}}''' is an [[area]].}}}
{{{description|'''{{PAGENAME}}''' is an [[area]].}}}

Latest revision as of 19:54, 9 December 2021

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


Naming area pages

Finding the area id

Browse to it using Special:CargoTables or use a query similar to this:

{{#cargo_query:
tables = areas
|fields = areas._pageName, areas.id, areas.name, areas.main_page
|where = areas.id LIKE "%"
|limit=5000
}}

Example

{{subst:Preload area article
|area_id=1_1_1
|description=This is the best area.
|npcs=* [[Nessa]]
|quests=* {{Ql|Enemy at the Gate}}
|monsters=* [[Hillock]]
|lore=* Lore items etc
}}

Generates a page like this: Template:Preload area article/doc/example