Template:Location infobox: Difference between revisions
m (→Example) |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><templatestyles src="Infobox/styles.css" /> | |||
<div class="infobox location"> | <div class="infobox location"> | ||
{{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}} | {{#if:{{{icon|}}}|<div class="infobox-icon">[[File:{{{icon}}}|40px]]</div>}} | ||
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | <p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
{{#if:{{{ | {{#if:{{{image|}}}|<p class="image_wrapper">[[File:{{{image}}}|250px|center]]</p><p style="font-size:.9em;text-align:center;">''{{#if:{{{image-text|}}}|{{{image-text}}}|{{PAGENAME}}.''</p>}}}} | ||
{{#if:{{{levels|}}}| | {{#if:{{{levels|}}}| | ||
;Levels : {{{levels}}}}} | ;Levels : {{{levels}}}}} | ||
;Type : {{{type}}}{{#if:{{{within|}}}| | ;Type : [[{{{type}}}]]{{#switch:{{lc:{{{pvp|no}}}}}|yes= | ||
;PVP | |||
:Yes[[Category:PVP]]}}{{#if:{{{within|}}}| | |||
;Within : {{{within}}}}}{{#if:{{{connections|}}}| | ;Within : {{{within}}}}}{{#if:{{{connections|}}}| | ||
;Connects to : {{{connections}}}}} | ;Connects to : {{{connections}}}}} | ||
Line 13: | Line 15: | ||
{{#if: {{{gallery1|}}} | | {{#if: {{{gallery1|}}} | | ||
{{{!}} style="width:100%" | {{{!}} style="width:100%" | ||
{{!}} | {{!}} '''Image(s)''' | ||
{{!}}- style="text-align:center;" | {{!}}- style="text-align:center;" | ||
{{!}} | {{!}} | ||
Line 32: | Line 34: | ||
|name= | |name= | ||
|icon= | |icon= | ||
| | |image= | ||
| | |image-text= | ||
|levels= | |levels= | ||
|type= | |type= | ||
|pvp= | |||
|within= | |within= | ||
|connections= | |connections= | ||
Line 45: | Line 48: | ||
; name : Optional. Only include if the name of the Location differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code> | ; name : Optional. Only include if the name of the Location differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code> | ||
; 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. | ||
; | ; image : Optional. Include image of location, like a city or zone aesthetic. | ||
; | ; image-text : Optional. Only include if text should differ from default. Defaults to "<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 57: | Line 60: | ||
:: Portal | :: Portal | ||
:: Bindstone | :: Bindstone | ||
; pvp : Optional. Include if the area allows player vs player combat. Defaults to ``no``. | |||
; 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. | ; 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 <code><nowiki><br></nowiki></code> 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. | ; connections : Optional. Other locations that this one has connections to. Usually only specified on zones. Separate multiple connections with <code><nowiki><br></nowiki></code> 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. | ||
Line 66: | Line 70: | ||
{{Location infobox | {{Location infobox | ||
|name=Glorious Imperial Territory (V1) | |name=Glorious Imperial Territory (V1) | ||
| | |image=Npg-v1map.png | ||
| | |image-text=Map of Glorious Imperial Territory (V1) | ||
|type=Continent | |type=Continent | ||
|within=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] | |within=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] | ||
|V1-V3=V1 | |||
}} | }} | ||
{{Location infobox | {{Location infobox | ||
|name=Rog Imperial Castle area (V3) | |name=Rog Imperial Castle area (V3) | ||
| | |image=Rog_Imperial_Castle_region_map.png | ||
| | |image-text=Map of Rog Imperial Castle area (V3) | ||
|levels=1- | |levels=1-11 | ||
|type=Zone | |type=Zone | ||
|within=[[Idios (V3)]] | |within=[[Idios (V3)]] | ||
Line 82: | Line 87: | ||
{{Location infobox | {{Location infobox | ||
|name=Rog Imperial City (V3) | |name=Rog Imperial City (V3) | ||
| | |image=Rog_Imperial_Castle_city.png | ||
| | |image-text=Rog Imperial City | ||
|type=City | |type=City | ||
|within=[[Rog Imperial Castle area]]<p style="font-size:.9em>([[Idios (V3)]])</p> | |within=[[Rog Imperial Castle area]]<p style="font-size:.9em>([[Idios (V3)]])</p> | ||
Line 90: | Line 95: | ||
{{Location infobox | {{Location infobox | ||
|name=Dead Man's Holyland | |name=Dead Man's Holyland | ||
| | |image=Dead_Mans_Holyland_area_map.png | ||
| | |image-text=Map of Dead Man's Holyland | ||
|levels=15- | |levels=15-23 | ||
|type=Area | |type=Area | ||
|within=[[Silent Woods]]<br><p style="font-size:.9em>([[Foggy]])</p> | |within=[[Silent Woods]]<br><p style="font-size:.9em>([[Foggy]])</p> | ||
Line 100: | Line 105: | ||
{{Location infobox | {{Location infobox | ||
|name=Glorious Imperial Territory (V1) | |name=Glorious Imperial Territory (V1) | ||
| | |image=Npg-v1map.png | ||
| | |image-text=Map of Glorious Imperial Territory (V1) | ||
|type=Continent | |type=Continent | ||
|within=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] | |within=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] | ||
|V1-V3=V1 | |||
}} | }} | ||
{{Location infobox | {{Location infobox | ||
|name=Rog Imperial Castle area (V3) | |name=Rog Imperial Castle area (V3) | ||
| | |image=Rog_Imperial_Castle_region_map.png | ||
| | |image-text=Map of Rog Imperial Castle area (V3) | ||
|levels=1- | |levels=1-11 | ||
|type=Zone | |type=Zone | ||
|within=[[Idios (V3)]] | |within=[[Idios (V3)]] | ||
Line 116: | Line 122: | ||
{{Location infobox | {{Location infobox | ||
|name=Rog Imperial City (V3) | |name=Rog Imperial City (V3) | ||
| | |image=Rog_Imperial_Castle_city.png | ||
| | |image-text=Rog Imperial City | ||
|type=City | |type=City | ||
|within=[[Rog Imperial Castle area]]<p style="font-size:.9em>([[Idios (V3)]])</p> | |within=[[Rog Imperial Castle area]]<p style="font-size:.9em>([[Idios (V3)]])</p> | ||
Line 124: | Line 130: | ||
{{Location infobox | {{Location infobox | ||
|name=Dead Man's Holyland | |name=Dead Man's Holyland | ||
| | |image=Dead_Mans_Holyland_area_map.png | ||
| | |image-text=Map of Dead Man's Holyland | ||
|levels=15- | |levels=15-23 | ||
|type=Area | |type=Area | ||
|within=[[Silent Woods]]<br><p style="font-size:.9em>([[Foggy]])</p> | |within=[[Silent Woods]]<br><p style="font-size:.9em>([[Foggy]])</p> |
Latest revision as of 19:53, 18 September 2024
Description
This is the Location infobox template. It should be transcluded in the following format:
{{Location infobox |name= |icon= |image= |image-text= |levels= |type= |pvp= |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.
- image
- Optional. Include image of location, like a city or zone aesthetic.
- image-text
- Optional. Only include if text should differ from default. Defaults to "
{{PAGENAME}}
". - levels
- Optional. Level range for monsters in the Location.
- type
- Required. Type of location. Options:
- Continent
- Region
- Zone
- Area
- City
- Landmark
- Portal
- Bindstone
- pvp
- Optional. Include if the area allows player vs player combat. Defaults to ``no``.
- 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
{{Location infobox |name=Glorious Imperial Territory (V1) |image=Npg-v1map.png |image-text=Map of Glorious Imperial Territory (V1) |type=Continent |within=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] |V1-V3=V1 }} {{Location infobox |name=Rog Imperial Castle area (V3) |image=Rog_Imperial_Castle_region_map.png |image-text=Map of Rog Imperial Castle area (V3) |levels=1-11 |type=Zone |within=[[Idios (V3)]] |connections=[[Green Valley]] (N)<br>[[Silent Woods]] (portal)<br>[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] (portal) }} {{Location infobox |name=Rog Imperial City (V3) |image=Rog_Imperial_Castle_city.png |image-text=Rog Imperial City |type=City |within=[[Rog Imperial Castle area]]<p style="font-size:.9em>([[Idios (V3)]])</p> |connections=[[Glorious Imperial Territory|Glorious Imperial Territory (V1)]] (portal) }} {{Location infobox |name=Dead Man's Holyland |image=Dead_Mans_Holyland_area_map.png |image-text=Map of Dead Man's Holyland |levels=15-23 |type=Area |within=[[Silent Woods]]<br><p style="font-size:.9em>([[Foggy]])</p> |connections=[[Midland]] (N)<br>[[Green Valley]] (S)<br>[[Rog Imperial Castle]] (portal) }}
Glorious Imperial Territory (V1)
Map of Glorious Imperial Territory (V1)
- Type
- Continent
- Within
- Glorious Imperial Territory (V1)
Rog Imperial Castle area (V3)
Map of Rog Imperial Castle area (V3)
- Levels
- 1-11
- Type
- Zone
- Within
- Idios (V3)
- Connects to
- Green Valley (N)
Silent Woods (portal)
Glorious Imperial Territory (V1) (portal)
Rog Imperial City (V3)
Rog Imperial City
- Type
- City
- Within
- Rog Imperial Castle area
- Connects to
- Glorious Imperial Territory (V1) (portal)
Dead Man's Holyland
Map of Dead Man's Holyland
- Levels
- 15-23
- Type
- Area
- Within
- Silent Woods
(Foggy)
- Connects to
- Midland (N)
Green Valley (S)
Rog Imperial Castle (portal)