Template:ElementDocu: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:


{{{notes|''Not yet described. / {{Deu|Noch nicht beschrieben.}}''}}}
{{{notes|''Not yet described. / {{Deu|Noch nicht beschrieben.}}''}}}
<!--
{{#if:{{{ref|}}}|
=== Example / {{Deu|Beispiel}} ===
== References / {{Deu|Einzelnachweise}} ==
 
<references />}}
{{{example|''Not yet described. / {{Deu|Noch nicht beschrieben.}}''}}}
-->
== Open issues / {{Deu|Offene Punkte/Pendenzen}} ==
== Open issues / {{Deu|Offene Punkte/Pendenzen}} ==


Line 104: Line 102:
**multi – Some comment to the multiplicity. E.g. version changes
**multi – Some comment to the multiplicity. E.g. version changes
**interwiki – The corresponding {{rml|3}} element (if applicable; use carefully!).
**interwiki – The corresponding {{rml|3}} element (if applicable; use carefully!).
**ref – Produces a references paragraph. Set ref=1 to display the references if applicable.
*Arguments to be discontinued — '''Do not use them anymore'''
*Arguments to be discontinued — '''Do not use them anymore'''
**inheritedAttributes — inherited attributes from other data types — use ''ownAttributes'', as the distinction between own and inherited attributes will no longer be presented in this wiki.
**inheritedAttributes — inherited attributes from other data types — use ''ownAttributes'', as the distinction between own and inherited attributes will no longer be presented in this wiki.
**bestpractice — use ''example'', as the paragraphs ''Best Practice'' and ''Examples'' have been merged
**bestpractice — use ''example'', as the paragraphs ''Best Practice'' and ''Examples'' have been merged
===Dependencies===
===Dependencies===
The template depends on [[Template:Deu]]. There is abig number of templates building on Template:ElementDocu.
The template depends on [[Template:Deu]]. There is abig number of templates building on Template:ElementDocu.

Latest revision as of 15:40, 3 July 2023

Usage

This template is the working horse of element documentation. It provides a standardized framework on which a number of ohter templates build upon.

Aricles employing the template have the following structure:

  • Scheme description
  • Position in the XML-Tree
    • Parent
    • Children: Not yet described. / Noch nicht beschrieben.
  • Semantics
  • Attributes
  • Constraints
  • Best practice & Examples
  • Notes
  • Open issues

Arguments

  • Obligatory:
    • elementName — the name of the element
    • semantics — a human readable explanation of the function of the described element
  • Optional:
    • parent — the name of the parent node within the XML tree
    • childs — the children nodes
    • ownAttributes — specific, not inherited attributes of this element
    • constraints
    • notes — general notes
    • example
    • openissues — comments on open issues
    • intro – You can optionally enter the version when the element was introduced. It will produce a reminder at the top of the article
    • depr – You can optionally enter the version when the element was deprecated. It will produce a reminder at the top of the article
    • minocc – the minimum number of occurances – default=1
    • maxocc – the maximum of occurances – default=1
    • multi – Some comment to the multiplicity. E.g. version changes
    • interwiki – The corresponding railML® 3 element (if applicable; use carefully!).
    • ref – Produces a references paragraph. Set ref=1 to display the references if applicable.
  • Arguments to be discontinued — Do not use them anymore
    • inheritedAttributes — inherited attributes from other data types — use ownAttributes, as the distinction between own and inherited attributes will no longer be presented in this wiki.
    • bestpractice — use example, as the paragraphs Best Practice and Examples have been merged

Dependencies

The template depends on Template:Deu. There is abig number of templates building on Template:ElementDocu.

Example

{{ElementDocu|ElementName=SomeSampleElement|semantics=''This is an example. For readability reasons it is boxed.''}}

delivers

mentDocu
 


Scheme description / Schemenbeschreibung

Position of mentDocu in the XML-Tree / Position von mentDocu im XML-Baum

  • Parent: Not yet described. / Noch nicht beschrieben.
  • Children: Not yet described. / Noch nicht beschrieben.

Multiplicity / Anzahl

[1..1]

Semantics / Bedeutung

This is an example. For readability reasons it is boxed.

Attributes of mentDocu / Attribute von mentDocu

Not yet described. / Noch nicht beschrieben.

Syntactic Constraints / Syntaktische Beschränkungen

Not yet described. / Noch nicht beschrieben.

Best practice & Examples / Empfohlene Anwendung & Beispiele

Not yet described. / Noch nicht beschrieben.

Notes / Anmerkungen

Not yet described. / Noch nicht beschrieben.

Open issues / Offene Punkte/Pendenzen

Not yet described. / Noch nicht beschrieben.

An example of the application of this template afield is IS:signal.