Difference between revisions of "Template:Semcon"

From wiki.railML.org
Jump to: navigation, search
[checked revision][checked revision]
Line 19: Line 19:
  
 
==Example==
 
==Example==
<pre>{{semcon|Wer im Glashaus sitzt, soll nicht mit Steinen werfen|status=approved|approved=2019-06-05|proposed=2019-06-04}}</pre>
+
<pre>{{semcon|Wer im Glashaus sitzt, soll nicht mit Steinen werfen|status=approved|approved=2019-06-05|proposed=2019-06-04|id=XYZ}}</pre>
 
delivers
 
delivers
{{semcon|Wer im Glashaus sitzt, soll nicht mit Steinen werfen|status=approved|approved=2019-06-05|proposed=2019-06-04}}
+
{{semcon|Wer im Glashaus sitzt, soll nicht mit Steinen werfen|status=approved|approved=2019-06-05|proposed=2019-06-04|id=XYZ}}
  
<pre>{{semcon|All work and no play makes Jack a dull boy|status=proposed|approved=2019-06-05|proposed=1980-10-16}}</pre>
+
<pre>{{semcon|All work and no play makes Jack a dull boy|status=proposed|approved=2019-06-05|proposed=1980-10-16|id=ABC}}</pre>
 
delivers
 
delivers
{{semcon|All work and no play makes Jack a dull boy|status=proposed|approved=2019-06-05|proposed=1980-10-16}}
+
{{semcon|All work and no play makes Jack a dull boy|status=proposed|approved=2019-06-05|proposed=1980-10-16|id=ABC}}
  
<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>
+
<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=αβγ}}</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=αβγ}}
  
 
[[category:template]]
 
[[category:template]]
 
</noinclude>
 
</noinclude>

Revision as of 13:47, 9 July 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
  • id: a unique designator for the respective semantic constraint
  • 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
Note.png The dates in parameters proposed, approved and deprecated have to be entered in format yyyy-mm-dd, as they are parsed by Template:Date!


Example

{{semcon|Wer im Glashaus sitzt, soll nicht mit Steinen werfen|status=approved|approved=2019-06-05|proposed=2019-06-04|id=XYZ}}

delivers

Private-cloud-icon.png Semantic Constraint "XYZ":
 
Wer im Glashaus sitzt, soll nicht mit Steinen werfen
 
Proposed on June 4th 2019
Approved on June 5th 2019
Please, recognize our guidelines on semantic constraints
{{semcon|All work and no play makes Jack a dull boy|status=proposed|approved=2019-06-05|proposed=1980-10-16|id=ABC}}

delivers

Private-cloud-icon.png Proposed Semantic Constraint "ABC":
 
All work and no play makes Jack a dull boy
 
Proposed on October 16th 1980
Please, recognize our guidelines on semantic constraints
{{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=αβγ}}

delivers

Private-cloud-icon.png Deprecated Semantic Constraint "αβγ":
 
Never put off until tomorrow what you can do today.
 
Proposed on February 12th 2019
Approved on March 18th 2019
Deprecated on March 18th 2019
Deprecated semantic constraints may still be valid for older railML® versions!
Please, recognize our guidelines on semantic constraints