Template:Recent postings: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
mNo edit summary
(change default number of days to 30)
Line 1: Line 1:
<noinclude>'''Default output'''</noinclude>
<noinclude>'''Default output'''</noinclude>
{{#dpl:
{{#dpl:
|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|30}}}>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|30}}}>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={{{era|{{{1|Renaissance music}}}}}}
|category={{{era|{{{1|Renaissance music}}}}}}
Line 11: Line 11:
|mode=category
|mode=category
|ordermethod=sortkey
|ordermethod=sortkey
|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.
|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|30}}}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.
|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|30}}}div10)*10+1}} days.
|rowcolformat=width=100%
|rowcolformat=width=100%
|offset={{{skip|0}}}
|offset={{{skip|0}}}
Line 19: Line 19:
<noinclude>
<noinclude>
'''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 '''30'''.  This yields a listing of works posted in the past 31 days (ie. the current day and the 30 preceding days).  '''Another value of this parameter must be explicitly specified'''.  Acceptable alternate values are <tt>days=10</tt> or <tt>days=20</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>).
* '''era''' (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>

Revision as of 00:32, 26 August 2014

Default output

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.)

Parameters:

  • days: defaults to 30. This yields a listing of works posted in the past 31 days (ie. the current day and the 30 preceding days). Another value of this parameter must be explicitly specified. Acceptable alternate values are days=10 or days=20 (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:

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.)