Template:Station: Difference between revisions
Appearance
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:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}} | {{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}} | ||
{{#if:{{{image1|}}}|<tr> | {{#if:{{{image1|}}}|<tr> | ||
<td class="infobox-image" colspan="2"> | <td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image1|}}}|0|1}}|[|{{{image1|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|6}}}}|image:||File:}}}}{{{image1|}}}|frameless|220px]]}}{{#if:{{{caption1|}}}|<div class="infobox-caption">{{{caption1|}}}</div>|}}</td> | ||
{{#ifeq:{{#sub:{{{image1|}}}|0|1}}|[|{{{image1|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image1|}}}|0|6}}}}|image:||File:}}}}{{{image1|}}}|frameless|220px]]}}{{#if:{{{caption1|}}}| | |||
<div class="infobox-caption"> | |||
{{{caption1|}}} | |||
</div>|}} | |||
</td> | |||
</tr>|}} | </tr>|}} | ||
{{#if:{{{owner|}}}|<tr> | {{#if:{{{owner|}}}|<tr> | ||
<th class="infobox-label" scope="row"> | <th class="infobox-label" scope="row">Owner</th> | ||
Owner | <td class="infobox-data">{{{owner|}}}</td> | ||
</th> | |||
<td class="infobox-data"> | |||
{{{owner|}}} | |||
</td> | |||
</tr>|}} | </tr>|}} | ||
{{#if:{{{founded|}}}|<tr> | {{#if:{{{founded|}}}|<tr> | ||
<th class="infobox-label" scope="row"> | <th class="infobox-label" scope="row">Founded</th> | ||
Founded | <td class="infobox-data">{{{founded|}}}</td> | ||
</th> | |||
<td class="infobox-data"> | |||
{{{founded|}}} | |||
</td> | |||
</tr>|}} | </tr>|}} | ||
{{#if:{{{call_sign|}}}|<tr> | {{#if:{{{call_sign|}}}|<tr> | ||
<th class="infobox-label" scope="row"> | <th class="infobox-label" scope="row">Call sign</th> | ||
Call sign | <td class="infobox-data">{{{call_sign|}}}</td> | ||
</th> | |||
<td class="infobox-data"> | |||
{{{call_sign|}}} | |||
</td> | |||
</tr>|}} | </tr>|}} | ||
{{#if:{{{links|}}}|<tr> | {{#if:{{{links|}}}|<tr> | ||
<th class="infobox-label" scope="row"> | <th class="infobox-label" scope="row">Links</th> | ||
Links | <td class="infobox-data">{{{links|}}}</td> | ||
</th> | |||
<td class="infobox-data"> | |||
{{{links|}}} | |||
</td> | |||
</tr>|}} | </tr>|}} | ||
</table>|}} | </table>|}} | ||
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.
Example usage:
{{Station
| title1=Example
| image1=Example
| caption1=Example
| owner=Example
| founded=Example
| call_sign=Example
| links=Example
}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title1 | title1 | no description | Unknown | suggested |
| image1 | image1 | no description | Unknown | suggested |
| caption1 | caption1 | no description | Unknown | suggested |
| owner | owner | no description | Unknown | suggested |
| founded | founded | no description | Unknown | suggested |
| call_sign | call_sign | no description | Unknown | suggested |
| links | links | no description | Unknown | suggested |