Template:R/ref: Difference between revisions
From All Skies Encyclopaedia
imported>Matthiaspaul updated from sandbox, optimized logic, allow for combinations of singular/plural page and location to be given, added support for quote-location |
imported>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 --> | ||






