Template:ElementDocu: Difference between revisions
[checked revision] | [checked revision] |
(Rückgängig gemacht — Lapsus) |
(→Best practice / {{Deu|Empfohlene Anwendung}} / {{Fra|Bonnes pratiques}}: Example copied from <line> description) |
||
Line 25: | Line 25: | ||
== Best practice / {{Deu|Empfohlene Anwendung}} / {{Fra|Bonnes pratiques}} == | == Best practice / {{Deu|Empfohlene Anwendung}} / {{Fra|Bonnes pratiques}} == | ||
{{{ | <syntaxhighlight lang="xml"> | ||
<railML ...> | |||
<metadata> | |||
<organizationalUnits> | |||
<infrastructureManager id="33e19910-794d-4afc-88f3-b5f27a3f6a6a" | |||
code="ÖBB" | |||
name="Österreichische Bundesbahn Infrastruktur" | |||
xml:lang="de-AT"> | |||
<additionalName name="Austrian Federal Railways" | |||
xml:lang="en"/> | |||
</infrastructureManager> | |||
</organizationalUnits> | |||
</metadata> | |||
... | |||
</railML> | |||
</syntaxhighlight> | |||
For the attribute {{attr|code}} in element {{CO:Tag|infrastructureManager}} please use the matching value from the codelist file <tt>InfrastructureManagers.xml</tt>. In this example, the code ''ÖBB'' is given. | |||
{{deu|Für den Wert des Attributs {{attr|code}} im Element {{CO:Tag|infrastructureManager}} wählen Sie bitte den entsprechenden Eintrag aus der von railML.org bereitgestellten Codelist <tt>InfrastructureManagers.xml</tt>. Im Beispiel heißt der Code ''ÖBB''.}} | |||
== Additional information / {{Deu|Zusätzliche Informationen}} / {{Fra|Information supplémentaire}} == | == Additional information / {{Deu|Zusätzliche Informationen}} / {{Fra|Information supplémentaire}} == |
Revision as of 18:38, 5 March 2017
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
- Inherited attributes from other data types
- Specific Attributes
- Constraints
- Best practice
- Additional information
- Notes
- Example
- Open issues
Parameters
- 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
- inheritedAttributes — inherited attributes from other data types
- ownAttributes — specific, not inherited attributes of this element
- constraints
- bestpractice — comments about best practice
- notes — general notes
- example
- openissues — comments on open issues
Dependencies
The template depends on Template:Deu and Template:Fra. There is abig number of templates building on Template:ElementDocu.
Example
{{Template:ElementDocu|ElementName=SomeSampleElement|semantics=''This is an example. For readability reasons it is boxed.''}}
delivers
Scheme description / Schemenbeschreibung /Position of FIXME in the XML-Tree / Position von FIXME im XML-Baum /
Semantics / Bedeutung /This is an example. For readability reasons it is boxed. Inherited attributes from other data types / Abgeleitete Attribute von anderen Datentypen /Not yet described. / Noch nicht beschrieben. / Specific Attributes of FIXME / Spezielle Attribute von FIXME /Not yet described. / Noch nicht beschrieben. / Constraints / Beschränkungen /Not yet described. / Noch nicht beschrieben. / Best practice / Empfohlene Anwendung /Not yet described. / Noch nicht beschrieben. / Additional information / Zusätzliche Informationen /Notes / Anmerkungen /Not yet described. / Noch nicht beschrieben. / Example / Beispiel /Not yet described. / Noch nicht beschrieben. / Open issues / Offene Punkte/Pedenzen /Not yet described. / Noch nicht beschrieben. / |
An example of the application of this template afield is IS:signal.