Template:R/ref: Difference between revisions
From Vigyanwiki
Template>Matthiaspaul (fixed bug in display of tooltip for page numbers (only worked for pages, not for page and location)) |
Template>Matthiaspaul (Improved tooltip) |
||
Line 9: | Line 9: | ||
-->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|‌{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}}}|quote|q=‌{{#switch:{{{quote-page}}}|{{{quote-page}}}=|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}: }}|{{{leadin|}}}{{{quote-page|}}}: }}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|"}}}}</q>|{{{leadin|}}}{{{annotation|}}}}}{{{postscript|}}}|follow={{{1|}}}|group={{{2|}}}}}}}<!-- | -->{{#if:{{{annotation|}}}|{{#tag:ref|{{#switch:{{{annotation|}}}|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|‌{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}}}|quote|q=‌{{#switch:{{{quote-page}}}|{{{quote-page}}}=|p|page|pages={{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|{{{leadin|}}}{{{pages|}}}{{{page|}}}{{{location|}}}: }}|{{{leadin|}}}{{{quote-page|}}}: }}<q<!-- cite="#..." -->>{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|"}}}}</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:{{{pages|}}}{{{page|}}}{{{location|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|nowrap}}"><nowiki>:</nowiki><span {{#if:{{{quote|}}}|style="border-bottom: 1px dashed;" title=" | -->{{#if:{{{pages|}}}{{{page|}}}{{{location|}}}|<sup class="reference {{#switch:{{{wrap|}}}|f|forced=|nowrap}}"><nowiki>:</nowiki><span {{#if:{{{quote|}}}|style="border-bottom: 1px dashed;" title="{{#if:{{{quote-page|}}}|Page / location: {{#switch:{{{quote-page|}}}|p|page|pages={{{pages|}}}{{{page|}}}{{{location|}}}|{{{quote-page|}}}}}. }}Quotation: "{{#tag:nowiki|{{#invoke:String|replace|{{trim quotes|s={{{quote|}}}}}|"|"}}}}""|title="Page / location: {{#tag:nowiki|{{#invoke:String|replace|{{{pages|}}}{{{page|}}}{{{location|}}}|"|"}}}}"}}><!-- {{#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}}}|{{{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}}}|{{{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 16:17, 2 September 2021
Template documentation
[create]