Template:Semcon: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{status}}} | <includeonly>{{semCoLlect|Element=[[{{PAGENAME}}]]|Id={{{id}}}|Status={{{status}}}|Proposal={{{proposed}}}|Approval={{{approved|–}}}|Depricated={{{depricated|–}}}|Content={{{1}}}}}<noinclude> | ||
|proposed={{semconProposed|{{{1}}}|{{date|{{{proposed| | </noinclude>{{anchor|{{{id}}}}}{{#switch:{{{status}}} | ||
|approved={{semconApproved|{{{1}}}|{{date|{{{proposed| | |proposed={{semconProposed|{{{1}}}|{{date|{{{proposed|{{FIXME}}}}}}}|id={{{id|{{fixme|id}} – The Id is missing}}}|forum={{{forum|{{fixme|forum}}}}}}} | ||
|deprecated={{semconDeprecated|{{{1}}}|{{date|{{{proposed| | |approved={{semconApproved|{{{1}}}|{{date|{{{proposed|{{FIXME}}}}}}}|{{date|{{{approved|{{FIXME}}}}}}}|id={{{id|}}}|forum={{{forum|{{fixme|forum}}}}}}} | ||
|#default='''Obligatory argument ''status'' missing'''}}[[category:allSemcons]]</includeonly><noinclude> | |deprecated={{semconDeprecated|{{{1}}}|{{date|{{{proposed|{{FIXME}}}}}}}|{{date|{{{approved|{{FIXME}}}}}}}|{{date|{{{deprecated|{{FIXME}}}}}}}|id={{{id|}}}|forum={{{forum|{{fixme|forum}}}}}}} | ||
|#default='''Obligatory argument ''status'' missing'''}}[[category:allSemcons]]{{#ifeq:{{{id}}}||{{fixme|id}}}}</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
This template is designated for [[dev:Semantic Constraints|semantic constraints]]. It presents them in a standardized way and provides listing in [[:Category:Semantic constraints]]. | This template is designated for [[dev:Semantic Constraints|semantic constraints]]. It presents them in a standardized way and provides listing in [[:Category:Semantic constraints]]. | ||
Line 12: | Line 13: | ||
*1: The constraint. | *1: The constraint. | ||
*status: The status of the semantic constraint: ''proposed'', ''approved'' or ''deprecated'' | *status: The status of the semantic constraint: ''proposed'', ''approved'' or ''deprecated'' | ||
*id: a unique designator for the respective semantic constraint | *id: a unique designator for the respective semantic constraint with the rule "AA:NNN" where AA is the abbreviation of the subscheme (e.g. TT for timetable, IL for interlocking, ...) and NNN a three-digit, ascending and unique number | ||
*{{anchor|forum}}forum: Either a link to the forum entry, where the constraint was discussed or a call of [[template:ticket]]. Please, don't introduce semantic constraints (not even proposed ones) without a former discussion. If the value of ''forum'' is anything other than a link to the {{rml}} forum or a call of [[template:ticket]], an error message will appear. | |||
*proposed: The date of proposal, obligatory | *proposed: The date of proposal, obligatory | ||
*approved: The approvement date, obligatory if status is either approved or deprecated | *approved: The approvement date, obligatory if status is either approved or deprecated | ||
Line 19: | Line 21: | ||
==Example== | ==Example== | ||
<pre>{{semcon| | ===Proposed semantic contraint=== | ||
<pre>{{semcon|All work and no play makes Jack a dull boy.|status=proposed|proposed=1980-10-16|id=AA:nnn|forum=https://www.railml.org/forum/index.php?t=msg&th=704&start=0&}}</pre> | |||
delivers | delivers | ||
{{semcon| | {{semcon|All work and no play makes Jack a dull boy.|status=proposed|proposed=1980-10-16|id=AA:nnn|forum=https://www.railml.org/forum/index.php?t=msg&th=704&start=0&}} | ||
<pre>{{semcon| | ===Approved semantic contraint=== | ||
<pre>{{semcon|People who live in glass houses shouldn't throw stones.<br>{{Deu|Wer im Glashaus sitzt, soll nicht mit Steinen werfen.}}|status=approved|proposed=2019-06-04|approved=2019-06-05|id=AA:nnn}}</pre> | |||
delivers | delivers | ||
{{semcon| | {{semcon|People who live in glass houses shouldn't throw stones.<br>{{Deu|Wer im Glashaus sitzt, soll nicht mit Steinen werfen.}}|status=approved|approved=2019-06-05|proposed=2019-06-04|id=AA:nnn}} | ||
<pre>{{semcon|Never put off until tomorrow what you can do today.|status=deprecated|proposed=2019-02-12|approved=2019-03-18|deprecated=2019-04-05}}</pre> | ===Deprecated semantic contraint=== | ||
<pre>{{semcon|Never put off until tomorrow what you can do today.|status=deprecated|proposed=2019-02-12|approved=2019-03-18|deprecated=2019-04-05|id=AA:nnn|forum=Decided by the coordinator}}</pre> | |||
delivers | delivers | ||
{{semcon|Never put off until tomorrow what you can do today.|status=deprecated|proposed=2019-02-12|approved=2019-03-18|deprecated=2019-04-05}} | {{semcon|Never put off until tomorrow what you can do today.|status=deprecated|proposed=2019-02-12|approved=2019-03-18|deprecated=2019-04-05|id=AA:nnn|forum=Decided by the coordinator}} | ||
[[ | [[Category:Template for semantic constraints]] | ||
</noinclude> | </noinclude> |
Revision as of 13:10, 18 July 2022
Usage
This template is designated for semantic constraints. It presents them in a standardized way and provides listing in Category:Semantic constraints.
Please, don't forget to hint at semantic constraints with template:semconHint!
Arguments
The template has one unnamed obligatory argument and four named arguments:
- 1: The constraint.
- status: The status of the semantic constraint: proposed, approved or deprecated
- id: a unique designator for the respective semantic constraint with the rule "AA:NNN" where AA is the abbreviation of the subscheme (e.g. TT for timetable, IL for interlocking, ...) and NNN a three-digit, ascending and unique number
- forum: Either a link to the forum entry, where the constraint was discussed or a call of template:ticket. Please, don't introduce semantic constraints (not even proposed ones) without a former discussion. If the value of forum is anything other than a link to the railML® forum or a call of template:ticket, an error message will appear.
- proposed: The date of proposal, obligatory
- approved: The approvement date, obligatory if status is either approved or deprecated
- deprecated: The deprecation date, obligatory if status=deprecated
|
Example
Proposed semantic contraint
{{semcon|All work and no play makes Jack a dull boy.|status=proposed|proposed=1980-10-16|id=AA:nnn|forum=https://www.railml.org/forum/index.php?t=msg&th=704&start=0&}}
delivers
|
Approved semantic contraint
{{semcon|People who live in glass houses shouldn't throw stones.<br>{{Deu|Wer im Glashaus sitzt, soll nicht mit Steinen werfen.}}|status=approved|proposed=2019-06-04|approved=2019-06-05|id=AA:nnn}}
delivers
|
Deprecated semantic contraint
{{semcon|Never put off until tomorrow what you can do today.|status=deprecated|proposed=2019-02-12|approved=2019-03-18|deprecated=2019-04-05|id=AA:nnn|forum=Decided by the coordinator}}
delivers
|