Difference between revisions of "Template:MassText"

From ChoralWiki
Jump to navigation Jump to search
(this is also required for TextAutoList to work)
(this will hopefully fix the issue with extra bullets)
 
(7 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:
:''[[Requiem aeternam|Introitus]]'' &bull; ''[[Kyrie]]'' &bull; ''[[Sicut cervus|Tractus]]'' &bull; ''[[Dies irae|Sequentia]]'' &bull; ''[[Domine Jesu Christe|Offertorium]]'' &bull; ''[[Sanctus]]'' &amp; ''[[Benedictus qui venit|Benedictus]]'' &bull; ''[[Agnus Dei|Agnus&nbsp;Dei]]'' &bull; ''[[Lux aeterna|Communio]]'' {{#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: {{{4|}}} | &bull; ''[[{{{4}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{4}}}}}}}}} text page| ]]</span>}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }}
+
:{{#sub: {{#if: {{{I|{{{i|}}}}}} ||&bull; ''[[Requiem aeternam|Introitus]]''}} <!--
 +
-->{{#if: {{{K|{{{k|}}}}}} ||&bull; ''[[Kyrie]]''}} <!--
 +
-->{{#if: {{{T|{{{t|}}}}}} ||&bull; ''[[Sicut cervus|Tractus]]''}} <!--
 +
-->{{#if: {{{Seq|{{{seq|}}}}}} ||&bull; ''[[Dies irae|Sequentia]]''}} <!--
 +
-->{{#if: {{{O|{{{o|}}}}}} ||&bull; ''[[Domine Jesu Christe|Offertorium]]''}} <!--
 +
-->{{#if: {{{S|{{{s|}}}}}} ||&bull; ''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} || &amp; ''[[Benedictus qui venit|Benedictus]]''}}}} <!--
 +
-->{{#if: {{{A|{{{a|}}}}}} ||&bull; ''[[Agnus Dei|Agnus&nbsp;Dei]]''}} <!--
 +
-->{{#if: {{{C|{{{c|}}}}}} ||&bull; ''[[Lux aeterna|Communio]]''}} <!--
 +
-->{{#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: {{{4|}}} |&bull; ''[[{{{4}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{4}}}}}}}}} text page| ]]</span> <!--
 +
-->}} }} [[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:
:''[[Kyrie]]'' &bull; ''[[Gloria]]'' &bull; ''[[Credo]]'' &bull; ''[[Sanctus]]'' &amp; [[Benedictus qui venit|''Benedictus'']] &bull; ''[[Agnus Dei]]'' {{#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: {{{3|}}} | &bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span>}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }} }}</includeonly><noinclude>
+
:{{#sub: {{#if: {{{K|{{{k|}}}}}} ||&bull; ''[[Kyrie]]''}} <!--
 +
-->{{#if: {{{G|{{{g|}}}}}} ||&bull; ''[[Gloria]]''}} <!--
 +
-->{{#if: {{{C|{{{c|}}}}}} ||&bull; ''[[Credo]]''}} <!--
 +
-->{{#if: {{{S|{{{s|}}}}}} ||&bull; ''[[Sanctus]]'' {{#if: {{{B|{{{b|}}}}}} ||&amp; ''[[Benedictus qui venit|Benedictus]]''}} }} <!--
 +
-->{{#if: {{{A|{{{a|}}}}}} ||&bull; ''[[Agnus Dei]]''}} <!--
 +
-->{{#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: {{{3|}}} |&bull; ''[[{{{3}}}]]''<span style="display:none">[[{{{list|{{{cat|{{{3}}}}}}}}} text page| ]]</span> <!--
 +
-->}} }} [[Category:Works that link to text pages|{{{sort|{{LastNameFirst|{{CompFromWorkTitle}}}} }}}]] }} | 7 <!-- remove initial &bull; -->}}
 +
}}</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