Template:@

From railML 3 Wiki
Jump to navigation Jump to search

Usage

Calls an attribute anchor within the pages. Attribute anchors are set automatically with template:attr. To call an attribute from another page, use Template:CO:Tag and analogous with argument attr.

Example

Set an anchor with Template:Attr:

{{attr|example}}

delivers

example

Call the attribute:

{{@|example}}

delivers

{{#if:|[[:{{{3}}}:|[[}}#example|@example]]

{{@|maxSpeed|IS:linePerformance}}

delivers:

{{#if:|[[:{{{3}}}:|[[}}IS:linePerformance#maxSpeed|@maxSpeed]]

{{@|id|IS:infrastructure|wiki2}}

delivers:

{{#if:wiki2|[[:wiki2:|[[}}IS:infrastructure#id|@id]]