Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(updated from sandbox)
Template>Matthiaspaul
(updated)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
### Debug facility: ###  
### Debug facility: ###  
-->{{#if:{{{debug|}}}|DEBUG: 1="{{{1|}}}", 2="{{{2|}}}", 3="{{{3|}}}", 4="{{{4|}}}", name="{{{name|}}}", group="{{{group|}}}", page="{{{page|}}}", pages="{{{pages|}}}", location="{{{location|}}}", quote="{{{quote|}}}", quote-page="{{{quote-page|}}}", reference="{{{reference|}}}", annotation="{{{annotation|}}}", leadin="{{{leadin|}}}", postscript="{{{postscript|}}}", section="{{{section|}}}", needed-reason="{{{needed-reason|}}}", needed-date="{{{needed-date|}}}", wrap="{{{wrap|}}}", id="{{{id|}}}", debug="{{{debug|}}}". Potential context-section-name:"{{anchorencode:cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}".}}<!--
-->{{#if:{{{debug|}}}|DEBUG: 1="{{{1|}}}", 2="{{{2|}}}", 3="{{{3|}}}", 4="{{{4|}}}", name="{{{name|}}}", group="{{{group|}}}", page="{{{page|}}}", pages="{{{pages|}}}", location="{{{location|}}}", quote="{{{quote|}}}", quote-page="{{{quote-page|}}}", quote-language="{{{quote-language|}}}", quote-cite="{{{quote-cite|}}}", reference="{{{reference|}}}", annotation="{{{annotation|}}}", leadin="{{{leadin|}}}", postscript="{{{postscript|}}}", section="{{{section|}}}", needed-reason="{{{needed-reason|}}}", needed-date="{{{needed-date|}}}", wrap="{{{wrap|}}}", id="{{{id|}}}", debug="{{{debug|}}}". Potential context-section-name:"{{anchorencode:cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}".}}<!--
### Opening "support context" span: ###
### Opening "support context" span: ###
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|<templatestyles src="Template:Tooltip/styles.css"/><span class="rt-commentedText tooltip tooltip-dotted" title="Context: &quot;{{#tag:nowiki|{{#invoke:String|replace|{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|"|&quot;}}}}&quot;">}}}}<!--
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|<templatestyles src="Template:Tooltip/styles.css"/><span class="rt-commentedText tooltip tooltip-dotted" title="Context:&#32;&quot;{{#tag:nowiki|{{#invoke:String|replace|{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|"|&quot;}}}}&quot;">}}}}<!--
### First call to create reference link: ###
### First call to create reference link: ###
-->{{#tag:ref|{{#if:{{{annotation|}}}||{{#if:{{{id|}}}|<span<!-- <cite...> --> id="{{anchorencode:{{{id|}}}}}" class="citation<!-- wikicite r -->">}}{{{reference|}}}{{#if:{{{id|}}}|</span>}}{{{postscript|}}}}}|name={{{1|}}}|group={{{2|}}}}}<!--
-->{{#tag:ref|{{#if:{{{annotation|}}}||{{#if:{{{id|}}}|<span<!-- or <cite...> --> id="{{anchorencode:{{{id|}}}}}" class="citation<!-- wikicite cite-r -->">}}{{{reference|}}}{{#if:{{{id|}}}|</span><!-- or </cite> -->}}{{{postscript|}}}}}|name={{{1|}}}|group={{{2|}}}}}<!--
### Optional second call to append data to reference: ###
### Optional second call to append data to reference: ###
-->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|&#8204;{{#if:{{{id|}}}|<span id="{{anchorencode:{{{id|}}}}}">}}{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}{{#if:{{{id|}}}|</span>}}}}|quote|q=&#8204;{{#switch:{{{quote-page|}}}|=|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}: }}|{{{leadin|}}}{{{quote-page|}}}: }}<q {{#if:{{{id|}}}|id="{{anchorencode:{{{id|}}}}}"}}<!-- cite="#CITEREF..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|&quot;}}}}</q>|{{#if:{{{id|}}}|<span<!-- cite --> id="{{anchorencode:{{{id|}}}}}" class="citation<!-- wikicite r -->">}}{{{leadin|}}}{{{annotation|}}}{{#if:{{{id|}}}|</span>}}}}{{{postscript|}}}|follow={{{1|}}}|group={{{2|}}}}}}}<!--
-->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|&#8204;{{#if:{{{id|}}}|<span&#32;id="{{anchorencode:{{{id|}}}}}">}}{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}{{#if:{{{id|}}}|</span>}}}}|quote|q=&#8204;{{#switch:{{{quote-page|}}}|=|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}: }}|{{{leadin|}}}{{{quote-page|}}}:&#32;}}<q{{#if:{{{id|}}}|&#32;id="{{anchorencode:{{{id|}}}}}"}}{{#if:{{{quote-cite|}}}|&#32;cite="#{{anchorencode:{{{quote-cite|}}}}}"}}{{#if:{{{quote-language|}}}|&#32;lang="{{{quote-language|}}}"}}>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|&quot;}}}}</q>|{{#if:{{{id|}}}|<span<!-- or <cite...> -->&#32;id="{{anchorencode:{{{id|}}}}}"&#32;class="citation<!-- wikicite cite-r -->">}}{{{leadin|}}}{{{annotation|}}}{{#if:{{{id|}}}|</span><!-- or </cite> -->}}}}{{{postscript|}}}|follow={{{1|}}}|group={{{2|}}}}}}}<!--
### Superscript pages and tooltip for help, pages, quotes: ###
### Superscript pages and tooltip for help, pages, quotes: ###
-->{{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|nowrap}}"><!-- <nowiki> -->:<!-- </nowiki> --><span {{#if:{{{quote|}}}|style="border-bottom: 1px dashed;"}} title="Page&nbsp;/ location: {{#tag:nowiki|{{#invoke:String|replace|{{#if:{{{quote|}}}|{{#switch:{{{quote-page|}}}||p|page|pages={{{pages|}}}{{{page|}}}{{{location|}}}|{{{quote-page|}}}}}|{{{pages|}}}{{{page|}}}{{{location|}}}}}|"|&quot;}}}}{{#if:{{{quote|}}}|&#10;Quotation: &quot;{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|&quot;}}}}&quot;}}"><!-- {{#invoke:String2|hyphen2dash|1=-->{{{pages|}}}{{{page|}}}{{{location|}}}<!--}}--></span></sup>}}<!--
-->{{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|no}}wrap"><!-- <nowiki> -->:<!-- </nowiki> --><span&#32;{{#if:{{{quote|}}}|<!-- class="tooltip tooltip-dashed" -->style="border-bottom: 1px dashed;"&#32;}}title="Page&nbsp;/ location:&#32;{{#tag:nowiki|{{#invoke:String|replace|{{#if:{{{quote|}}}|{{#switch:{{{quote-page|}}}||p|page|pages={{{pages|}}}{{{page|}}}{{{location|}}}|{{{quote-page|}}}}}|{{{pages|}}}{{{page|}}}{{{location|}}}}}|"|&quot;}}}}{{#if:{{{quote|}}}|&#10;Quotation:&#32;&quot;{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|&quot;}}}}&quot;}}"><!-- {{#invoke:String2|hyphen2dash|1=-->{{{pages|}}}{{{page|}}}{{{location|}}}<!--}}--></span></sup>}}<!--
### Closing "support context" span:
### Closing "support context" span:
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|</span>}}}}<!--
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!-- -->{{#switch:{{{section|}}}||y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}|{{{section|}}}}}<!--{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|}}}{{{page|}}}{{{location|}}}}}}}}--><!---->}}}}|</span>}}}}<!--

Revision as of 06:26, 3 September 2021

Template documentation