Mr. Johnson (talk | contribs) (Created page with "<includeonly>Category:Categorization Template</includeonly> <!--Template Description--> ==Usage== <!--Parameters and such go here.--> ==Returns== <!--Examples go here.-->") |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[Category:Categorization Template]]</includeonly> | <includeonly>[[Category:Categorization Template]]</includeonly> | ||
{{Template|Ver}} is used to identify passages that reference a specific [https://github.com/SR5-FoundryVTT/SR5-FoundryVTT/releases release] of the game system or the core Foundry software. | |||
==Usage== | ==Usage== | ||
It accepts one {{Parameter|mandatory}} and one {{Parameter|optional}}: | |||
# must be a version number. | |||
# (default {{Code|s}}) identifies wether the first parameter is refering to a SR5 release ({{code|s}})) or a Foundry VTT release ({{Code|f}}). Any other input will throw an error. | |||
It will create a link to the appropriate Category and use {{Template|Categorize}} to file the article, though it does not do any validation on wether or not the input version actually exists. | |||
==Returns== | ==Returns== | ||
< | {{Code|<nowiki>{{ver|0.14.1}}</nowiki>}} returns: {{Return|{{ver|0.14.1}}}} | ||
{{Code|<nowiki>{{ver|0.17.0|s}}</nowiki>}} returns: {{Return|{{ver|0.17.0|s}}}} | |||
{{Code|<nowiki>{{ver|11.315|f}}</nowiki>}} returns: {{Return|{{ver|11.315|f}}}} | |||
{{Code|<nowiki>{{ver|24610|j}}</nowiki>}} returns: {{Return|{{ver|24610|j}}}} |
Revision as of 23:48, 3 December 2023
Template:Ver
is used to identify passages that reference a specific release of the game system or the core Foundry software.
Usage
It accepts one mandatory parameter and one optional parameter:
- must be a version number.
- (default
s
) identifies wether the first parameter is refering to a SR5 release (s
)) or a Foundry VTT release (f
). Any other input will throw an error.
It will create a link to the appropriate Category and use Template:Categorize
to file the article, though it does not do any validation on wether or not the input version actually exists.
Returns
{{ver|0.14.1}}
returns:
{{ver|0.17.0|s}}
returns:
{{ver|11.315|f}}
returns:
{{ver|24610|j}}
returns:
Error!
j
is not a valid input for Template:Ver
!