Template:Semcon: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Colour changed)
No edit summary
Line 1: Line 1:
<includeonly>{|border="5"
<includeonly>{{#switch:status
|
|proposed={{semconProposed|{{{1}}}|{{{proposed}}}}}
{|type="wikitable" border="0" style="background-color:#ffbf00;"
|approved={{semconApproved|{{{1}}}|{{{proposed}}}|{{{approved}}}}}
|valign="top"|[[file:Private-cloud-icon.png|50px]][[category:Semantic constraints]]
|deprecated={{semconApproved|{{{1}}}|{{{proposed}}}|{{{approved}}}|{{{deprecated}}}}}
|'''Semantic constraint:'''<br>{{#if:{{{2|}}}|{{#if:{{{3|}}}|{{{1}}}<br>Proposed on {{{2}}}<br>Approved on {{{3}}}|Approvement date missing!}}|'''Introduction date missing!'''}}<br>''Please, recognize '''[[dev:Semantic Constraints|our guidelines on semantic constraints]]'''''
|#default='''Obligatory argument ''status'' missing'''}}</includeonly><noinclude>
|}
|}</includeonly><noinclude>
==Usage==
==Usage==
This template is designated for '''approved''' [[dev:Semantic Constraints|semantic constraints]]. It presents them in a standardized way and provides listing in [[:Category:Semantic constraints]]. For '''proposed''' semantic constraints use [[Template:SemconProposal]].
This template is designated for [[dev:Semantic Constraints|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]]!
Please, don't forget to hint at semantic constraints with [[template:semconHint]]!
===Arguments===
===Arguments===
The template has three unnamed obligatory arguments:
The template has one unnamed obligatory argument and four named arguments:
*1: The constraint.
*1: The constraint.
*2: The introduction date
*status: The status of the semantic constraint: ''proposed'', ''approved'' or ''deprecated''
*3: The approvement date
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==
==Example==
<pre>{{semcon|Never put off until tomorrow what you can do today.|monday|thursday}}</pre>
<pre>{{semcon|Never put off until tomorrow what you can do today.|proposed=monday|approved=thursday}}</pre>
delivers
delivers
{{semcon|Never put off until tomorrow what you can do today.|monday|thursday}}
{{semcon|Never put off until tomorrow what you can do today.|proposed=monday|approved=thursday}}


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

Revision as of 18:12, 27 March 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.|proposed=monday|approved=thursday}}

delivers Obligatory argument status missing