Template:Recent postings: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(change default number of days to 30)
No edit summary
Line 30: Line 30:


'''Example:'''
'''Example:'''
<pre>{{Recent postings|days=30|Modern music{{!}}Early 20th century music}}</pre>
<pre>{{Recent postings|Modern music{{!}}Early 20th century music}}</pre>
yields:
yields:
{{Recent postings|days=30|Modern music{{!}}Early 20th century music}}
{{Recent postings|Modern music{{!}}Early 20th century music}}


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




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

Revision as of 00:34, 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|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|days=20|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 21 days.