Mr. Johnson (talk | contribs) No edit summary Tag: Reverted |
Mr. Johnson (talk | contribs) 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...
- ↑ 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.