Template:UseCase: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| class="wikitable" style="float:right; margin-left:10px; text-align:center" | <includeonly><div style="float:right;">__TOC__</div> | ||
|bgcolor="white"|'''{{{title|{{PAGENAME}}}}}'''{{#if:{{{abbr|}}}|<br>({{{abbr}}})}}<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|}}}{{{RS|}}}|<br> <br>Related subschemas: {{#if:{{{IS|}}}|[[Infrastructure|IS]] }}{{#if:{{{IL|}}}|[[Interlocking|IL]] }}{{#if:{{{TT|}}}|[[Timetable|TT]] }}{{#if:{{{RS|}}}|[[Rollingstock|RS]] }}{{#if:{{{CO|}}}|[[Common|CO]]}}}}{{#if:{{{reporter|}}}|<br>Reported by: {{{reporter}}}[[category:UC reported by {{{reporter}}}]]|[[category:UC without specified reporter]]}}[[category:AllUseCases]] | {| class="wikitable" <!--style="float:right;--> margin-left:10px; text-align:center" | ||
|bgcolor="white"|'''{{{title|{{PAGENAME}}}}}'''{{#if:{{{abbr|}}}|<br>({{{abbr}}})}}<br>Subschema: {{#switch:{{{1}}}|IS=[[Infrastructure]]|IL=[[Interlocking]]|TT=[[Timetable|Timetable and Rostering]]|RS=[[Rollingstock]]|CO=[[Common]]|Demoschema=Demoschema|#default=Subschema missing!}}{{#if:{{{IS|}}}{{{IL|}}}{{{TT|}}}{{{CO|}}}{{{RS|}}}|<br> <br>Related subschemas: {{#if:{{{IS|}}}|[[Infrastructure|IS]] }}{{#if:{{{IL|}}}|[[Interlocking|IL]] }}{{#if:{{{TT|}}}|[[Timetable|TT]] }}{{#if:{{{RS|}}}|[[Rollingstock|RS]] }}{{#if:{{{CO|}}}|[[Common|CO]]}}}}{{#if:{{{reporter|}}}|<br>Reported by: {{{reporter}}}[[category:UC reported by {{{reporter}}}]]|[[category:UC without specified reporter]]}}[[category:AllUseCases]] | |||
|-<!-- | |-<!-- | ||
Hinweis auf das PDF, falls abgeschlossen; sonst „draft“ | Hinweis auf das PDF, falls abgeschlossen; sonst „draft“ | ||
Line 8: | Line 9: | ||
|- | |- | ||
|For general information on use cases see [[UC:Use cases]] | |For general information on use cases see [[UC:Use cases]] | ||
|}[[category:Use case ({{#switch:{{{1}}}|IS=IS|IL=IL|TT=TT|RS=RS|CO=CO|#default=unknown subschema}})]]<br clear="all"/></includeonly><noinclude> | |}[[category:Use case ({{#switch:{{{1}}}|IS=IS|IL=IL|TT=TT|RS=RS|CO=CO|#default=unknown subschema}})]]<br clear="all"/>{{#if:{{#var:interwiki{{current}}|}}||{{interwiki}}}}</includeonly><noinclude> | ||
__TOC__ | |||
==Usage== | ==Usage== | ||
This template is intended to help standardizing articles on [[UC: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 [[UC: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]]. | ||
{{note|This template moves the table of content to the right}} | |||
===Arguments=== | ===Arguments=== | ||
This template has two unnamed obligatory arguments and eight named optional ones: | This template has two unnamed obligatory arguments and eight named optional ones: | ||
*1: obligatory, unnamed argument, telling you, to which subschema the use case belongs. Use the abbreviation IS, IL, TT, RS or CO | *1: obligatory, unnamed argument, telling you, to which subschema the use case belongs. Use the abbreviation IS, IL, TT, RS or CO | ||
*2: obligatory, unnamed argument, telling you, to which {{rml}} version a page refers | *2: obligatory, unnamed argument, telling you, to which {{rml}} version a page refers. | ||
*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. | ||
*abbr: an optional argument for the abbreviation of the use case title. | *abbr: an optional argument for the abbreviation of the use case title. | ||
Line 24: | Line 27: | ||
==Example== | ==Example== | ||
<pre>{{UseCase|IS|2 | <pre>{{UseCase|IS|3.2|title=This is an Example|abbr=TiaE|reporter={{rml|link=no|R=no}}}}</pre> | ||
delivers | delivers | ||
{{UseCase|IS|2 | {{UseCase|IS|3.2|title=This is an Example|abbr=TiaE|reporter={{rml|link=no|R=no}}}}<br clear="all"/> | ||
<pre>{{UseCase|TT|2.2|title=This is another Example|RS=1|IS=1}}</pre> | <pre>{{UseCase|TT|2.2|title=This is another Example|RS=1|IS=1}}</pre> | ||
Line 34: | Line 37: | ||
[[Category:Template for use cases]] | [[Category:Template for use cases]] | ||
{{interwiki}} | {{#if:{{#var:interwiki{{current}}|}}||{{interwiki}}}} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:35, 23 September 2024
Usage
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 eight named optional ones:
- 1: obligatory, unnamed argument, telling you, to which subschema the use case belongs. Use the abbreviation IS, IL, TT, RS or CO
- 2: obligatory, unnamed argument, telling you, to which railML® version a page refers.
- title: an optional argument for the page title. The standard value is {{PAGENAME}}. In this case the page name is inserted.
- abbr: an optional argument for the abbreviation of the use case title.
- reporter: an optional argument for the name of the institution or person reporting the use case.
- IS, IL, TT, RS, CO: Give them any value if there is an interference with the subschema; otherwise ignore this argument.
- pdf:Link to the consolidated pdf. Please, employ template:UCpdf!
Dependencies
This template employs Template:Version_hg. It is used by no other templates.
Example
{{UseCase|IS|3.2|title=This is an Example|abbr=TiaE|reporter={{rml|link=no|R=no}}}}
delivers
This is an Example (TiaE) Subschema: Infrastructure Reported by: railML | ||
| ||
For general information on use cases see UC:Use cases |
{{UseCase|TT|2.2|title=This is another Example|RS=1|IS=1}}
delivers
This is another Example Subschema: Timetable and Rostering Related subschemas: IS RS | ||
| ||
For general information on use cases see UC:Use cases |