Template:UCpdf: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][checked revision]
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><nowiki />
{|
{|bgcolor={{#switch:{{{2}}}|consolidated|draft="#F0CA00"|#default="green"}} style="width: 100%;"
|bgcolor={{#switch:{{{2}}}|consolidated|draft="#F0CA00"|#default="green"}}|{{#switch:{{{2}}}|consolidated=[[file:finish.png|x30px]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|draft=[[file:stift.png|x30px]]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|#default=[[file:pdf.png|x30px|link={{{2}}}]]}}&nbsp;(version(s) {{{1}}})
|style="width: 40%;text-align:center"|{{#switch:{{{2}}}|consolidated=[[file:finish.png|x30px]]|draft=[[file:stift.png|x30px]]|#default=[[file:pdf.png|x30px|link={{{2}}}]]}}
|style="width: 35%;text-align:left"|{{#switch:{{{2}}}|consolidated='''MODELLED'''|draft='''DRAFT'''|#default='''FINISHED'''}}
|style="width: 25%;text-align:left"|{{rml|{{{1}}}}}
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
Line 24: Line 26:


[[Category:Template for use cases]]
[[Category:Template for use cases]]
{{interwiki}}
</noinclude>
</noinclude>

Latest revision as of 16:15, 30 September 2024

Usage

This template supports Template:UseCase by standardizing the links to approved usecase versions. It works only within Template:UseCase.

Arguments

The template has two unnamed obligatory arguments:

  • 1: The version(s) to which the usecases (in a certain edition) applies
  • 2: Either status draft/consolidated or the link to an edition

Example

{|
{{UCpdf|3.5|draft}}
{{UCpdf|3.2|consolidated}}
{{UCpdf|3.1, 3.2|https://upload.wikimedia.org/wikipedia/commons/3/39/Migrant_caravan.pdf}}
|}

delivers

Stift.png DRAFT railML® 3.5

Finish.png MODELLED railML® 3.2

Pdf.png FINISHED railML® 3.1, 3.2