Template:Psalm legend: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+0|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+0}}|{{#expr:1+0}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+0|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+0}}|{{#expr:1+0}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<21<!--
-->|{{#ifexpr:{{{1}}}<21<!--
-->|{{#ifexpr:{{{1}}}={{{2}}}-30|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{2}}}-30}}|{{#expr:{{{2}}}-30}}]]}}}}<!--
-->|{{#ifexpr:{{{1}}}={{{2}}}-30|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{2}}}-30}}|{{#expr:{{{2}}}-30}}]]}}<!--
-->|{{#ifexpr:{{{1}}}={{{3}}}+10|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{3}}}+10}}|{{#expr:{{{3}}}+10}}]]}}}}}}&nbsp;<!--
-->|{{#ifexpr:{{{1}}}={{{3}}}+10|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{3}}}+10}}|{{#expr:{{{3}}}+10}}]]}}}}}}}}&nbsp;<!--
-->{{#ifexpr:{{{1}}}>140|{{#ifexpr:{{{1}}}=130+1|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:130+1}}|{{#expr:130+1}}]]}}<!--
-->{{#ifexpr:{{{1}}}>140|{{#ifexpr:{{{1}}}=130+1|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:130+1}}|{{#expr:130+1}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+1|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+1}}|{{#expr:1+1}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+1|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+1}}|{{#expr:1+1}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<21<!--
-->|{{#ifexpr:{{{1}}}<21<!--
-->|{{#ifexpr:{{{1}}}={{{2}}}-29|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{2}}}-29}}|{{#expr:{{{2}}}-29}}]]}}}}<!--
-->|{{#ifexpr:{{{1}}}={{{2}}}-29|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{2}}}-29}}|{{#expr:{{{2}}}-29}}]]}}<!--
-->|{{#ifexpr:{{{1}}}={{{3}}}+11|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{3}}}+11}}|{{#expr:{{{3}}}+11}}]]}}}}}}&nbsp;<!--
-->|{{#ifexpr:{{{1}}}={{{3}}}+11|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:{{{3}}}+11}}|{{#expr:{{{3}}}+11}}]]}}}}}}}}&nbsp;<!--
-->{{#ifexpr:{{{1}}}>140|{{#ifexpr:{{{1}}}=130+2|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:130+2}}|{{#expr:130+2}}]]}}<!--
-->{{#ifexpr:{{{1}}}>140|{{#ifexpr:{{{1}}}=130+2|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:130+2}}|{{#expr:130+2}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+2|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+2}}|{{#expr:1+2}}]]}}<!--
-->|{{#ifexpr:{{{1}}}<12|{{#ifexpr:{{{1}}}=1+2|<u>[[Psalm {{{1}}}|{{{1}}}]]</u>|[[Psalm {{#expr:1+2}}|{{#expr:1+2}}]]}}<!--
Line 111: Line 111:
</includeonly><noinclude>
</includeonly><noinclude>
==Explanation==
==Explanation==
This template shows links to the twenty-one Psalms centered around the Psalm page on which it appears; or the first or last twenty-one, if the Psalm is near the beginning or end.
This template shows links to the twenty-one Psalms centered around the [[Psalm]] page on which it appears; or the first or last twenty-one, if the Psalm is near the beginning or end.


'''Syntax:''' <tt><nowiki>{{Psalm legend|N1|N2|N3}}</nowiki></tt>, where
'''Syntax:''' <tt><nowiki>{{Psalm legend|N1|N2|N3}}</nowiki></tt>, where

Latest revision as of 00:39, 20 March 2017

Explanation

This template shows links to the twenty-one Psalms centered around the Psalm page on which it appears; or the first or last twenty-one, if the Psalm is near the beginning or end.

Syntax: {{Psalm legend|N1|N2|N3}}, where

N1 = This psalm number
N2 = The smaller of (N1+20,150)
N3 = The larger of (N1-20,1)

Examples:

 P S A L M S111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
  • {{Psalm legend|121|141|101}} – for Psalm 121


 P S A L M S1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  • {{Psalm legend|3|23|1}} – for Psalm 3


 P S A L M S130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
  • {{Psalm legend|142|150|122}} – for Psalm 142