Template:Station: Difference between revisions
Appearance
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="owner"..." |
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history |
||
| Line 1: | Line 1: | ||
<infobox> | {{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}{{{image1|}}}{{{owner|}}}{{{founded|}}}{{{call_sign|}}}{{{links|}}}|<table class="infobox"> | ||
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}} | |||
{{#if:{{{image1|}}}|<tr> | |||
<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> | |||
</tr>|}} | |||
{{#if:{{{owner|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Owner | |||
</th> | |||
<td class="infobox-data"> | |||
{{{owner|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{founded|}}}|<tr> | |||
</ | <th class="infobox-label" scope="row"> | ||
Founded | |||
</th> | |||
<td class="infobox-data"> | |||
{{{founded|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{call_sign|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Call sign | |||
</th> | |||
<td class="infobox-data"> | |||
{{{call_sign|}}} | |||
</td> | |||
</tr>|}} | |||
{{#if:{{{links|}}}|<tr> | |||
<th class="infobox-label" scope="row"> | |||
Links | |||
</th> | |||
<td class="infobox-data"> | |||
{{{links|}}} | |||
</td> | |||
</tr>|}} | |||
</table>|}} | |||
<noinclude> | <noinclude> | ||
Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a <code>File:</code>-prefixed name, or complete <code><nowiki>[[File:…]]</nowiki></code> markup. Fields, defaults, and categories retain the imported template API. | |||
Example usage: | Example usage: | ||
<pre> | <pre> | ||
Revision as of 17:59, 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 |