Template:UseCase: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Line 17: Line 17:


==Example==
==Example==
<pre>{{navi|0.98a|title=Example}}</pre>
<pre>{{UseCase|IS|2.3|title=This is an Example}}</pre>
delivers (here the result is adapted to the needs of an example)
delivers
{| class="wikitable" style="text-align:center"
{| class="wikitable" style="float:right; margin-left:10px; text-align:center"
|bgcolor="white"|'''Beispiel'''
|bgcolor="white"|'''This is an Example'''<br>Subschema: {{#switch:IS|IS=[[Infrastructure]]|IL=[[Interlocking]]|TT=[[Timetable|Timetable and Rostering]]|RS=[[Rollingstock]]|CO=[[Common]]|#default=Subschema missing!}}
|-
|-
|bgcolor={{#switch:0.98a|{{current}}="green"|#default="#F0CA00"}}|This page refers to version 0.98a of {{vivid}}.<br>Therefore the content is {{#switch:0.98a|{{current}}=up to date.|#default=possibly outdated.<br>The current version is {{current}}.}}
{{version_hg|2.3}}
|-
|-
|bgcolor="white" style="text-align:left"|
|For general information on use cases see [[Dev:Use cases]]
*[[Hauptseite|Einführung]]
|}{{#if:IS|[[category:Use case (IS)]]}}<br clear="all"/>
*[[Download & Installation]]
*[[Bedienung]]
**[[Genereller Aufbau]]
**[[Steuerungsfenster]]
***[[Öffnen und Laden von railML-Daten]]
***[[Menuleistenpunkt Einstellungen]]
***[[Menuleistenpunkt Validator]]
***[[Menuleistenpunkt Infrastruktur]]
***[[Menuleistenpunkt Fahrplan]]
***[[Menuleistenpunkt Fahrzeuge]]
***[[Menuleistenpunkt Sicherungstechnik]]
**[[Anwendungsfenster]]
***[[Anwendungsfenster Validator]]
***[[Anwendungsfenster Infrastruktur]]
***[[Anwendungsfenster Fahrplan]]
***[[Anwendungsfenster Fahrzeuge]]
***[[Anwendungsfenster Sicherungstechnik]]
*[[FAQ]]
*[[Ergänzungen]]
|}


[[Category:Template]]</noinclude>
[[Category:Template]]</noinclude>

Revision as of 18:03, 16 June 2016

Application

This template is intended to help standardizing articles on use cases. It allows for a variable headline, integrates the comment on the version as returned from Template:Version_hg and shows the subschema for which the use case applies. Moreover, the page is categorized into a subcategory of Category:Use case.

Arguments

This template has two unnamed obligatory arguments and a named optional one:

  • 1: obligatory, unnamed argument, telling you, to which subschema the use case belongs
  • 2: obligatory, unnamed argument, telling you, to which railML® version a page refers. It is handed further to Template:Version_hg.
  • title: an optional argument for the page title. The standard value is {{PAGENAME}}. In this case the page name is inserted.

Dependencies

This template employs Template:Version_hg. It is used by no other templates.

Example

{{UseCase|IS|2.3|title=This is an Example}}

delivers

This is an Example
Subschema: Infrastructure
This page refers to version 2.3 of railML®.
Therefore the content is possibly outdated.
The current version is 2.5 or 3.2.
For general information on use cases see Dev:Use cases