Difference between revisions of "Template:R/ref"

From blackwiki
Jump to navigation Jump to search
test>Ahecht
(implement quote parameter)
test>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 00:17, 16 November 2017

Usage

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