Template:Any: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
(Add multiplicity as optional parameter)
No edit summary
Line 1: Line 1:
<includeonly><tt><[[CO:usingAny|xs:any]]></tt>{{#if:{{{multiplicity|}}}|&nbsp;({{{multiplicity}}})}}</includeonly><noinclude>
<includeonly><tt><[[XS:any]]></tt>{{#if:{{{multiplicity|}}}|&nbsp;({{{multiplicity}}})}}</includeonly><noinclude>
==Usage==
==Usage==
This template creates a standardized link for Any-elements (see [[CO:usingAny]] to learn, what this is). The link is formated analogously as with the templates [[Template:TT:Tag]], [[Template:IS:Tag]], [[Template:RS:Tag]] and [[Template:CO:Tag]], but the usage is different, as it works without an argument, because the link target is not variable. It will allways link to [[CO:usingAny]] (but has ''[[CO:usingAny|XS:Any]]'' as its link text).
This template creates a standardized link for Any-elements (see [[CO:usingAny]] to learn, what this is). The link is formated analogously as with the templates [[Template:TT:Tag]], [[Template:IS:Tag]], [[Template:RS:Tag]] and [[Template:CO:Tag]], but the usage is different, as it works without an argument, because the link target is not variable. It will allways link to [[CO:usingAny]] (but has ''[[CO:usingAny|XS:Any]]'' as its link text).

Revision as of 17:15, 28 February 2020

Usage

This template creates a standardized link for Any-elements (see CO:usingAny to learn, what this is). The link is formated analogously as with the templates Template:TT:Tag, Template:IS:Tag, Template:RS:Tag and Template:CO:Tag, but the usage is different, as it works without an argument, because the link target is not variable. It will allways link to CO:usingAny (but has XS:Any as its link text).

Example

{{Any}}

delivers

<XS:any>

{{Any|multiplicity=0..1}}

delivers

<XS:any> (0..1)