Template:Xref: Difference between revisions
From CTLTMS
CTLTMS>Anw (Added TemplateData) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 12:05, 21 August 2024
Usage
The following includes the type, number and 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
The following includes the type, number and text passed to the template. The example shows how this may be used within an document template. If not, replace the parameters with literals. <nowiki> {{#vardefine:Example|0}} {{Xref |Num={{ #vardefineecho: Example | {{ #expr: {{ #var: Example }} + 1 }} }} |Text=The text describing the cross-reference }}</nowiki>
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | Type 1 | The cross reference type e.g. Example, Table, etc | String | required |
Num | Num 2 | The cross-reference number | Number | required |
Text | Text 3 | The text to describe the cross reference. | String | required |