Template:Semcon: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{status}}}
<includeonly>{{#switch:{{{status}}}
|proposed={{semconProposed|{{{1}}}|{{{proposed|'''FIXME'''}}}}}
|proposed={{semconProposed|{{{1}}}|{{date|{{{proposed|'''FIXME'''}}}}}}}
|approved={{semconApproved|{{{1}}}|{{{proposed|'''FIXME'''}}}|{{{approved|'''FIXME'''}}}}}
|approved={{semconApproved|{{{1}}}|{{date|{{{proposed|'''FIXME'''}}}}}|{{date|{{{approved|'''FIXME'''}}}}}}}
|deprecated={{semconDeprecated|{{{1}}}|{{{proposed|'''FIXME'''}}}|{{{approved|'''FIXME'''}}}|{{{deprecated|'''FIXME'''}}}}}
|deprecated={{semconDeprecated|{{{1}}}|{{date|{{{proposed|'''FIXME'''}}}}}|{{date|{{{approved|'''FIXME'''}}}}}|{{date|{{{deprecated|'''FIXME'''}}}}}}}
|#default='''Obligatory argument ''status'' missing'''}}</includeonly><noinclude>
|#default='''Obligatory argument ''status'' missing'''}}</includeonly><noinclude>
==Usage==
==Usage==
Line 17: Line 17:


==Example==
==Example==
<pre>{{semcon|Never put off until tomorrow what you can do today.|status=approved|proposed=2019-02-12|approved=2019-03-18|outdated=2019 04-05}}</pre>
<pre>{{semcon|Never put off until tomorrow what you can do today.|status=approved|proposed=2019-02-12|approved=2019-03-18|deprecated=2019 04-05}}</pre>
delivers
delivers
{{semcon|Never put off until tomorrow what you can do today.|status=approved|proposed=2019-02-12|approved=2019-03-18|outdated=2019 04-05}}
{{semcon|Never put off until tomorrow what you can do today.|status=approved|proposed=2019-02-12|approved=2019-03-18|deprecated=2019 04-05}}


[[category:template]]
[[category:template]]
</noinclude>
</noinclude>

Revision as of 16:18, 16 May 2019

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
  • 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

{{semcon|Never put off until tomorrow what you can do today.|status=approved|proposed=2019-02-12|approved=2019-03-18|deprecated=2019 04-05}}

delivers

Private-cloud-icon.png Semantic Constraint:
 
Never put off until tomorrow what you can do today.
 
Proposed on February 12th 2019
Approved on March 18th 2019
{{{forum}}}
Please, recognize our guidelines on semantic constraints