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 3: Line 3:
{|type="wikitable" border="0" style="background-color:#ffbbbb;"
{|type="wikitable" border="0" style="background-color:#ffbbbb;"
|valign="top"|[[file:Private-cloud-icon.png|50px]][[category:Semantic constraints]]
|valign="top"|[[file:Private-cloud-icon.png|50px]][[category:Semantic constraints]]
|'''Semantic constraint:'''<br>{{#if:{{{2|}}}|{{{1}}}<br>Proposed on {{{2}}}|'''Introduction date missing!'''}}<br>''Please, recognize [[dev:Semantic Constraints]]''
|'''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]]''
|}
|}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Line 11: Line 11:
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 one obligatoryargument for the constraint.
The template has three unnamed obligatory arguments:
 
*1: The constraint.
*2: The introduction date
*3: The approvement date
==Example==
==Example==
<pre>{{semcon|Never put off until tomorrow what you can do today.|monday}}</pre>
<pre>{{semcon|Never put off until tomorrow what you can do today.|monday|thursday}}</pre>
delivers
delivers
{{semcon|Never put off until tomorrow what you can do today.|monday}}
{{semcon|Never put off until tomorrow what you can do today.|monday|thursday}}


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

Revision as of 15:45, 10 December 2018

Usage

This template is designated for approved semantic constraints. It presents them in a standardized way and provides listing in Category:Semantic constraints. For proposed semantic constraints use Template:SemconProposal.

Please, don't forget to hint at semantic constraints with template:semconHint!

Arguments

The template has three unnamed obligatory arguments:

  • 1: The constraint.
  • 2: The introduction date
  • 3: The approvement date

Example

{{semcon|Never put off until tomorrow what you can do today.|monday|thursday}}

delivers

Private-cloud-icon.png Semantic constraint:
Never put off until tomorrow what you can do today.
Proposed on monday
Approved on thursday
Please, recognize dev:Semantic Constraints