No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
It accepts one {{Parameter|mandatory|string}} and one {{Parameter|optional|string}} | It accepts one {{Parameter|mandatory|string}} and one {{Parameter|optional|string}} | ||
* {{Code|1}} is a sourcebook abbreviation; valid options are listed in | * {{Code|1}} is a sourcebook abbreviation; valid options are listed in {{Template|src/Abbreviations}}. | ||
* {{Code|2}} is a page reference, typically a single integer or a range. | * {{Code|2}} is a page reference, typically a single integer or a range. | ||
==Return== | ==Return== | ||
Revision as of 18:43, 24 October 2022
Template:src is used to create sourcebook references and categorize articles making them. It leverages Template:src/Text to generate the appropriate strings.
Usage
It accepts one mandatory string parameter and one optional string parameter
1is a sourcebook abbreviation; valid options are listed inTemplate:src/Abbreviations.2is a page reference, typically a single integer or a range.
Return
{{src|sr5}} uses Template:Categorize to put the article into the appropriate category, then returns:
Adding the second parameter, e.g. {{src|sr5|404}}, modifies the return:
