Template:InheritIdNameConstraints

From railML 2 Wiki
Revision as of 17:47, 9 February 2022 by RailML Coord Documentation (talk | contribs) (+doku, nolang)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template displays constraints to selected attributes analogously to Template:InheritIdName.

Arguments

  • nocode: Suppress code constraints if nocode=1
  • nolang: Suppress language constraints if nolang=1

Examples

{{InheritIdNameConstraints}}

delivers:

  • id: xs:ID, required
    a string, starting with a letter (a..zA..Z) or an underscore (_),
    followed by a non-colonized and non-spaced string consisting of letters, digits, points (.), dashes (-) or underscores (_)
  • code: xs:string, optional
  • name: xs:string, optional
  • description: xs:string, optional
  • xml:lang: xs:language, language identification, optional
{{InheritIdNameConstraints|noid=1}}

delivers:

{{InheritIdNameConstraints|nolang=1}}

delivers:

  • id: xs:ID, required
    a string, starting with a letter (a..zA..Z) or an underscore (_),
    followed by a non-colonized and non-spaced string consisting of letters, digits, points (.), dashes (-) or underscores (_)
  • code: xs:string, optional
  • name: xs:string, optional
  • description: xs:string, optional