Template:Preload area article/doc: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
No edit summary |
||
(13 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
==Naming area pages== | ==Naming area pages== | ||
* Use the name of the area as page name | * Use the name of the area as page name | ||
* If multiple areas have the same name: | * If multiple areas have the same name: | ||
** if the area is part of the main story progression, append the act in parenthesis (e.x. [[Lioneye's Watch (Act 1)]]) | ** if the area is part of the main story progression, append the act in parenthesis (e.x. [[Lioneye's Watch (Act 1)]]) | ||
** if the area is a '''legacy''' map area, append the map | ** if the area is a '''legacy''' map area, append the map series in parenthesis (e.x. [[Map:Canyon Map (Original)]], [[Map:Canyon Map (Original)]]) | ||
==Finding the area id== | |||
Browse to it using [[Special:CargoTables]] or use a query similar to this: | |||
<pre> | |||
{{#cargo_query: | |||
tables = areas | |||
|fields = areas._pageName, areas.id, areas.name, areas.main_page | |||
|where = areas.id LIKE "%" | |||
|limit=5000 | |||
}} | |||
</pre> | |||
==Example== | ==Example== | ||
<syntaxhighlight>{{subst: | <syntaxhighlight lang="text">{{subst:Preload area article | ||
|area_id=1_1_1 | |area_id=1_1_1 | ||
|description=This is the best area. | |description=This is the best area. | ||
Line 18: | Line 28: | ||
}}</syntaxhighlight> | }}</syntaxhighlight> | ||
Generates a page like this: | Generates a page like this: | ||
[[ | [[Template:Preload area article/doc/example]] | ||
< | {{Documentation categories| | ||
<!-- Categories and interwikis go here. --> | |||
[[Category:Article creation templates]] | |||
}} |
Latest revision as of 08:34, 18 September 2022
This subpage provides documentation for Template:Preload area article.
Naming area pages
- Use the name of the area as page name
- If multiple areas have the same name:
- if the area is part of the main story progression, append the act in parenthesis (e.x. Lioneye's Watch (Act 1))
- if the area is a legacy map area, append the map series in parenthesis (e.x. Map:Canyon Map (Original), Map:Canyon Map (Original))
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