Template:UseCase: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable" style="float:right; margin-left:10px; text-align:center" | <includeonly>{| class="wikitable" style="float:right; margin-left:10px; text-align:center" | ||
|bgcolor="white"|'''{{{title|{{PAGENAME}}}}}'''<br>Subschema: {{#switch:{{{1}}}|IS=[[Infrastructure]]|IL=[[Interlocking]]|TT=[[Timetable|Timetable and Rostering]]|RS=[[Rollingstock]]|CO=[[Common]]|#default=Subschema missing!}}{{#if:{{{IS|}}}{{{IL|}}}{{{TT|}}}{{{CO|}}}|<br>Related subschemas: | |bgcolor="white"|'''{{{title|{{PAGENAME}}}}}'''<br>Subschema: {{#switch:{{{1}}}|IS=[[Infrastructure]]|IL=[[Interlocking]]|TT=[[Timetable|Timetable and Rostering]]|RS=[[Rollingstock]]|CO=[[Common]]|#default=Subschema missing!}}{{#if:{{{IS|}}}{{{IL|}}}{{{TT|}}}{{{CO|}}}|<br>nbsp;<br>Related subschemas:{{#if:{{{IS|}}}|[[Infrastructure|IS]] }}{{#if:{{{IL|}}}|[[Interlocking|IL]] }}{{#if:{{{TT|}}}|[[Timetable|TT]] }}{{#if:{{{RS|}}}|[[Rollingstock|RS]] }}{{#if:{{{CO|}}}|[[Common|CO]] }}}} | ||
|- | |- | ||
{{version_hg|{{{2}}}}} | {{version_hg|{{{2}}}}} | ||
Line 9: | Line 9: | ||
This template is intended to help standardizing articles on [[Dev:Use cases|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]]. | This template is intended to help standardizing articles on [[Dev:Use cases|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=== | ===Arguments=== | ||
This template has two unnamed obligatory arguments and | This template has two unnamed obligatory arguments and six named optional ones: | ||
*1: obligatory, unnamed argument, telling you, to which subschema the use case belongs | *1: obligatory, unnamed argument, telling you, to which subschema the use case belongs | ||
*2: obligatory, unnamed argument, telling you, to which {{rml}} version a page refers. It is handed further to [[Template:Version_hg]]. | *2: obligatory, unnamed argument, telling you, to which {{rml}} version a page refers. It is handed further to [[Template:Version_hg]]. | ||
*title: an optional argument for the page title. The standard value is <nowiki>{{PAGENAME}}</nowiki>. In this case the page name is inserted. | *title: an optional argument for the page title. The standard value is <nowiki>{{PAGENAME}}</nowiki>. In this case the page name is inserted. | ||
*IS, IL, TT, RS, CO: Give them any value if there is an interference with the subschema; else ignore this argument. | |||
===Dependencies=== | ===Dependencies=== | ||
This template employs [[Template:Version_hg]]. It is used by no other templates. | This template employs [[Template:Version_hg]]. It is used by no other templates. | ||
Line 27: | Line 28: | ||
|}<br clear="all"/> | |}<br clear="all"/> | ||
<pre>{{UseCase|TT|2.3|title=This is another Example|RS=1|IS=1}}</pre> | |||
delivers | |||
{| class="wikitable" style="float:right; margin-left:10px; text-align:center" | |||
|bgcolor="white"|'''This is another Example'''<br>Subschema: {{#switch:TT|IS=[[Infrastructure]]|IL=[[Interlocking]]|TT=[[Timetable|Timetable and Rostering]]|RS=[[Rollingstock]]|CO=[[Common]]|#default=Subschema missing!}}{{#if:1|<br>Related subschemas:<br>{{#if:1|[[Infrastructure|IS]] }}{{#if:|[[Interlocking|IL]] }}{{#if:|[[Timetable|TT]] }}{{#if:1|[[Rollingstock|RS]] }}{{#if:|[[Common|CO]] }}}} | |||
|- | |||
{{version_hg|2.2}} | |||
|- | |||
|For general information on use cases see [[Dev:Use cases]] | |||
|}[[category:Use case ({{#switch:TT|IS=IS|IL=IL|TT=TT|RS=RS|CO=CO|#default=unknown subschema}})]]<br clear="all"/> | |||
[[Category:Template for use cases]]</noinclude> | [[Category:Template for use cases]]</noinclude> |
Revision as of 19:04, 30 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 six named optional ones:
- 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.
- IS, IL, TT, RS, CO: Give them any value if there is an interference with the subschema; else ignore this argument.
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. |
For general information on use cases see Dev:Use cases |
{{UseCase|TT|2.3|title=This is another Example|RS=1|IS=1}}
delivers
This is another Example Subschema: Timetable and Rostering Related subschemas: IS RS |
This page refers to version 2.2 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 |