Jump to content

Template:Line: Difference between revisions

From SIMT Wiki
Admin (talk | contribs)
Initial import of data templates
 
Admin (talk | contribs)
fix pipes in infobox
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#cargo_declare:_table=Lines
{{#cargo_declare:_table=TransitLines
|Number=String
|Number=String
|Name=String
|Name=String
Line 8: Line 8:
|Description=Wikitext
|Description=Wikitext
}}
}}
Infobox and data store for a transit line. Create pages with [[Form:Line]]. Routes are added to the page with <code><nowiki>{{LineRoute}}</nowiki></code> (see [[Template:LineRoute]]). Data table: <code>Lines</code>.
Infobox and data store for a transit line. Create pages with [[Form:Line]]. Routes are added to the page with <code><nowiki>{{LineRoute}}</nowiki></code> (see [[Template:LineRoute]]). Data table: <code>TransitLines</code>.
</noinclude><includeonly>{{#cargo_store:_table=Lines
</noinclude><includeonly>{{#cargo_store:_table=TransitLines
|Number={{{number|}}}
|Number={{{number|}}}
|Name={{{name|}}}
|Name={{{name|}}}
Line 18: Line 18:
}}
}}
{| class="simt-infobox"
{| class="simt-infobox"
|+ Line {{{number|}}}{{#if:{{{name|}}}|: {{{name}}}}}
|+ Line {{{number|}}}{{#if:{{{name|}}}|<nowiki>:</nowiki> {{{name}}}}}
|-
|-
! Type
! Type

Latest revision as of 20:27, 13 November 2026

This template defines the table "TransitLines". View table. Infobox and data store for a transit line. Create pages with Form:Line. Routes are added to the page with {{LineRoute}} (see Template:LineRoute). Data table: TransitLines.