Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(ensure that ref name= and group= parameters are always passed down in quotes (more compatible in case of spaces))
Template>Matthiaspaul
(Added refn functionality)
Line 1: Line 1:
<includeonly>{{#tag:ref||name="{{trim quotes|s={{{1}}}}}"|group="{{trim quotes|s={{{2}}}}}"}}{{#if:{{{3}}}|<sup class="reference nowrap"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title='"{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4}}}}}|"|&quot;}}}}"'}}>{{{3}}}</span></sup>}}</includeonly><noinclude>
<includeonly>{{#tag:ref|{{{refn|}}}|name="{{trim quotes|s={{{1}}}}}"|group="{{trim quotes|s={{{2}}}}}"}}{{#if:{{{3}}}|<sup class="reference nowrap"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title='"{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4}}}}}|"|&quot;}}}}"'}}>{{{3}}}</span></sup>}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 01:34, 29 August 2021

Template documentation