Jump to content

Template:Station: Difference between revisions

From wiki58
Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="owner"..."
 
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<infobox>
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}{{{image1|}}}{{{owner|}}}{{{founded|}}}{{{call_sign|}}}{{{links|}}}|<table class="infobox">
  <title source="title1">
{{#if:{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}|<caption class="infobox-title">{{#if:{{{title1|}}}|{{{title1|}}}|{{PAGENAME}}}}</caption>|}}
    <default>{{PAGENAME}}</default>
{{#if:{{{image1|}}}|<tr>
  </title>
<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>
  <image source="image1">
</tr>|}}
    <caption source="caption1"/>
{{#if:{{{owner|}}}|<tr>
  </image>
<th class="infobox-label" scope="row">Owner</th>
  <data source="owner">
<td class="infobox-data">{{{owner|}}}</td>
    <label>Owner</label>
</tr>|}}
  </data>
{{#if:{{{founded|}}}|<tr>
  <data source="founded">
<th class="infobox-label" scope="row">Founded</th>
    <label>Founded</label>
<td class="infobox-data">{{{founded|}}}</td>
  </data>
</tr>|}}
  <data source="call_sign">
{{#if:{{{call_sign|}}}|<tr>
    <label>Call sign</label>
<th class="infobox-label" scope="row">Call sign</th>
  </data>
<td class="infobox-data">{{{call_sign|}}}</td>
  <data source="links">
</tr>|}}
    <label>Links</label>
{{#if:{{{links|}}}|<tr>
  </data>
<th class="infobox-label" scope="row">Links</th>
</infobox>
<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>

Latest revision as of 18:53, 11 November 2026

Station

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title1title1

no description

Unknownsuggested
image1image1

no description

Unknownsuggested
caption1caption1

no description

Unknownsuggested
ownerowner

no description

Unknownsuggested
foundedfounded

no description

Unknownsuggested
call_signcall_sign

no description

Unknownsuggested
linkslinks

no description

Unknownsuggested