Jump to content

Template:Infobox location

From Twig Wiki
Revision as of 05:52, March 10, 2015 by Default (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
{{#if: | {{#if: | {{#if: | {{#if: |
Unknown
[[File:{{{image}}}|210px|]] }}
{{{imagecaption}}} }}
[[File:{{{map}}}|210px|]] }}
{{{mapcaption}}} }}
Vital statistics
Type Unknown
Level Unknown
Location Unknown
Inhabitants Unknown


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_location/doc to edit this documentation. (How does this work?)
Description
This template is used to create a location infobox.
Syntax
Type {{infobox location{{#ifeq: ...|---|||<...>}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}}} somewhere, with parameters as shown below.
Sample output
{{infobox location
| name        = Land of Bob [defaults to pagename]
| image       = File:Example.jpg
| caption     = Bob the Flower
| map         = File:Example.jpg
| mapcaption  = Land of Bob
| type        = Garden
| location    = Earth
| inhabitants = Flowerfolk
|web serial = imaginary
}}

Results in...

{{#if: File:Example.jpg | {{#if: | {{#if: File:Example.jpg | {{#if: Bob the Flower |
Unknown
File:File:Example.jpg }}
{{{imagecaption}}} }}
Bob the Flower }}
Bob the Flower }}
Vital statistics
Type Garden
Level Unknown
Location Earth
Inhabitants Flowerfolk