Difference between revisions of "Template:MAP infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m (Description)
(Changed the title/name on all infoboxes, removing auto-fill. This fixes a bug with a yet-to-be published set of really cool pages.)
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: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:#edab5d;color:#894b02;" | {{{name|{{PAGENAME}}}}}
+
! colspan="2" style="font-size:17px; text-align:center; background-color:#edab5d;color:#894b02;" | {{{name|name}}}
 
|-
 
|-
 
| style="width:300px;" colspan="2" align="center" | {{{mapimage|[[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" | {{{mapimage|[[Image:{{PAGENAME}} (map).png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">Map of {{PAGENAME}} (click for larger size)</div>
Line 10: Line 10:
 
| {{{pclevel|-}}}
 
| {{{pclevel|-}}}
 
|-
 
|-
| style="width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">{{{portaldesc|Portal or entrance caption.}}}</div>
+
| style="width:300px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}}<br/><div style="font-size:11px;">{{{portaldesc|Portal or entrance caption.}}}</div>
 
|}<noinclude>
 
|}<noinclude>
 
{{clear}}__NOTOC__
 
{{clear}}__NOTOC__
Line 25: Line 25:
 
==Parameters==
 
==Parameters==
 
; name
 
; name
: Optional. Defaults to article name.
+
: Not Optional. Must be Article name.
 
; mapimage
 
; mapimage
: Defaults to a .png image to be used for the map "Dungeon Something (map).png". If the image already exists, use <code>[[Image:Image name.png|300px|]]</code>
+
: Defaults to a .png image to be used for the map "Dungeon Something (map).png". If the image already exists, use <code>[[Image:ImageName.png|300px|]]</code>
 
; connects
 
; connects
 
: One or more neighbour maps connected by portals to this one.
 
: One or more neighbour maps connected by portals to this one.
Line 34: Line 34:
  
 
; image
 
; image
: Defaults to a .jpg image of the article's name, meant to represent the entrance. If the image already exists, use <code>[[Image:Image name.jpg|300px|]]</code>
+
: Defaults to a .png image of the article's name, meant to represent the entrance. If the image already exists, use <code>[[Image:ImageName.png|300px|]]</code>
 
; portaldesc
 
; portaldesc
 
: Optional. Suggested use is the description as seen on the portal, or other flavor text.
 
: Optional. Suggested use is the description as seen on the portal, or other flavor text.

Revision as of 16:45, 7 January 2017

name
File:MAP infobox (map).png
Map of MAP infobox (click for larger size)
Connects to -
Suggested level -
File:MAP infobox.png
Portal or entrance caption.


Syntax

{{Area infobox
| name = 
| image = 
| connects = 
| pclevel = 
}}

Parameters

name
Not Optional. Must be Article name.
mapimage
Defaults to a .png image to be used for the map "Dungeon Something (map).png". If the image already exists, use File:ImageName.png
connects
One or more neighbour maps connected by portals to this one.
pclevel
Suggest level for the player character (the main damage skill level) to start this area.
image
Defaults to a .png image of the article's name, meant to represent the entrance. If the image already exists, use File:ImageName.png
portaldesc
Optional. Suggested use is the description as seen on the portal, or other flavor text.

Description

Create an attractive "at a glance" information card for dungeons and other sub-areas. Once the wiki extensions allows for it, we will add very useful "connected" zones in this info card, which let the reader navigate between area articles more easily.

The info card features two images: at the top is a map to the area. At the bottom, is an in-game screenshot of the dungeon entrance (or optionally, a picture of the minimap indicating the location of the dungeon in its parent zone).

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.

It is not currently intended to use for Zones. This is work in progress: Zones may use a different template to accomodate a larger map image, as well as some interactive javascript functionality to show/hide labels and POIs on the map (this is more complex wiki stuff, which is not critical atm).

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

{{MAP infobox
| connects = [[Kur Mountains]]
| pclevel = 30
}}

If an image already exists which name does not match the article name, or in a different format (png) specify like so:

{{MAP infobox
| image = [[Image:Desert.png|300px|]]
}}