Template:R/ref: Difference between revisions
From Vigyanwiki
Template>Matthiaspaul (Adjusted reference parameter name to more commonly used name by other templates) |
Template>Matthiaspaul (added special annotation tokens p (for pages) and q (for quote) and quote-page parameter) |
||
Line 1: | Line 1: | ||
<includeonly>{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name="{{trim quotes|s={{{1}}}}}"|group="{{trim quotes|s={{{2}}}}}"}}{{#if:{{{annotation|}}}|{{#tag:ref|{{{annotation|}}}|follow="{{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}}}}}|"|"}}}}"'}}>{{{3}}}</span></sup>}}</includeonly><noinclude> | <includeonly>{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}}}|name="{{trim quotes|s={{{1}}}}}"|group="{{trim quotes|s={{{2}}}}}"}}{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p={{{3|}}}|q="{{#if:{{{quote-page|}}}|{{{quote-page|}}}: }}{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4}}}}}|"|"}}}}"|{{{annotation|}}}}}|follow="{{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='"{{#if:{{{quote-page|}}}|{{{quote-page|}}}: }}{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4}}}}}|"|"}}}}"'}}>{{{3}}}</span></sup>}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 16:02, 29 August 2021
Template documentation
[create]