Template:Location infobox: Difference between revisions
m (→Example) |
No edit summary |
||
Line 4: | Line 4: | ||
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
{{#if:{{{map|}}}|<p class="image_wrapper">[[File:{{{ | {{#if:{{{map|}}}|<p class="image_wrapper">[[File:{{{map}}}|250px|center]]</p><p style="font-size:.9em;text-align:center;">''{{#if:{{{map-text|}}}|{{{map-text}}}|Map of {{PAGENAME}}.''</p>}}}} | ||
{{#if:{{{levels|}}}| | |||
;Levels : {{{levels}}}}} | |||
</div> | </div> | ||
Line 27: | Line 29: | ||
{{Location infobox | {{Location infobox | ||
|name= | |name= | ||
|icon= | |||
|map= | |map= | ||
|map-text= | |map-text= | ||
Line 41: | Line 44: | ||
; icon : Optional. Include if Location has a unique icon, like a faction or banner. | ; icon : Optional. Include if Location has a unique icon, like a faction or banner. | ||
; map : Optional. Include if Location has its own map, like a region or zone. | ; map : Optional. Include if Location has its own map, like a region or zone. | ||
; map-text : Optional. Only include if text should differ from default. Defaults to "Map of {{ | ; map-text : Optional. Only include if text should differ from default. Defaults to "Map of <code><nowiki>{{PAGENAME}}</nowiki></code>". | ||
; levels : Optional. Level range for monsters in the Location. | ; levels : Optional. Level range for monsters in the Location. | ||
; type : Required. Type of location. Options: | ; type : Required. Type of location. Options: | ||
Line 59: | Line 62: | ||
== Example == | == Example == | ||
{{Location infobox | {{Location infobox | ||
|name= | |name=Glorious Imperial Territory (V1) | ||
|map= | |map=Npg-v1map.png | ||
|map-text= | |map-text=Glorious Imperial Territory (V1) | ||
|levels= | |levels=1-10<sup>?</sup> | ||
|type= | |type=Continent | ||
|within= | |within=V1 | ||
|connections= | |connections= | ||
|gallery1 | |gallery1= | ||
|gallery-text1 | |gallery-text1= | ||
}} | }} | ||
<pre> | <pre> | ||
{{Location infobox | {{Location infobox | ||
|name= | |name=Glorious Imperial Territory (V1) | ||
|map= | |map=Npg-v1map.png | ||
|map-text= | |map-text=Glorious Imperial Territory (V1) | ||
|levels= | |levels=1-10<sup>?</sup> | ||
|type= | |type=Continent | ||
|within= | |within=V1 | ||
|connections= | |connections= | ||
|gallery1 | |gallery1= | ||
|gallery-text1 | |gallery-text1= | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 06:05, 3 July 2024
Warning:
Description
This is the Location infobox template. It should be transcluded in the following format:
{{Location infobox |name= |icon= |map= |map-text= |levels= |type= |within= |connections= |gallery1...gallery5= |gallery-text1...gallery-text5= }}
Parameters
- name
- Optional. Only include if the name of the Location differs from the article name. Defaults to the name of the article:
{{PAGENAME}}
- icon
- Optional. Include if Location has a unique icon, like a faction or banner.
- map
- Optional. Include if Location has its own map, like a region or zone.
- map-text
- Optional. Only include if text should differ from default. Defaults to "Map of
{{PAGENAME}}
". - levels
- Optional. Level range for monsters in the Location.
- type
- Required. Type of location. Options:
- Continent
- Region
- Zone
- Area
- City
- Landmark
- Portal
- Bindstone
- within
- Optional. The parent location of the location being described. For zones, this should be a region; for areas, this should be a zone; for everything else, this will usually be an area. If within is an area or zone, the parent of within will be displayed underneath in small text.
- connections
- Optional. Other locations that this one has connections to. Usually only specified on zones. Separate multiple connections with
<br>
and add your own wiki-links. The cardinal direction is usually specified in brackets after the zone name; (N), (S), (E), (W), (NE), etc. In the case of a portal, add (portal) instead of direction. - gallery1...gallery5
- Optional. Images related to the Location.
- gallery-text1...gallery-text5
- Optional. Image descriptions.
Example
Glorious Imperial Territory (V1)
Glorious Imperial Territory (V1)
- Levels
- 1-10?
{{Location infobox |name=Glorious Imperial Territory (V1) |map=Npg-v1map.png |map-text=Glorious Imperial Territory (V1) |levels=1-10<sup>?</sup> |type=Continent |within=V1 |connections= |gallery1= |gallery-text1= }}
TODO
- Add properties to parameters