Template:Recent postings: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(new parameter "days" (which may be 10, 20 or 30, defaults to 10))
mNo edit summary
Line 3: Line 3:
|categorymatch=Posted on day {{CURRENTDAY}}{{!}}Posted on day {{#time:j|now-1days}}{{!}}Posted on day {{#time:j|now-2days}}{{!}}Posted on day {{#time:j|now-3days}}{{!}}Posted on day {{#time:j|now-4days}}{{!}}Posted on day {{#time:j|now-5days}}{{!}}Posted on day {{#time:j|now-6days}}{{!}}Posted on day {{#time:j|now-7days}}{{!}}Posted on day {{#time:j|now-8days}}{{!}}Posted on day {{#time:j|now-9days}}{{!}}Posted on day {{#time:j|now-10days}}{{#ifexpr:{{{days|10}}}>19|{{!}}Posted on day {{#time:j|now-11days}}{{!}}Posted on day {{#time:j|now-12days}}{{!}}Posted on day {{#time:j|now-13days}}{{!}}Posted on day {{#time:j|now-14days}}{{!}}Posted on day {{#time:j|now-15days}}{{!}}Posted on day {{#time:j|now-16days}}{{!}}Posted on day {{#time:j|now-17days}}{{!}}Posted on day {{#time:j|now-18days}}{{!}}Posted on day {{#time:j|now-19days}}{{!}}Posted on day {{#time:j|now-20days}}}}{{#ifexpr:{{{days|10}}}>29|{{!}}Posted on day {{#time:j|now-21days}}{{!}}Posted on day {{#time:j|now-22days}}{{!}}Posted on day {{#time:j|now-23days}}{{!}}Posted on day {{#time:j|now-24days}}{{!}}Posted on day {{#time:j|now-25days}}{{!}}Posted on day {{#time:j|now-26days}}{{!}}Posted on day {{#time:j|now-27days}}{{!}}Posted on day {{#time:j|now-28days}}{{!}}Posted on day {{#time:j|now-29days}}{{!}}Posted on day {{#time:j|now-30days}}}}
|categorymatch=Posted on day {{CURRENTDAY}}{{!}}Posted on day {{#time:j|now-1days}}{{!}}Posted on day {{#time:j|now-2days}}{{!}}Posted on day {{#time:j|now-3days}}{{!}}Posted on day {{#time:j|now-4days}}{{!}}Posted on day {{#time:j|now-5days}}{{!}}Posted on day {{#time:j|now-6days}}{{!}}Posted on day {{#time:j|now-7days}}{{!}}Posted on day {{#time:j|now-8days}}{{!}}Posted on day {{#time:j|now-9days}}{{!}}Posted on day {{#time:j|now-10days}}{{#ifexpr:{{{days|10}}}>19|{{!}}Posted on day {{#time:j|now-11days}}{{!}}Posted on day {{#time:j|now-12days}}{{!}}Posted on day {{#time:j|now-13days}}{{!}}Posted on day {{#time:j|now-14days}}{{!}}Posted on day {{#time:j|now-15days}}{{!}}Posted on day {{#time:j|now-16days}}{{!}}Posted on day {{#time:j|now-17days}}{{!}}Posted on day {{#time:j|now-18days}}{{!}}Posted on day {{#time:j|now-19days}}{{!}}Posted on day {{#time:j|now-20days}}}}{{#ifexpr:{{{days|10}}}>29|{{!}}Posted on day {{#time:j|now-21days}}{{!}}Posted on day {{#time:j|now-22days}}{{!}}Posted on day {{#time:j|now-23days}}{{!}}Posted on day {{#time:j|now-24days}}{{!}}Posted on day {{#time:j|now-25days}}{{!}}Posted on day {{#time:j|now-26days}}{{!}}Posted on day {{#time:j|now-27days}}{{!}}Posted on day {{#time:j|now-28days}}{{!}}Posted on day {{#time:j|now-29days}}{{!}}Posted on day {{#time:j|now-30days}}}}
|category=Sheet music
|category=Sheet music
|category={{{genre|{{{1|Renaissance music}}}}}}
|category={{{era|{{{1|Renaissance music}}}}}}
|category={{{voicing|{{{2|}}}}}}
|category={{{voicing|{{{2|}}}}}}
|category=Works in {{{language|{{{3|}}}}}}%
|category=Works in {{{language|{{{3|}}}}}}%
Line 11: Line 11:
|mode=category
|mode=category
|ordermethod=sortkey
|ordermethod=sortkey
|resultsheader=({{{genre|{{{1|Renaissance music}}}}}}) works for ({{{voicing|{{{2|any combination of}}}}}}) voices in {{{language|{{{3|any language}}}}}}, with {{{instruments|{{{4|arbitrary instrumention}}}}}}, posted in the past {{#expr: ({{{days|10}}}div10)*10+1}} days.
|resultsheader=({{{era|{{{1|Renaissance music}}}}}}) works for ({{{voicing|{{{2|any combination of}}}}}}) voices in {{{language|{{{3|any language}}}}}}, {{{instruments|{{{4|arbitrary instrumention}}}}}}, posted in the past {{#expr: ({{{days|10}}}div10)*10+1}} days.
|noresultsheader=There were no new editions of ({{{genre|{{{1|Renaissance music}}}}}}) works for ({{{voicing|{{{2|any combination of}}}}}}) voices in {{{language|{{{3|any language}}}}}}, with {{{instruments|{{{4|arbitrary instrumentaion}}}}}}, contributed in the past {{#expr: ({{{days|10}}}div10)*10+1}} days.
|noresultsheader=There were no new editions of ({{{era|{{{1|Renaissance music}}}}}}) works for ({{{voicing|{{{2|any combination of}}}}}}) voices in {{{language|{{{3|any language}}}}}}, {{{instruments|{{{4|arbitrary instrumentaion}}}}}}, contributed in the past {{#expr: ({{{days|10}}}div10)*10+1}} days.
|rowcolformat=width=100%
|rowcolformat=width=100%
|offset={{{skip|0}}}
|offset={{{skip|0}}}
Line 20: Line 20:
'''Parameters:'''
'''Parameters:'''
* '''days''': defaults to '''10'''.  This yields a listing of works posted in the past 11 days (ie. the current day and the 10 preceding days).  '''Any other value of this parameter must be explicitly specified'''.  Acceptable alternate values are <tt>days=20</tt> or <tt>days=30</tt> (although rounding down occurs if a different value is specified, so that <tt>days=25</tt> will give the same result as <tt>days=20</tt>).
* '''days''': defaults to '''10'''.  This yields a listing of works posted in the past 11 days (ie. the current day and the 10 preceding days).  '''Any other value of this parameter must be explicitly specified'''.  Acceptable alternate values are <tt>days=20</tt> or <tt>days=30</tt> (although rounding down occurs if a different value is specified, so that <tt>days=25</tt> will give the same result as <tt>days=20</tt>).
* '''genre''' (or first unnamed parameter): defaults to '''Renaissance music'''. To specify, say, Baroque and Classical era music, use
* '''era''' (or first unnamed parameter): defaults to '''Renaissance music'''. To specify, say, Baroque and Classical era music, use
<pre>genre=Baroque music{{!}}Classical music</pre>
<pre>genre=Baroque music{{!}}Classical music</pre>
* '''voicing''' (or second unnamed parameter): defaults to all voicings (none specified). To specify, say, SSATBB and SSAATTBB works (including those with possibly divided chorus such as SATB.SB or SATB.SATB), use
* '''voicing''' (or second unnamed parameter): defaults to all voicings (none specified). To specify, say, SSATBB and SSAATTBB works (including those with possibly divided chorus such as SATB.SB or SATB.SATB), use
Line 35: Line 35:


'''Another example:'''
'''Another example:'''
<pre>{{Recent postings|Baroque music{{!}}Renaissance music|*SATB{{!}}*SSATBB|Latin}}</pre>
<pre>{{Recent postings|Baroque music{{!}}Renaissance music|*SATB{{!}}*SSATBB|Latin|a cappella}}</pre>
yields:
yields:
{{Recent postings|Baroque music{{!}}Renaissance music|*SATB{{!}}*SSATBB|Latin}}
{{Recent postings|Baroque music{{!}}Renaissance music|*SATB{{!}}*SSATBB|Latin|a cappella}}




[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 16:09, 25 August 2014

Default output There were no new editions of (Renaissance music) works for (any combination of) voices in any language, arbitrary instrumentaion, contributed in the past 11 days.

Parameters:

  • days: defaults to 10. This yields a listing of works posted in the past 11 days (ie. the current day and the 10 preceding days). Any other value of this parameter must be explicitly specified. Acceptable alternate values are days=20 or days=30 (although rounding down occurs if a different value is specified, so that days=25 will give the same result as days=20).
  • era (or first unnamed parameter): defaults to Renaissance music. To specify, say, Baroque and Classical era music, use
genre=Baroque music{{!}}Classical music
  • voicing (or second unnamed parameter): defaults to all voicings (none specified). To specify, say, SSATBB and SSAATTBB works (including those with possibly divided chorus such as SATB.SB or SATB.SATB), use
voicing=*SSATB{{!}}*SSAATTBB
  • language (or third unnamed parameter): defaults to any language (none specified). To specify, say, Latin, use
language=Latin
  • instruments (or fourth unnamed parameter): defaults to arbitrary instrumentation (none specified). To specify an accompaniment, use the name of the corresponding instrumental accompaniment category, such as a cappella or organ accompaniment. For example,
instruments=organ accompaniment

Example:

{{Recent postings|days=30|Modern music{{!}}Early 20th century music}}

yields:

Extension:DynamicPageList3 (DPL3), version 3.5.2: Error: Too many categories! Maximum: 30. Help: increase $wgDplSettings['maxCategoryCount'] to specify more categories or set $wgDplSettings['allowUnlimitedCategories'] = true; for no limitation. (Set the variable in the wiki's LocalSettings.php configuration file.)


Another example:

{{Recent postings|Baroque music{{!}}Renaissance music|*SATB{{!}}*SSATBB|Latin|a cappella}}

yields:

There were no new editions of (Baroque music|Renaissance music) works for (*SATB|*SSATBB) voices in Latin, a cappella, contributed in the past 11 days.