Template:EdCha: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|1|{{#switch:{{{2|}}}|arr=Arranged by {{{3|}}}[[Category:{{{3|}}} arrangements]]|inst=With {{{3|}}}|lan=In {{{3|}}}[[Category:Works in {{{3|}}}]]|lyr=With lyrics by {{{3|}}}[[Category:Works with {{{3|}}} texts]]|text=With text at page [[{{{3|}}}]]|vo=For {{{3|}}} voices[[Category:{{{3|}}}-part choral music]]|voic=For {{{3|}}} voices[[Category:{{{3|}}}]]}}|{{#switch:{{{2|}}}|arr=, arranged by {{{3|}}}[[Category:{{{3|}}} arrangements]]|inst=, with {{{3|}}}|lan=, in {{{3|}}}[[Category:Works in {{{3|}}}]]|lyr=, lyrics by {{{3|}}}[[Category:Works with {{{3|}}} texts]]|text=, with text at page [[{{{3|}}}]]|vo=, for {{{3|}}} voices[[Category:{{{3|}}}-part choral music]]|voic=, for {{{3|}}} voices[[Category:{{{3|}}}]]}}}}</includeonly><noinclude>{{Doc|1=
<includeonly>{{#ifeq:{{{1|}}}|1|{{#switch:{{{2|}}}|arr=Arranged by {{{3|}}}[[Category:{{{3|}}} arrangements]]|inst=With {{{3|}}}|lan=In {{{3|}}}[[Category:Works in {{{3|}}}]]|lyr=With lyrics by {{{3|}}}[[Category:Works with {{{3|}}} texts]]|text=With text at page [[{{{3|}}}]]|vo=For {{{3|}}} voices[[Category:{{{3|}}}-part choral music]]|voic=For {{{3|}}} voices[[Category:{{{3|}}}]]}}|{{#switch:{{{2|}}}|arr=, arranged by {{{3|}}}[[Category:{{{3|}}} arrangements]]|inst=, with {{{3|}}}|lan=, in {{{3|}}}[[Category:Works in {{{3|}}}]]|lyr=, lyrics by {{{3|}}}[[Category:Works with {{{3|}}} texts]]|text=, with text at page [[{{{3|}}}]]|vo=, for {{{3|}}} voices[[Category:{{{3|}}}-part choral music]]|voic=, for {{{3|}}} voices[[Category:{{{3|}}}]]}}}}</includeonly><noinclude>{{Doc|1=
<u>Format</u>
This template is intended for use within the {{tl|EdNotes}} template. It should not be used elsewhere.


<u>'''Syntax'''</u>
<tt><nowiki>{{EdChange|<Integer>|<Code>|<Value>}}</nowiki></tt>, with three parameters, all required:
:1. An integer number corresponding to the position of this call in the text output: 1 appears first in the text output, etc.
:2. One of eight codes for conditions that change in this edition: <tt>arr, dis, inst, lan, lyr, text, vo,</tt> or <tt>voic</tt>.
:3. The value for the code in parameter 2.


This template is called by {{tl|EdChange}} – Please see that template for details. This template will work by itself, but {{tl|EdChange}} can do more things.
This template is called by {{tl|EdChange}} – Please see that template for details. This template will work by itself, but {{tl|EdChange}} can change several categories at the same time.


<u>'''Examples'''</u>
'''1.''' {{tl|EdCha|1|arr|George Jones}} → Arranged by <font color=blue>George Jones</font>
'''2.''' {{tl|EdCha|3|voic|STTBB}} → , for <font color=blue>STTBB</font>
'''3.''' {{tl|EdCha|6|lan|German}} → , in <font color=blue>German</font>
:::where the items in blue color have been placed in appropriate categories.
}}
[[Category:Experimental templates]]
[[Category:Experimental templates]]
</noinclude>
</noinclude>

Revision as of 00:21, 3 May 2021

Documentation

This template is intended for use within the {{EdNotes}} template. It should not be used elsewhere.

Syntax {{EdChange|<Integer>|<Code>|<Value>}}, with three parameters, all required:

1. An integer number corresponding to the position of this call in the text output: 1 appears first in the text output, etc.
2. One of eight codes for conditions that change in this edition: arr, dis, inst, lan, lyr, text, vo, or voic.
3. The value for the code in parameter 2.

This template is called by {{EdChange}} – Please see that template for details. This template will work by itself, but {{EdChange}} can change several categories at the same time.

Examples 1. {{EdCha|1|arr|George Jones}} → Arranged by George Jones 2. {{EdCha|3|voic|STTBB}} → , for STTBB 3. {{EdCha|6|lan|German}} → , in German

where the items in blue color have been placed in appropriate categories.