Template:Intro: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(railML→{{rml}})
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Vers|introduced with version {{{1}}}}}{{#switch:{{{1}}}
<includeonly><!--
Darstellung
-->{{Vers|introduced with version {{{1}}}}}<!--
Kategorie erzeugen
-->{{#vardefine:kat|{{#switch:{{{1}}}
|2.5=[[Category:Intro/2.5]]
|2.4=[[Category:Intro/2.4]]
|2.4=[[Category:Intro/2.4]]
|2.3={{intro/2.3}}
|2.3=[[Category:Intro/2.3]]
|2.2=[[Category:Intro/2.2]]
|2.1=[[Category:Intro/2.1]]
|#default=[[Category:Intro]]
|#default=[[Category:Intro]]
}}</includeonly><noinclude>
}}}}<!--
Kat, falls nicht ausgeschlossen
-->{{#ifeq:{{{kat|1}}}|0||{{#var:kat}}}}</includeonly><noinclude>
==Usage==
==Usage==
This Template delivers a standardized comment that a feature, e.g. an element or attribute was introduced with a certain version of railML<sup>®</sup>. The page will be listet in a child category of [[:Category:Intro]].
This Template delivers a standardized comment that a feature, e.g. an element or attribute was introduced with a certain version of {{rml}}. The page will be listet in a child category of [[:Category:Intro]].
===Options===
===Options===
The template has one obligatory argument that is intended for the version when the feature was introduced.
*1: the version when the feature was introduced; required
*kat: suppresses categorization, if zero
===Dependencies===
===Dependencies===
The template depends on [[Template:Vers]]
The template depends on [[Template:Vers]]


==Example==
==Example==
<nowiki>{{intro|2.3}}</nowiki>
<pre>{{intro|2.3}}</pre>delivers


delivers
{{intro|2.3}}
<pre>{{intro|2.5|kat=0}}</pre>delivers


<span style="color:#FFFFFF; background:#228B22">(introduced with version 2.3)</span>
{{intro|2.5|kat=0}}


[[Category:ContentTemplate]]
[[Category:ContentTemplate]]
{{interwiki}}
</noinclude>
</noinclude>

Latest revision as of 21:09, 22 January 2024

Usage

This Template delivers a standardized comment that a feature, e.g. an element or attribute was introduced with a certain version of railML®. The page will be listet in a child category of Category:Intro.

Options

  • 1: the version when the feature was introduced; required
  • kat: suppresses categorization, if zero

Dependencies

The template depends on Template:Vers

Example

{{intro|2.3}}

delivers

(introduced with version 2.3)

{{intro|2.5|kat=0}}

delivers

(introduced with version 2.5)