Template:Xref: Difference between revisions

From EPOD
(Created page with "<includeonly> ''' {{{Type}}} {{{Ref}}}''': {{{Text|}}} </includeonly> <noinclude> == Usage == The following includes the text passed to the template. The example shows how this ...")
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
''' {{{Type}}} {{{Ref}}}''': {{{Text|}}}
'''{{{Type}}} {{{Num}}}''': ''{{{Text|}}}''
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 9: Line 9:
{{#vardefine:Example|0}}
{{#vardefine:Example|0}}
{{Xref
{{Xref
|ExampleNo={{ #vardefineecho: Example | {{ #expr: {{ #var: Example }} + 1 }} }}
|Num={{ #vardefineecho: Example | {{ #expr: {{ #var: Example }} + 1 }} }}
|Text=The text describing the cross-reference
|Text=The text describing the cross-reference
}}</nowiki>  
}}</nowiki>  

Revision as of 10:16, 22 January 2019


Usage

The following includes the text passed to the template. The example shows how this may be used within an document template. If not, replace the parameters with literals.

{{#vardefine:Example|0}}
{{Xref
|Num={{ #vardefineecho: Example | {{ #expr: {{ #var: Example }} + 1 }} }}
|Text=The text describing the cross-reference
}} 


Example 1: The text describing the cross-reference