Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Ahecht
(implement quote parameter)
Template>Ahecht
(add dashed underline if quote specified)
Line 1: Line 1:
<includeonly>{{#tag:ref||name={{{1}}}|group={{{2}}}}}{{#if:{{{3}}}|<sup class="reference nowrap" {{#if:{{{4|}}}|title='"{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4}}}}}|"|&quot;}}}}"'}}><nowiki>:</nowiki>{{{3}}}</sup>}}</includeonly><noinclude>
<includeonly>{{#tag:ref||name={{{1}}}|group={{{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>
==Usage==
==Usage==
<pre>{{r/ref|name|group|page numbers|quote}}</pre>
<pre>{{r/ref|name|group|page numbers|quote}}</pre>

Revision as of 05:47, 16 November 2017

Usage

{{r/ref|name|group|page numbers|quote}}