Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Issue/Documentation: Difference between revisions

(Created page with "<includeonly>Category:TemplateCategory:Categorization TemplateCategory:Reference Template</includeonly> {{Template|Issue}} categorizes articles with open [https://github.com/SR5-FoundryVTT/SR5-FoundryVTT/issues issues] on the system [https://github.com/SR5-FoundryVTT/SR5-FoundryVTT GitHub]. ==Usage== It accepts a {{Parameter|mandatory|integer}}, the issue number. ==Returns== {{Code|<nowiki>Some text{{Issue|1}} here.</nowiki>}} returns: {{Return|Some text{{Iss...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
==Usage==
==Usage==
It accepts a {{Parameter|mandatory|integer}}, the issue number.
It accepts a {{Parameter|mandatory|integer}}, the issue number.
It has a second {{Parameter|optional}}, that alters the behavior if set to {{Code|inline}}.
==Returns==
==Returns==
{{Code|<nowiki>Some text{{Issue|1}} here.</nowiki>}} returns: {{Return|Some text{{Issue|1}} here.}} ...and... {{Return|<references group="explain" />}}
The basic behavior creates a foot note. {{Code|<nowiki>Some text{{Issue|1}} here.</nowiki>}} returns: {{Return|Some text{{Issue|1}} here.}} ...and... {{Return|<references group="git" />}}
==Note==
If the second parameter is {{Code|inline}}, such as {{Code|<nowiki>It looks like {{Issue|1|inline}} insted.</nowiki>}}, it returns: {{Return|It looks like {{Issue|1|inline}} instead.}}
In order for a parameter to appear in a {{Code|<nowiki><ref></nowiki>}}, it must be wrapped in a {{Code|<nowiki>{{#var}}</nowiki>}} statement, or the input won't be processed until ''after'' the reference tag is generated.

Latest revision as of 03:12, 3 December 2023

Template:Issue categorizes articles with open issues on the system GitHub.

Usage

It accepts a mandatory integer parameter, the issue number.

It has a second optional parameter, that alters the behavior if set to inline.

Returns

The basic behavior creates a foot note. Some text{{Issue|1}} here. returns:

Some text[git 1] here.

...and...

If the second parameter is inline, such as It looks like {{Issue|1|inline}} insted., it returns:

It looks like GitHub Issue #1 instead.