Template:RefElement: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
(+Freitext für @ref)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|maxocc=∞
|maxocc=∞
|semantics={{{semantics|}}}
|semantics={{{semantics|}}}
|ownAttributes={{{attributes}}}
|ownAttributes={{{attributes|}}}
*{{attr|ref}}: Reference is required because it's the purpose of the element.
*{{attr|ref}}: {{{ref|Reference is required because it's the purpose of the element.}}}
|constraints={{{constraints|}}}
|constraints={{{constraints|}}}
*{{constraint|ref|rml|tGenericRef|required}}
*{{constraint|ref|rml|tGenericRef|required}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
Template for elements that are essentially {{@|ref}}-containers
Template for elements that are essentially {{@|ref}}-containers
=== Arguments ===
* ''parent'' (required): The parent element
* ''intro'' (optional): Introduction version or deprication version; if still supported. Fill with someting like <nowiki>{{intro|2.5}}</nowiki>; comp. [[template:intro]] and [[template:depr]].
* ''semantics'' (optional): Addition to the default semantics
* ''ref'' (optional): Text to replace the default attribute semantics of {{@|ref}}
* ''attributes'' (optional): Any noninherited attributes
* ''constraints'' (optional): Constraints for noninherited attributes
== Examples ==
An example for the application of this template can be found {{site|1=https://wiki2.railml.org/index.php?title=IS:localOperationArea&action=edit|2=here|mode=silent}}.
[[category:template]]
[[category:template]]
</noinclude>
</noinclude>

Latest revision as of 15:12, 10 June 2024

Usage

Template for elements that are essentially @ref-containers

Arguments

  • parent (required): The parent element
  • intro (optional): Introduction version or deprication version; if still supported. Fill with someting like {{intro|2.5}}; comp. template:intro and template:depr.
  • semantics (optional): Addition to the default semantics
  • ref (optional): Text to replace the default attribute semantics of @ref
  • attributes (optional): Any noninherited attributes
  • constraints (optional): Constraints for noninherited attributes

Examples

An example for the application of this template can be found here.