Template:R: Difference between revisions
From Vigyanwiki
Template>EEng (Undid revision 1042740535 by EEng (talk) Well, User:Matthiaspaul, that didn't fix it, but there's still something wrong. I fear this code may be approaching the complexity tipping point) |
Template>Matthiaspaul (updated from sandbox, thereby now fully supporting singular/plural parameters and style parameter) |
||
Line 1: | Line 1: | ||
<includeonly>{{r/ref|{{{name1|{{{name|{{{n1|{{{n|{{{1|}}}}}}}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}| | <includeonly>{{r/ref|{{{name1|{{{name|{{{n1|{{{n|{{{1|}}}}}}}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction1|{{{direction|{{{dir1|{{{dir|}}}}}}}}}}}} | ||
|page{{#if:{{{page1|{{{page|{{{p1|{{{p|}}}}}}}}}}}}||NULL}}={{{page1|{{{page|{{{p1|{{{p|}}}}}}}}}}}} | |||
|pages{{#if:{{{pages1|{{{pages|{{{pp1|{{{pp|}}}}}}}}}}}}||NULL}}={{{pages1|{{{pages|{{{pp1|{{{pp|}}}}}}}}}}}} | |||
|location{{#if:{{{at1|{{{at|{{{loc1|{{{loc|}}}}}}}}}}}}||NULL}}={{{at1|{{{at|{{{loc1|{{{loc|}}}}}}}}}}}} | |||
- | |quote-page{{#if:{{{quotation-page1|{{{quotation-page|{{{quote-page1|{{{quote-page|{{{qp1|{{{qp|}}}}}}}}}}}}}}}}}}||NULL}}={{{quotation-page1|{{{quotation-page|{{{quote-page1|{{{quote-page|{{{qp1|{{{qp|}}}}}}}}}}}}}}}}}} | ||
|quote-pages{{#if:{{{quotation-pages1|{{{quotation-pages|{{{quote-pages1|{{{quote-pages|{{{qpp1|{{{qpp|}}}}}}}}}}}}}}}}}}||NULL}}={{{quotation-pages1|{{{quotation-pages|{{{quote-pages1|{{{quote-pages|{{{qpp1|{{{qpp|}}}}}}}}}}}}}}}}}} | |||
|quote={{{quote1|{{{quote|{{{q1|{{{q|}}}}}}}}}}}} | |||
|quote-language={{{quote-language1|{{{quote-language|{{{quote-lang1|{{{quote-lang|{{{ql1|{{{ql|}}}}}}}}}}}}}}}}}} | |||
|trans-quote={{{trans-quote1|{{{trans-quote|{{{tq1|{{{tq|}}}}}}}}}}}} | |||
|quote-cite={{{quote-cite1|{{{quote-cite|}}}}}}|reference={{{reference1|{{{references|{{{reference|{{{notes|{{{note|{{{content|{{{text|{{{refn1|{{{refn|{{{refs|{{{r1|{{{r|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}|annotation={{{annotation1|{{{annotation|{{{annot1|{{{annot|{{{a1|{{{a|}}}}}}}}}}}}}}}}}}|leadin={{{leadin|}}}|postscript={{{postscript|{{{ps|}}}}}}|section={{{section1|{{{section|{{{sec1|{{{sec|{{{s1|{{{s|}}}}}}}}}}}}}}}}}}|needed-reason={{{needed-reason1|{{{needed-reason|{{{needed1|{{{needed|{{{reason|}}}}}}}}}}}}}}}|needed-date={{{needed-date|{{{date|}}}}}}|wrap={{{wrap|}}}|no-pp={{{no-pp|{{{nopp|}}}}}}|style={{{style|}}}|content-id={{{ref1|{{{ref|{{{id1|{{{id|}}}}}}}}}}}}|link-id={{{link-id1|{{{link-id|}}}}}}|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name2|{{{n2|{{{2|}}}}}}}}}|{{r/ref|{{{name2|{{{n2|{{{2|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction2|{{{dir2|}}}}}} | |||
|page{{#if:{{{page2|{{{p2|}}}}}}||NULL}}={{{page2|{{{p2|}}}}}} | |||
|pages{{#if:{{{pages2|{{{pp2|}}}}}}||NULL}}={{{pages2|{{{pp2|}}}}}} | |||
|location{{#if:{{{at2|{{{loc2|}}}}}}||NULL}}={{{at2|{{{loc2|}}}}}} | |||
|quote-page{{#if:{{{quotation-page2|{{{quote-page2|{{{qp2|}}}}}}}}}||NULL}}={{{quotation-page2|{{{quote-page2|{{{qp2|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages2|{{{quote-pages2|{{{qpp2|}}}}}}}}}||NULL}}={{{quotation-pages2|{{{quote-pages2|{{{qpp2|}}}}}}}}} | |||
|quote={{{quote2|{{{q2|}}}}}} | |||
|quote-language={{{quote-language2|{{{quote-lang2|{{{ql2|}}}}}}}}} | |||
|trans-quote={{{trans-quote2|{{{tq2|}}}}}} | |||
|quote-cite={{{quote-cite2|}}} | |||
|reference={{{reference2|{{{refn2|{{{r2|}}}}}}}}} | |||
|annotation={{{annotation2|{{{annot2|{{{a2|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section2||{{{sec2|{{{s2|}}}}}}}}} | |||
|needed-reason={{{needed-reason2|{{{needed2|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref2|{{{id2|}}}}}} | |||
|link-id={{{link-id2|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name3|{{{n3|{{{3|}}}}}}}}}|{{r/ref|{{{name3|{{{n3|{{{3|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction3|{{{dir3|}}}}}} | |||
|page{{#if:{{{page3|{{{p3|}}}}}}||NULL}}={{{page3|{{{p3|}}}}}} | |||
|pages{{#if:{{{pages3|{{{pp3|}}}}}}||NULL}}={{{pages3|{{{pp3|}}}}}} | |||
|location{{#if:{{{at3|{{{loc3|}}}}}}||NULL}}={{{at3|{{{loc3|}}}}}} | |||
|quote-page{{#if:{{{quotation-page3|{{{quote-page3|{{{qp3|}}}}}}}}}||NULL}}={{{quotation-page3|{{{quote-page3|{{{qp3|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages3|{{{quote-pages3|{{{qpp3|}}}}}}}}}||NULL}}={{{quotation-pages3|{{{quote-pages3|{{{qpp3|}}}}}}}}} | |||
|quote={{{quote3|{{{q3|}}}}}} | |||
|quote-language={{{quote-language3|{{{quote-lang3|{{{ql3|}}}}}}}}} | |||
|trans-quote={{{trans-quote3|{{{tq3|}}}}}} | |||
|quote-cite={{{quote-cite3|}}} | |||
|reference={{{reference3|{{{refn3|{{{r3|}}}}}}}}} | |||
|annotation={{{annotation3|{{{annot3|{{{a3|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section3||{{{sec3|{{{s3|}}}}}}}}} | |||
|needed-reason={{{needed-reason3|{{{needed3|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref3|{{{id3|}}}}}} | |||
|link-id={{{link-id3|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name4|{{{n4|{{{4|}}}}}}}}}|{{r/ref|{{{name4|{{{n4|{{{4|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction4|{{{dir4|}}}}}} | |||
|page{{#if:{{{page4|{{{p4|}}}}}}||NULL}}={{{page4|{{{p4|}}}}}} | |||
|pages{{#if:{{{pages4|{{{pp4|}}}}}}||NULL}}={{{pages4|{{{pp4|}}}}}} | |||
|location{{#if:{{{at4|{{{loc4|}}}}}}||NULL}}={{{at4|{{{loc4|}}}}}} | |||
|quote-page{{#if:{{{quotation-page4|{{{quote-page4|{{{qp4|}}}}}}}}}||NULL}}={{{quotation-page4|{{{quote-page4|{{{qp4|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages4|{{{quote-pages4|{{{qpp4|}}}}}}}}}||NULL}}={{{quotation-pages4|{{{quote-pages4|{{{qpp4|}}}}}}}}} | |||
|quote={{{quote4|{{{q4|}}}}}} | |||
|quote-language={{{quote-language4|{{{quote-lang4|{{{ql4|}}}}}}}}} | |||
|trans-quote={{{trans-quote4|{{{tq4|}}}}}} | |||
|quote-cite={{{quote-cite4|}}} | |||
|reference={{{reference4|{{{refn4|{{{r4|}}}}}}}}} | |||
|annotation={{{annotation4|{{{annot4|{{{a4|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section4||{{{sec4|{{{s4|}}}}}}}}} | |||
|needed-reason={{{needed-reason4|{{{needed4|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref4|{{{id4|}}}}}} | |||
|link-id={{{link-id4|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name5|{{{n5|{{{5|}}}}}}}}}|{{r/ref|{{{name5|{{{n5|{{{5|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction5|{{{dir5|}}}}}} | |||
|page{{#if:{{{page5|{{{p5|}}}}}}||NULL}}={{{page5|{{{p5|}}}}}} | |||
|pages{{#if:{{{pages5|{{{pp5|}}}}}}||NULL}}={{{pages5|{{{pp5|}}}}}} | |||
|location{{#if:{{{at5|{{{loc5|}}}}}}||NULL}}={{{at5|{{{loc5|}}}}}} | |||
|quote-page{{#if:{{{quotation-page5|{{{quote-page5|{{{qp5|}}}}}}}}}||NULL}}={{{quotation-page5|{{{quote-page5|{{{qp5|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages5|{{{quote-pages5|{{{qpp5|}}}}}}}}}||NULL}}={{{quotation-pages5|{{{quote-pages5|{{{qpp5|}}}}}}}}} | |||
|quote={{{quote5|{{{q5|}}}}}} | |||
|quote-language={{{quote-language5|{{{quote-lang5|{{{ql5|}}}}}}}}} | |||
|trans-quote={{{trans-quote5|{{{tq5|}}}}}} | |||
|quote-cite={{{quote-cite5|}}} | |||
|reference={{{reference5|{{{refn5|{{{r5|}}}}}}}}} | |||
|annotation={{{annotation5|{{{annot5|{{{a5|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section5||{{{sec5|{{{s5|}}}}}}}}} | |||
|needed-reason={{{needed-reason5|{{{needed5|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref5|{{{id5|}}}}}} | |||
|link-id={{{link-id5|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name6|{{{n6|{{{6|}}}}}}}}}|{{r/ref|{{{name6|{{{n6|{{{6|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction6|{{{dir6|}}}}}} | |||
|page{{#if:{{{page6|{{{p6|}}}}}}||NULL}}={{{page6|{{{p6|}}}}}} | |||
|pages{{#if:{{{pages6|{{{pp6|}}}}}}||NULL}}={{{pages6|{{{pp6|}}}}}} | |||
|location{{#if:{{{at6|{{{loc6|}}}}}}||NULL}}={{{at6|{{{loc6|}}}}}} | |||
|quote-page{{#if:{{{quotation-page6|{{{quote-page6|{{{qp6|}}}}}}}}}||NULL}}={{{quotation-page6|{{{quote-page6|{{{qp6|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages6|{{{quote-pages6|{{{qpp6|}}}}}}}}}||NULL}}={{{quotation-pages6|{{{quote-pages6|{{{qpp6|}}}}}}}}} | |||
|quote={{{quote6|{{{q6|}}}}}} | |||
|quote-language={{{quote-language6|{{{quote-lang6|{{{ql6|}}}}}}}}} | |||
|trans-quote={{{trans-quote6|{{{tq6|}}}}}} | |||
|quote-cite={{{quote-cite6|}}} | |||
|reference={{{reference6|{{{refn6|{{{r6|}}}}}}}}} | |||
|annotation={{{annotation6|{{{annot6|{{{a6|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section6||{{{sec6|{{{s6|}}}}}}}}} | |||
|needed-reason={{{needed-reason6|{{{needed6|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref6|{{{id6|}}}}}} | |||
|link-id={{{link-id6|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name7|{{{n7|{{{7|}}}}}}}}}|{{r/ref|{{{name7|{{{n7|{{{7|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction7|{{{dir7|}}}}}} | |||
|page{{#if:{{{page7|{{{p7|}}}}}}||NULL}}={{{page7|{{{p7|}}}}}} | |||
|pages{{#if:{{{pages7|{{{pp7|}}}}}}||NULL}}={{{pages7|{{{pp7|}}}}}} | |||
|location{{#if:{{{at7|{{{loc7|}}}}}}||NULL}}={{{at7|{{{loc7|}}}}}} | |||
|quote-page{{#if:{{{quotation-page7|{{{quote-page7|{{{qp7|}}}}}}}}}||NULL}}={{{quotation-page7|{{{quote-page7|{{{qp7|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages7|{{{quote-pages7|{{{qpp7|}}}}}}}}}||NULL}}={{{quotation-pages7|{{{quote-pages7|{{{qpp7|}}}}}}}}} | |||
|quote={{{quote7|{{{q7|}}}}}} | |||
|quote-language={{{quote-language7|{{{quote-lang7|{{{ql7|}}}}}}}}} | |||
|trans-quote={{{trans-quote7|{{{tq7|}}}}}} | |||
|quote-cite={{{quote-cite7|}}} | |||
|reference={{{reference7|{{{refn7|{{{r7|}}}}}}}}} | |||
|annotation={{{annotation7|{{{annot7|{{{a7|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section7||{{{sec7|{{{s7|}}}}}}}}} | |||
|needed-reason={{{needed-reason7|{{{needed7|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref7|{{{id7|}}}}}} | |||
|link-id={{{link-id7|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name8|{{{n8|{{{8|}}}}}}}}}|{{r/ref|{{{name8|{{{n8|{{{8|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction8|{{{dir8|}}}}}} | |||
|page{{#if:{{{page8|{{{p8|}}}}}}||NULL}}={{{page8|{{{p8|}}}}}} | |||
|pages{{#if:{{{pages8|{{{pp8|}}}}}}||NULL}}={{{pages8|{{{pp8|}}}}}} | |||
|location{{#if:{{{at8|{{{loc8|}}}}}}||NULL}}={{{at8|{{{loc8|}}}}}} | |||
|quote-page{{#if:{{{quotation-page8|{{{quote-page8|{{{qp8|}}}}}}}}}||NULL}}={{{quotation-page8|{{{quote-page8|{{{qp8|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages8|{{{quote-pages8|{{{qpp8|}}}}}}}}}||NULL}}={{{quotation-pages8|{{{quote-pages8|{{{qpp8|}}}}}}}}} | |||
|quote={{{quote8|{{{q8|}}}}}} | |||
|quote-language={{{quote-language8|{{{quote-lang8|{{{ql8|}}}}}}}}} | |||
|trans-quote={{{trans-quote8|{{{tq8|}}}}}} | |||
|quote-cite={{{quote-cite8|}}} | |||
|reference={{{reference8|{{{refn8|{{{r8|}}}}}}}}} | |||
|annotation={{{annotation8|{{{annot8|{{{a8|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section8||{{{sec8|{{{s8|}}}}}}}}} | |||
|needed-reason={{{needed-reason8|{{{needed8|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref8|{{{id8|}}}}}} | |||
|link-id={{{link-id8|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name9|{{{n9|{{{9|}}}}}}}}}|{{r/ref|{{{name9|{{{n9|{{{9|}}}}}}}}}|{{{group|{{{grp|{{{g|}}}}}}}}}|direction={{{direction9|{{{dir9|}}}}}} | |||
|page{{#if:{{{page9|{{{p9|}}}}}}||NULL}}={{{page9|{{{p9|}}}}}} | |||
|pages{{#if:{{{pages9|{{{pp9|}}}}}}||NULL}}={{{pages9|{{{pp9|}}}}}} | |||
|location{{#if:{{{at9|{{{loc9|}}}}}}||NULL}}={{{at9|{{{loc9|}}}}}} | |||
|quote-page{{#if:{{{quotation-page9|{{{quote-page9|{{{qp9|}}}}}}}}}||NULL}}={{{quotation-page9|{{{quote-page9|{{{qp9|}}}}}}}}} | |||
|quote-pages{{#if:{{{quotation-pages9|{{{quote-pages9|{{{qpp9|}}}}}}}}}||NULL}}={{{quotation-pages9|{{{quote-pages9|{{{qpp9|}}}}}}}}} | |||
|quote={{{quote9|{{{q9|}}}}}} | |||
|quote-language={{{quote-language9|{{{quote-lang9|{{{ql9|}}}}}}}}} | |||
|trans-quote={{{trans-quote9|{{{tq9|}}}}}} | |||
|quote-cite={{{quote-cite9|}}} | |||
|reference={{{reference9|{{{refn9|{{{r9|}}}}}}}}} | |||
|annotation={{{annotation9|{{{annot9|{{{a9|}}}}}}}}} | |||
|leadin={{{leadin|}}} | |||
|postscript={{{postscript|{{{ps|}}}}}} | |||
|section={{{section9||{{{sec9|{{{s9|}}}}}}}}} | |||
|needed-reason={{{needed-reason9|{{{needed9|}}}}}} | |||
|needed-date={{{needed-date|{{{date|}}}}}} | |||
|wrap={{{wrap|}}} | |||
|no-pp={{{no-pp|{{{nopp|}}}}}} | |||
|style={{{style|}}} | |||
|content-id={{{ref9|{{{id9|}}}}}} | |||
|link-id={{{link-id9|}}} | |||
|debug={{{debug|}}}}}<!-- | |||
-->{{#if:{{{name10|{{{n10|{{{10|}}}}}}}}}|<sup class="error" style="font-size:0.9em; line-height:0;">The template only supports up to 9 references. ([[Template:R|edit it]]!)</sup> <!-- | -->{{#if:{{{name10|{{{n10|{{{10|}}}}}}}}}|<sup class="error" style="font-size:0.9em; line-height:0;">The template only supports up to 9 references. ([[Template:R|edit it]]!)</sup> <!-- | ||
-->}}}}}}}}}}}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> | -->}}}}}}}}}}}}}}}}}}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 00:21, 11 September 2021
Template documentation
[create]