No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
{{Code|<nowiki>{{src|sr5}}</nowiki>}} uses {{Template|Categorize}} to put the article into the appropriate category, then returns: {{Return|{{src|sr5}}}} | {{Code|<nowiki>{{src|sr5}}</nowiki>}} uses {{Template|Categorize}} to put the article into the appropriate category, then returns: {{Return|{{src|sr5}}}} | ||
{{Code|<nowiki>{{src|sr5|404}}</nowiki>}} | Adding the second parameter, e.g. {{Code|<nowiki>{{src|sr5|404}}</nowiki>}}, modifies the return: {{Return|{{src|sr5|404}}}} | ||
Revision as of 14:39, 23 October 2022
Template:src is used to create sourcebook references and categorize articles making them.
Usage
It accepts one mandatory string parameter and one optional string parameter
1is a sourcebook abbreviation; valid options are listed in Template: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:
