Open main menu

Project: Gorgon Wiki β

Changes

Template:TOWN infobox

2,564 bytes added, 16:53, 18 February 2017
Created page with "{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5" ! colspan="2" style="font-size:17px; text-align:cente..."
{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#a34955;color:#ffffff;" | {{{name|name}}}
|-
| style="width:300px;" colspan="2" align="center" | {{{townimage|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">{{{towndesc|Caption describing the town.}}}</div>
|- valign="top"
! style="width:100px;font-weight:normal;" | Region:
| {{{zone|-}}}
|-
| style="width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}(map).png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">Map of {{PAGENAME}} (click for larger size)</div>
|}<noinclude>
{{clear}}__NOTOC__
==Syntax==
<pre>
{{TOWN infobox
| name =
| townimage =
| towndesc=
| zone =
| mapimage =
}}
</pre>

==Parameters==
; name
: Not Optional. Must be Article name.
; townimage
: Defaults to a .png image to be used for the page. This should be an image of the town or location.
; towndesc
: A brief description of the town, generally an npc quote.
; zone
: Identifies the region the town or location can be found in.
; mapimage
: Defaults to a .png image , meant to represent a map of the town or location. If the image already exists, use <code>[[Image:ImageName.png|300px|]]</code>

==Description==
Create an attractive "at a glance" information card for Towns and other locations.

The info card features two images: at the top is an in-game screenshot of the location. At the bottom, is either a picture of the minimap identifying the placement of the location, or a user-created map.

====Notes====
As with all more complex templates, remember that changes spread on all concerned articles. Please discuss it with the author before making significant changes.

==Examples==
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name):
<!--
<pre>
{{MAP infobox
| connects = [[Kur Mountains]]
| pclevel = 30
}}
</pre>

If an image already exists which name does not match the article name, or in a different format (png) specify like so:
<pre>
{{TOWN infobox
| image = [[Image:Desert.png|300px|]]
}}
</pre>
{{TOWN infobox
| name = Eltibule
| mapimage = [[Image:Eltibule_Map.png|300px|Updated map thanks to [[Vyndetta]]]]
| portaldesc = Needs a description.
| connects = [[Serbule]], [[Kur Mountains]]
| pclevel = 20-50
}}
-->
[[Category:Formatting templates|TOWN infobox]]
</noinclude>