Difference between revisions of "Template:MassText"

From ChoralWiki
Jump to navigation Jump to search
(new parameters allow for hidden movements)
(this will hopefully fix the issue with extra bullets)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1|}}}
 
<includeonly>{{#switch: {{{1|}}}
 
|Requiem=For information, refer to the '''''[[Requiem]]''''' page.  For texts and translations, see the individual pages:
 
|Requiem=For information, refer to the '''''[[Requiem]]''''' page.  For texts and translations, see the individual pages:
:{{#if: {{{I|{{{i|}}}}}} ||''[[Requiem aeternam|Introitus]]'' &bull; }}<!--
+
:{{#sub: {{#if: {{{I|{{{i|}}}}}} ||&bull; ''[[Requiem aeternam|Introitus]]''}} <!--
-->{{#if: {{{K|{{{k|}}}}}} ||''[[Kyrie]]'' &bull; }}<!--
+
-->{{#if: {{{K|{{{k|}}}}}} ||&bull; ''[[Kyrie]]''}} <!--
-->{{#if: {{{T|{{{t|}}}}}} ||''[[Sicut cervus|Tractus]]'' &bull; }}<!--
+
-->{{#if: {{{T|{{{t|}}}}}} ||&bull; ''[[Sicut cervus|Tractus]]''}} <!--
-->{{#if: {{{Seq|{{{seq|}}}}}} ||''[[Dies irae|Sequentia]]'' &bull; }}<!--
+
-->{{#if: {{{Seq|{{{seq|}}}}}} ||&bull; ''[[Dies irae|Sequentia]]''}} <!--
-->{{#if: {{{O|{{{o|}}}}}} ||''[[Domine Jesu Christe|Offertorium]]'' &bull; }}<!--
+
-->{{#if: {{{O|{{{o|}}}}}} ||&bull; ''[[Domine Jesu Christe|Offertorium]]''}} <!--
-->{{#if: {{{S|{{{s|}}}}}} ||''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} || &amp; ''[[Benedictus qui venit|Benedictus]]''}} &bull; }}<!--
+
-->{{#if: {{{S|{{{s|}}}}}} ||&bull; ''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} || &amp; ''[[Benedictus qui venit|Benedictus]]''}}}} <!--
-->{{#if: {{{A|{{{a|}}}}}} ||''[[Agnus Dei|Agnus&nbsp;Dei]]'' &bull; }}<!--
+
-->{{#if: {{{A|{{{a|}}}}}} ||&bull; ''[[Agnus Dei|Agnus&nbsp;Dei]]''}} <!--
-->{{#if: {{{C|{{{c|}}}}}} ||''[[Lux aeterna|Communio]]'' }}<!--
+
-->{{#if: {{{C|{{{c|}}}}}} ||&bull; ''[[Lux aeterna|Communio]]''}} <!--
-->{{#if: {{{2|}}} | &bull; ''[[{{{2}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{2}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{2|}}} |&bull; ''[[{{{2}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{2}}}}}}}}} text page| ]]</span> <!--
-->{{#if: {{{3|}}} | &bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{3|}}} |&bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span> <!--
-->{{#if: {{{4|}}} | &bull; ''[[{{{4}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{4}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{4|}}} |&bull; ''[[{{{4}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{4}}}}}}}}} text page| ]]</span> <!--
-->}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }}
+
-->}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }} | 7 <!-- remove initial &bull; -->}}
 
|For information, refer to the '''[[Mass]]''' page.  For texts and translations, see the individual pages:
 
|For information, refer to the '''[[Mass]]''' page.  For texts and translations, see the individual pages:
:{{#if: {{{K|{{{k|}}}}}} ||''[[Kyrie]]'' &bull; }}<!--
+
:{{#sub: {{#if: {{{K|{{{k|}}}}}} ||&bull; ''[[Kyrie]]''}} <!--
-->{{#if: {{{G|{{{g|}}}}}} ||''[[Gloria]]'' &bull; }}<!--
+
-->{{#if: {{{G|{{{g|}}}}}} ||&bull; ''[[Gloria]]''}} <!--
-->{{#if: {{{C|{{{c|}}}}}} ||''[[Credo]]'' &bull; }}<!--
+
-->{{#if: {{{C|{{{c|}}}}}} ||&bull; ''[[Credo]]''}} <!--
-->{{#if: {{{S|{{{s|}}}}}} ||''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} || &amp; ''[[Benedictus qui venit|Benedictus]]''}} &bull; }}<!--
+
-->{{#if: {{{S|{{{s|}}}}}} ||&bull; ''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} ||&amp; ''[[Benedictus qui venit|Benedictus]]''}} }} <!--
-->{{#if: {{{A|{{{a|}}}}}} ||''[[Agnus Dei]]'' }}<!--
+
-->{{#if: {{{A|{{{a|}}}}}} ||&bull; ''[[Agnus Dei]]''}} <!--
-->{{#if: {{{1|}}} | &bull; ''[[{{{1}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{1}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{1|}}} |&bull; ''[[{{{1}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{1}}}}}}}}} text page| ]]</span> <!--
-->{{#if: {{{2|}}} | &bull; ''[[{{{2}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{2}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{2|}}} |&bull; ''[[{{{2}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{2}}}}}}}}} text page| ]]</span> <!--
-->{{#if: {{{3|}}} | &bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span> <!--
+
-->{{#if: {{{3|}}} |&bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span> <!--
-->}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }}
+
-->}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }} | 7 <!-- remove initial &bull; -->}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{prot-temp}}
 
{{prot-temp}}
 
{{Doc|text=
 
{{Doc|text=
;Usage:
+
===Usage:===
 
*<tt><nowiki>{{MassText}}</nowiki></tt> displays:
 
*<tt><nowiki>{{MassText}}</nowiki></tt> displays:
 
{{MassText}}
 
{{MassText}}
 
*<tt><nowiki>{{MassText|Requiem}}</nowiki></tt> displays:
 
*<tt><nowiki>{{MassText|Requiem}}</nowiki></tt> displays:
 
{{MassText|Requiem}}
 
{{MassText|Requiem}}
 +
 +
===Hiding movements:===
 +
To hide specific movements from the list, use the following syntax:
 +
*<tt><nowiki>{{MassText|K=-|G=-|C=-|S=-|B=-|A=-}}</nowiki></tt> or
 +
*<tt><nowiki>{{MassText|K=no|G=no|C=no|S=no|B=no|A=no}}</nowiki></tt>
 +
 +
Similarly for the Requiem mass:
 +
*<tt><nowiki>{{MassText|Requiem|I=-|K=-|T=-|Seq=-|O=-|S=-|B=-|A=-|C=-}}</nowiki></tt>
 +
 +
Notice that {{para|S|-}} hides ''Sanctus'' '''and''' ''Benedictus'', while {{para|B|-}} only hides ''Benedictus''.
 +
 +
Examples:
 +
*<tt><nowiki>{{MassText|G=-|C=-}}</nowiki></tt> displays:
 +
{{MassText|G=-|C=-}}
 +
 +
*<tt><nowiki>{{MassText|Requiem|Seq=-|O=-|B=-}}</nowiki></tt>
 +
{{MassText|Requiem|Seq=-|O=-|B=-}}
 +
 
}}
 
}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:04, 26 September 2018

Documentation

Usage:

  • {{MassText}} displays:

For information, refer to the Mass page. For texts and translations, see the individual pages:

KyrieGloriaCredoSanctus & BenedictusAgnus Dei
  • {{MassText|Requiem}} displays:

For information, refer to the Requiem page. For texts and translations, see the individual pages:

IntroitusKyrieTractusSequentiaOffertoriumSanctus & BenedictusAgnus DeiCommunio

Hiding movements:

To hide specific movements from the list, use the following syntax:

  • {{MassText|K=-|G=-|C=-|S=-|B=-|A=-}} or
  • {{MassText|K=no|G=no|C=no|S=no|B=no|A=no}}

Similarly for the Requiem mass:

  • {{MassText|Requiem|I=-|K=-|T=-|Seq=-|O=-|S=-|B=-|A=-|C=-}}

Notice that |S=- hides Sanctus and Benedictus, while |B=- only hides Benedictus.

Examples:

  • {{MassText|G=-|C=-}} displays:

For information, refer to the Mass page. For texts and translations, see the individual pages:

KyrieSanctus & BenedictusAgnus Dei
  • {{MassText|Requiem|Seq=-|O=-|B=-}}

For information, refer to the Requiem page. For texts and translations, see the individual pages:

IntroitusKyrieTractusSanctusAgnus DeiCommunio