Template:Valid: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{note|This {{{scope|content}}} is only valid for version(s) {{{1}}}|file=timeline.svg}}{{#ifeq:{{#count:1|2.4}}|[[Category:Content especially for {{rml|2.4}}}}</includeonly><noinclude>
<includeonly>{{note|This {{{scope|content}}} is only valid for version(s) {{{1}}}|file=timeline.svg}}{{valid/version|{{{1}}}|2.4}}{{valid/version|{{{1}}}|2.5}}{{valid/version|{{{1}}}|3.1}}{{valid/version|{{{1}}}|3.2}}{{valid/version|{{{1}}}|3.3}}{{valid/version|{{{1}}}|1.2|rtm}}{{valid/version|{{{1}}}|1.4|rtm}}{{valid/version|{{{1}}}|1.5|rtm}}</includeonly><noinclude>
== Usage ==
== Usage ==
This template  
This template marks and categorizes content that is not valid for all versions within the respective wiki.
===Arguments===
*1:String containing the versions, for which the content is valid (and '''not''' those, for which it is not valid!)
*scope: String to clarify the scope of this note; something like paragraph, chapter, page ...


=== Example ===
=== Example ===
<pre>{{valid|2.4 and 2.5}}</pre>delivers
<pre>{{valid|2.4 and 2.5}}</pre>delivers
{{valid|2.4 and 2.5}}
{{valid|2.4 and 2.5}}
<pre>{{valid|1.4 and 1.5|scope=paragraph}}</pre>delivers
{{valid|1.4 and 1.5|scope=paragraph}}


{{interwiki|2=all}}
{{interwiki|2=all}}
</noinclude>
</noinclude>

Latest revision as of 16:09, 3 March 2025

Usage

This template marks and categorizes content that is not valid for all versions within the respective wiki.

Arguments

  • 1:String containing the versions, for which the content is valid (and not those, for which it is not valid!)
  • scope: String to clarify the scope of this note; something like paragraph, chapter, page ...

Example

{{valid|2.4 and 2.5}}

delivers

Timeline.svg This content is only valid for version(s) 2.4 and 2.5  
{{valid|1.4 and 1.5|scope=paragraph}}

delivers

Timeline.svg This paragraph is only valid for version(s) 1.4 and 1.5