Template:Attr

From railML 2 Wiki
Revision as of 16:13, 17 June 2019 by RailML Coord Documentation (talk | contribs) (→‎Usage: How to call it)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template grants for a standardized depiction of element attributes in typewriter font. Moreover, an anchor is set, so the attribute can be referenced directly in links, e.g. you can call IS:signal#name.

For calling an attribute within the page employ Template:@.

For calling an attribute from another page employ Template:IS:Tag (and analogously) with argument attr.

Parameters

The template has one unnamed obligatory parameter for the depicted content.

Dependencies

The template is independent of othe attributes. There is a big number of templates building on it, eg Template:InheritVersion.

Example

{{Attr|Version}}

delivers

Version