Template:Any: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
m (1 revision imported) |
RailML Admin (talk | contribs) (Add multiplicity as optional parameter) |
||
Line 1: | Line 1: | ||
<includeonly><tt><[[CO:usingAny|xs:any]]></tt></includeonly><noinclude> | <includeonly><tt><[[CO:usingAny|xs:any]]></tt>{{#if:{{{multiplicity|}}}| ({{{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). | ||
Line 8: | Line 8: | ||
{{Any}} | {{Any}} | ||
<nowiki>{{Any|multiplicity=0..1}}</nowiki> | |||
delivers | |||
{{Any|multiplicity=0..1}} | |||
[[Category:LinkTemplate]] | [[Category:LinkTemplate]] | ||
</noinclude> | </noinclude> |
Revision as of 12:27, 24 January 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)