Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(use thin space in page lists)
Template>Matthiaspaul
(added sup-where support for improved visual rendering of lists in superscript)
Line 14: Line 14:
|pp={{#switch:{{{style|}}}|AMA|Ama|ama={{#if:{{{no-pp|}}}||{{#if:{{{page|}}}|p|{{#if:{{{pages|}}}|pp}}}}}}}}<!-- pp is only used in superscript label, therefore it does not contain any qp params -->
|pp={{#switch:{{{style|}}}|AMA|Ama|ama={{#if:{{{no-pp|}}}||{{#if:{{{page|}}}|p|{{#if:{{{pages|}}}|pp}}}}}}}}<!-- pp is only used in superscript label, therefore it does not contain any qp params -->
|leadin={{#switch:{{{quote-page|{{{quote-pages|}}}}}}|pp|pages|p|page={{#if:{{{page|}}}|Page|{{#if:{{{pages|}}}|Pages|{{#if:{{{location|}}}|Location|Page&nbsp;/ location}}}}}}|{{#if:{{{quote-page|}}}|Page|{{#if:{{{quote-pages|}}}|Pages|{{#if:{{{location|}}}|Location|{{#if:{{{page|}}}|Page|{{#if:{{{pages|}}}|Pages|{{#if:{{{location|}}}|Location|Page&nbsp;/ location}}}}}}}}}}}}}}<!-- leadin is only used in tooltip -->
|leadin={{#switch:{{{quote-page|{{{quote-pages|}}}}}}|pp|pages|p|page={{#if:{{{page|}}}|Page|{{#if:{{{pages|}}}|Pages|{{#if:{{{location|}}}|Location|Page&nbsp;/ location}}}}}}|{{#if:{{{quote-page|}}}|Page|{{#if:{{{quote-pages|}}}|Pages|{{#if:{{{location|}}}|Location|{{#if:{{{page|}}}|Page|{{#if:{{{pages|}}}|Pages|{{#if:{{{location|}}}|Location|Page&nbsp;/ location}}}}}}}}}}}}}}<!-- leadin is only used in tooltip -->
|where={{#if:{{{page|{{{location|}}}}}}|{{{page|{{{location|}}}}}}|{{#invoke:String2|hyphen2dash|{{{pages|}}}|&thinsp;}}}}<!-- where must not include qp params -->
|where={{#if:{{{page|{{{location|}}}}}}|{{{page|{{{location|}}}}}}|{{#invoke:String2|hyphen2dash|{{{pages|}}}}}}}<!-- where must not include qp params -->
|sup-where={{#if:{{{page|{{{location|}}}}}}|{{{page|{{{location|}}}}}}|{{#invoke:String2|hyphen2dash|{{{pages|}}}|&hairsp;}}}}<!-- sup-where same as where, but using hair-space for list spacing for improved visual rendering of superscript -->
|quote-where={{#switch:{{{quote-page|{{{quote-pages|}}}}}}|pp|pages|p|page={{#if:{{{page|{{{location|}}}}}}|{{{page|{{{location|}}}}}}|{{#invoke:String2|hyphen2dash|{{{pages|}}}}}}}|{{#if:{{{quote-page|}}}|{{{quote-page|}}}|{{#invoke:String2|hyphen2dash|{{{quote-pages|}}}}}}}}}<!-- quote-where must not contain normal in-source-location params -->
|quote-where={{#switch:{{{quote-page|{{{quote-pages|}}}}}}|pp|pages|p|page={{#if:{{{page|{{{location|}}}}}}|{{{page|{{{location|}}}}}}|{{#invoke:String2|hyphen2dash|{{{pages|}}}}}}}|{{#if:{{{quote-page|}}}|{{{quote-page|}}}|{{#invoke:String2|hyphen2dash|{{{quote-pages|}}}}}}}}}<!-- quote-where must not contain normal in-source-location params -->
|quote={{{quote|}}}
|quote={{{quote|}}}

Revision as of 00:55, 14 September 2021

Template documentation