Template:Town Infobox: Difference between revisions

Template page
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
<div id="right-sidebar">
{{Infobox
<table class="infobox infobox--town" style="width:327px; max-width:327px;">
|bodyclass = mw-collapsible floatright
<tr>
|image1 = [[File:{{{image|Screenshot needed.png}}}|325px|center]]
<th class="infobox__header" colspan="2">{{{ name }}}</th>
|imagerowclass1 = infobox-image {{#if:{{{imagebg|}}}|{{#switch:{{{imagebg}}}|light=infobox-image--light|dark=infobox-image--dark|}}}}
</tr>
<tr>
<td class="infobox__images" colspan="2" style="padding:0em;">
[[File:{{{image|Screenshot needed.png}}}|325px|center]]
</td>
</tr>
<!--


// Basic Information
|header2 = {{{name|}}}
|rowclass2 = infobox-title


--><tr>
|label3 = {{#if: {{{founded|}}} | Founded }}
<th class="infobox__header" colspan="2">Basic Information</th>
|data3 = {{{founded|}}}
</tr>
|rowclass3 = infobox-data infobox-col2
{{#if: {{{founded|}}}
 
| <tr>
|label4 = {{#if: {{{mayor|}}} | Mayor }}
<td class="infobox__label">Founded</td>
|data4 = {{{mayor|}}}
<td>{{{founded}}}</td>
|rowclass4 = infobox-data infobox-col2
</tr>}}
 
{{#if: {{{mayor|}}}
|label5 = {{#if: {{{population|}}} | Population }}
| <tr>
|data5 = {{{population|}}}
<td class="infobox__label">Mayor</td>
|rowclass5 = infobox-data infobox-col2
<td>{{{mayor}}}</td>
 
</tr>}}
|label6 = {{#if: {{{status|}}} | Status }}
{{#if: {{{population|}}}
|data6 = {{{status|}}}
| <tr>
|rowclass6 = infobox-data infobox-col2
<td class="infobox__label">Population</td>
 
<td class="infobox__data">{{{population}}}</td></tr>
|label7 = Location
</tr>}}
|rowclass7 = infobox-header
<tr>
 
<td class="infobox__label">Status</td>
|label8 = {{#if: {{{coordinates|}}} | Coordinates }}
<td class="infobox__data">{{{status}}}</td>
|data8 = {{{coordinates|}}}
</tr>
|rowclass8 = infobox-data infobox-col2
<tr>
 
<th class="infobox__header" colspan="2">Location</th>
|label9 = {{#if: {{{path|}}} | Nether Path}}
</tr>
|data9 = {{{path|}}}
<tr>
|rowclass9 = infobox-data infobox-col2
<td class="infobox__label">Coordinates</td>
 
<td class="infobox__data">{{{coordinates}}}</td>
|label10 = [{{{dynmap}}} Dynmap Link]
</tr>
|rowclass10 = infobox-data infobox-col2
<tr>
 
<td class="infobox__label">Nether Path</td>
}}
<td class="infobox__data">{{{path}}}</td>
</tr>
<tr>
<td class="infobox__data" colspan="2">[{{{dynmap}}} Dynmap Link]</td>
</tr>
</table>
</div>


<noinclude>
<noinclude>

Revision as of 00:49, 7 May 2021


Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Town Infobox/doc. Changes can be proposed in the talk page.