Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(Undid revision 1041842767 by Matthiaspaul (talk) restore)
Template>Matthiaspaul
(removed hyphen2dash for now (trashes HTML entities in lists, also converts hyphens encoded through {{ hyphen }}))
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
### Opening "support context" span: ###
### Opening "support context" span: ###
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!--{{#switch:{{{section}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}<!---->}}}}|<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}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}<!---->}}}}|"|&quot;}}}}&quot;">}}}}<!--
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!--{{#switch:{{{section}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}}}}<!---->}}}}|<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}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}}}}<!---->}}}}|"|&quot;}}}}&quot;">}}}}<!--
### First call to make reference link: ###
### First call to make reference link: ###
-->{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}{{{postscript|}}}}}|name={{{1|}}}|group={{{2|}}}}}<!--
-->{{#tag:ref|{{#if:{{{annotation|}}}||{{{reference|}}}{{{postscript|}}}}}|name={{{1|}}}|group={{{2|}}}}}<!--
### Optional second call to append data: ###
### Optional second call to append data: ###
-->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page={{#if:{{{3|}}}|&#8204;{{{leadin|}}}{{{3|}}}}}|quote|q=&#8204;{{#switch:{{{quote-page}}}|{{{quote-page}}}=|p|page={{#if:{{{3|}}}|{{{leadin|}}}{{{3|}}}:&#32;}}|{{{leadin|}}}{{{quote-page|}}}:&#32;}}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}</q>|{{{leadin|}}}{{{annotation|}}}}}{{{postscript|}}}|follow={{{1|}}}|group={{{2|}}}}}}}<!--
-->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page={{#if:{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}|&#8204;{{{leadin|}}}{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}|quote|q=&#8204;{{#switch:{{{quote-page}}}|{{{quote-page}}}=|p|page={{#if:{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}|{{{leadin|}}}{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}:&#32;}}|{{{leadin|}}}{{{quote-page|}}}:&#32;}}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|{{{4|}}}}}}}}|"|&quot;}}}}</q>|{{{leadin|}}}{{{annotation|}}}}}{{{postscript|}}}|follow={{{1|}}}|group={{{2|}}}}}}}<!--
### Superscript pages and tooltip for help, pages, quotes: ###
### Superscript pages and tooltip for help, pages, quotes: ###
-->{{#if:{{{3|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|nowrap}}"><nowiki>:</nowiki><span {{#if:{{{4|}}}|style="border-bottom: 1px dashed;" title="Quotation{{#if:{{{quote-page|}}}|&#32;from page&nbsp;/ location&#32;{{#switch:{{{quote-page|}}}|p|page={{{3|}}}|{{{quote-page|}}}}}}}:&#32;&quot;{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{4|}}}}}|"|&quot;}}}}&quot;"|title="Page&nbsp;/ location:&#32;{{#tag:nowiki|{{#invoke:String|replace|{{{3|}}}|"|&quot;}}}}"}}>{{#invoke:String2|hyphen2dash|1={{{3|}}}}}</span></sup>}}<!--
-->{{#if:{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|nowrap}}"><nowiki>:</nowiki><span {{#if:{{{quote|{{{4|}}}}}}|style="border-bottom: 1px dashed;" title="Quotation{{#if:{{{quote-page|}}}|&#32;from page&nbsp;/ location&#32;{{#switch:{{{quote-page|}}}|p|page={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}|{{{quote-page|}}}}}}}:&#32;&quot;{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|{{{4|}}}}}}}}|"|&quot;}}}}&quot;"|title="Page&nbsp;/ location:&#32;{{#tag:nowiki|{{#invoke:String|replace|{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}|"|&quot;}}}}"}}><!-- {{#invoke:String2|hyphen2dash|1=-->{{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}<!--}}--></span></sup>}}<!--
### Closing "support context" span:
### Closing "support context" span:
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!--{{#switch:{{{section}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{3|}}}}}}}}<!---->}}}}|</span>}}}}<!--
-->{{#if:{{{section|}}}|{{#if:{{#lst:{{FULLPAGENAME}}|{{anchorencode:<!--{{#switch:{{{section}}}|{{{section}}}|y|yes=cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}|{{{section|}}}}}-->{{{section|cite_sect-{{trim quotes|s={{{1|}}}}}-{{trim quotes|s={{{2|}}}}}-{{trim quotes|s={{{pages|{{{page|{{{location|{{{3|}}}}}}}}}}}}}}}}}<!---->}}}}|</span>}}}}<!--
### Page needed functionality: ###
### Page needed functionality: ###
-->{{#if:{{{needed-reason|}}}|{{page needed|date={{{needed-date|}}}|reason={{#switch:{{{needed-reason|}}}|y|yes=No reason given|{{{needed-reason|}}}}}}}}}<!--
-->{{#if:{{{needed-reason|}}}|{{page needed|date={{{needed-date|}}}|reason={{#switch:{{{needed-reason|}}}|y|yes=No reason given|{{{needed-reason|}}}}}}}}}<!--

Revision as of 02:54, 2 September 2021

Template documentation