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:Explain/Documentation: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 6: Line 6:
{{Code|<nowiki>Some text{{Explain|Why should I have to explain anything?}} here.</nowiki>}} returns: {{Return|Some text{{Explain|Why should I have to explain anything?}} here.}} ...and... {{Return|<references group="explain" />}}
{{Code|<nowiki>Some text{{Explain|Why should I have to explain anything?}} here.</nowiki>}} returns: {{Return|Some text{{Explain|Why should I have to explain anything?}} here.}} ...and... {{Return|<references group="explain" />}}
==Note==
==Note==
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.
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. That same variable is leveraged by {{Template|References}} to determine wether or not it should generate reference sections.

Revision as of 03:00, 22 November 2023

Template:Explain categorizes articles in need of clarification.

Usage

It accepts a mandatory string parameter, the question in need of answering.

Returns

Some text{{Explain|Why should I have to explain anything?}} here. returns:

Some text[explain 1] here.

...and...

  1. Why should I have to explain anything?

Note

In order for a parameter to appear in a <ref>, it must be wrapped in a {{#var}} statement, or the input won't be processed until after the reference tag is generated. That same variable is leveraged by Template:References to determine wether or not it should generate reference sections.