No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
* {{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== | ||
{{Code|<nowiki>{{src|sr5}}</nowiki>}} | {{Code|<nowiki>{{src|sr5}}</nowiki>}} puts the article into the appropriate category, then returns: {{Return|{{src|sr5}}}} | ||
Adding the second parameter, e.g. {{Code|<nowiki>{{src|sr5|404}}</nowiki>}}, modifies the return: {{Return|{{src|sr5|404}}}} | Adding the second parameter, e.g. {{Code|<nowiki>{{src|sr5|404}}</nowiki>}}, modifies the return: {{Return|{{src|sr5|404}}}} | ||
Revision as of 13:45, 1 November 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}} puts the article into the appropriate category, then returns:
Adding the second parameter, e.g. {{src|sr5|404}}, modifies the return:
