Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox place: Difference between revisions

Template page
Content added Content deleted
(Incomplete template)
No edit summary
Line 1: Line 1:
<includeonly><div class="infobox">
<includeonly>
<infobox layout="stacked">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<title source="name"><default>{{PAGENAME}}</default></title>
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<image source="image" />
<table>
<data source="aka"><label>Also known as:</label></data>
<div class="infobox-tl">Location</div>
<group>
{{#if:{{{number|}}}|<tr>
<header> History </header>
<th>Number/Name:</th>
<data source="open"><label>Opened:</label></data>
<td>{{{number}}}</td>
<data source="closed"><label>Closed:</label></data>
</tr>}}
<data source="purpose"><label>Purpose:</label></data>
{{#if:{{{street|}}}|<tr>
<data source="link"><label>Related to:</label></data>
<th>Street:</th>
</group>
<td>{{{street}}}</td>
</tr>}}
<group>
<header> Location </header>
{{#if:{{{postcode|}}}|<tr>
<data source="street"><label>Street:</label></data>
<th>Postcode:</th>
<data source="postcode"><label>Postcode:</label></data>
<td>{{{postcode}}}</td>
<data source="nearby"><label>Nearby:</label></data>
</tr>}}
</group>
{{#if:{{{town|}}}|<tr>
</infobox>
<th>Town:</th>
</includeonly><noinclude>
<td>{{{town}}}</td>
Use this code:
</tr>}}
<pre>
{{#if:{{{city|}}}|<tr>
{{Infobox place
<th>City:</th>
<td>{{{city}}}</td>
</tr>}}
{{#if:{{{region|}}}|<tr>
<th>Region:</th>
<td>{{{region}}}</td>
</tr>}}
{{#if:{{{country|}}}|<tr>
<th>Country:</th>
<td>{{{country}}}</td>
</tr>}}
{{#if:{{{state|}}}|<tr>
<th>State:</th>
<td>{{{state}}}</td>
</tr>}}
</table>
</div>
</includeonly>
<noinclude>
This is a general infobox. It should not be used if another infobox is available.

It looks as follows:

{{Infobox place
|title = Rothwell
|title = Rothwell
|image = Rothwell Logo transparent.png
|image = Rothwell Logo transparent.png
|number = x
|number = a
|street = y
|aka = b
|postcode = z
|open = c
|town = Rothwell
|closed = d
|city = Leeds
|purpose = e
|link = f
|region = West Yorkshire
|country = England
|street =
|postcode = g
|state = United Kingdom
|nearby = h
}}
}}
</pre> to produce this:
</noinclude>
{{Infobox place
|title = Rothwell
|image = Rothwell Logo transparent.png
|number = a
|aka = b
|open = c
|closed = d
|purpose = e
|link = f
|street = n
|postcode = g
|nearby = h
}}</noinclude>

Revision as of 13:06, 26 March 2020

Use this code:

 {{Infobox place
|title = Rothwell
|image = Rothwell Logo transparent.png
|number = a
|aka = b
|open = c
|closed = d
|purpose = e
|link = f
|street = 
|postcode = g
|nearby = h
}}

to produce this:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.