Template:R/ref: Difference between revisions

From Vigyanwiki
< Template:R
Template>Matthiaspaul
(updated from sandbox, optimized logic, allow for combinations of singular/plural page and location to be given, added support for quote-location)
Template>Matthiaspaul
(avoid line break with new superscript code)
Line 10: Line 10:
### Superscript pages and tooltip for help, pages, quotes: ###
### Superscript pages and tooltip for help, pages, quotes: ###
-->{{r/superscript
-->{{r/superscript
|prefix={{#switch:{{{style|}}}|AMA|Ama|ama=(|:&hairsp;}}
|prefix={{#switch:{{{style|}}}|AMA|Ama|ama=(|&#58;&hairsp;}}
|suffix={{#switch:{{{style|}}}|AMA|Ama|ama=)|&hairsp;}}
|suffix={{#switch:{{{style|}}}|AMA|Ama|ama=)|&hairsp;}}
|pp={{#switch:{{{style|}}}|AMA|Ama|ama={{#if:{{{no-pp|}}}||{{#if:{{{pages|}}}|pp|{{#if:{{{page|}}}|p}}}}}}}}<!-- p/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:{{{pages|}}}|pp|{{#if:{{{page|}}}|p}}}}}}}}<!-- p/pp is only used in superscript label, therefore it does not contain any qp params -->

Revision as of 02:45, 21 September 2021

Template documentation