Template:R/ref: Difference between revisions
From Vigyanwiki
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=(| | |prefix={{#switch:{{{style|}}}|AMA|Ama|ama=(|: }} | ||
|suffix={{#switch:{{{style|}}}|AMA|Ama|ama=)| }} | |suffix={{#switch:{{{style|}}}|AMA|Ama|ama=)| }} | ||
|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
[create]