Difference between revisions of "Template:TOWN infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
(Updated template.)
Line 1: Line 1:
{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#9A469C;color:#ffffff;" | {{{name|name}}}
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Orange.png|300px]]</div> <div class="ib-tbl-hdt">{{{name|name}}}</div>
 
|-
 
|-
| style="width:300px;" colspan="2" align="center" | {{{townimage|[[Image:{{PAGENAME}}(image).png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">{{{towndesc|Caption describing the town.}}}</div>
+
| style= "width:300px;" colspan="2" align="center" | {{{townimage|[[Image:{{PAGENAME}}(image).png{{pipe}}300px{{pipe}}]]}}} <br><div class="block2" style="font-size:14px;color:#ffffff;">{{{towndesc|Caption describing the town.}}}</div>
 
|- valign="top"
 
|- valign="top"
! style="width:100px;font-weight:normal;" | Region:
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Region:
| {{{zone|-}}}
+
| <div class="block2" style="color:#ffffff;">{{{zone|-}}}</div>
 
|-
 
|-
| 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>
+
| style="width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}(map).png{{pipe}}300px{{pipe}}]]}}}<br/><div class="block2" style="color:#ffffff;font-size:11px;">Map of {{PAGENAME}} (click for larger size)</div>
 
|}<noinclude>
 
|}<noinclude>
 
{{clear}}__NOTOC__
 
{{clear}}__NOTOC__

Revision as of 10:48, 16 June 2019

Button Orange.png
name
File:TOWN infobox(image).png
Caption describing the town.
Region:
-
File:TOWN infobox(map).png
Map of TOWN infobox (click for larger size)


Syntax

{{TOWN infobox
| name = 
| townimage =
| towndesc= 
| zone =
| mapimage =
}}

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 File:ImageName.png

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):