Jump to content

Template:Infobox location: Difference between revisions

From wiki58
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
Line 2: Line 2:
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{image|}}}|<tr>
{{#if:{{{image|}}}|<tr>
<td class="infobox-image" colspan="2">
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|<div class="infobox-caption">{{{imagecaption|}}}</div>|}}</td>
{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|
<div class="infobox-caption">
{{{imagecaption|}}}
</div>|}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{map|}}}|<tr>
{{#if:{{{map|}}}|<tr>
<td class="infobox-image" colspan="2">
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{map|}}}|0|1}}|[|{{{map|}}}|[[{{#ifeq:{{lc:{{#sub:{{{map|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{map|}}}|0|6}}}}|image:||File:}}}}{{{map|}}}|frameless|220px]]}}{{#if:{{{mapcaption|}}}|<div class="infobox-caption">{{{mapcaption|}}}</div>|}}</td>
{{#ifeq:{{#sub:{{{map|}}}|0|1}}|[|{{{map|}}}|[[{{#ifeq:{{lc:{{#sub:{{{map|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{map|}}}|0|6}}}}|image:||File:}}}}{{{map|}}}|frameless|220px]]}}{{#if:{{{mapcaption|}}}|
<div class="infobox-caption">
{{{mapcaption|}}}
</div>|}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{type|}}}|<tr>
{{#if:{{{type|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Type</th>
Type
<td class="infobox-data">{{{type|}}}</td>
</th>
<td class="infobox-data">
{{{type|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{level|}}}|<tr>
{{#if:{{{level|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Level</th>
Level
<td class="infobox-data">{{{level|}}}</td>
</th>
<td class="infobox-data">
{{{level|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{location|}}}|<tr>
{{#if:{{{location|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Location</th>
Location
<td class="infobox-data">{{{location|}}}</td>
</th>
<td class="infobox-data">
{{{location|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{inhabitants|}}}|<tr>
{{#if:{{{inhabitants|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Inhabitants</th>
Inhabitants
<td class="infobox-data">{{{inhabitants|}}}</td>
</th>
<td class="infobox-data">
{{{inhabitants|}}}
</td>
</tr>|}}
</tr>|}}
</table>|}}<includeonly>[[Category:Locations]]</includeonly><noinclude>
</table>|}}<includeonly>[[Category:Locations]]</includeonly><noinclude>

Latest revision as of 18:53, 11 November 2026

Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a File:-prefixed name, or complete [[File:…]] markup. Fields, defaults, and categories retain the imported template API.