Template:PubList: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
(Undo revision 937405 by Bcjohnston523 (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
<includeonly>{{#dpl:category=Sheet music|mode=userformat|namespace=|order=ascending|ordermethod=sortkey|format=,\n*[[%PAGE%|%TITLE%]]<!-- | <includeonly>{{#dpl:category=Sheet music|mode=userformat|namespace=|order=ascending|ordermethod=sortkey|format=,\n*[[%PAGE%|%TITLE%]]<!-- | ||
-->|notcategory=Works with all editions withdrawn|include=#Editions,{Published}:1|includematch=,/\{{!}}\s*{{{3|}}}/s|secseparators= <!-- | -->|notcategory=Works with all editions withdrawn|include=#Editions,{Published}:1|includematch=,/\{{!}}\s*{{{3|}}}/s|secseparators= <!-- | ||
-->|linksto={{PAGENAME}}|columns={{{ | -->|linksto={{PAGENAME}}|columns={{{2|3}}}|rowcolformat=width=100%<!-- | ||
-->|noresultsheader= |replaceintitle={{#if:{{{1|}}}{{!}}/\([^\)]+\)$/}} }}</includeonly><noinclude> | |||
{{Doc|1= | {{Doc|1= | ||
Line 7: | Line 8: | ||
The template has two parameters, both optional. | The template has two parameters, both optional. | ||
# If there is any text (not blank or length=0) in this parameter, the composer's name will be suppressed in the output. | |||
# User can specify number of columns for output; default is 3. | # User can specify number of columns for output; default is 3. | ||
# Specify a | # Specify a different publication page or section, with "ed=" | ||
Examples of syntax: | Examples of syntax: | ||
*<tt><nowiki>{{PubList}}</nowiki></tt> – produces a list of | *<tt><nowiki>{{PubList}}</nowiki></tt> – produces a list of works with composer names in two columns. | ||
*<tt><nowiki>{{PubList| | *<tt><nowiki>{{PubList|s|4}}</nowiki></tt> – produces a list of works without composer names in four columns. | ||
}} | }} |
Revision as of 00:15, 2 January 2019
This template is for use on a Music publications page; it shows all the works that have links to the publication within the {{Published}} template.
The template has two parameters, both optional.
- If there is any text (not blank or length=0) in this parameter, the composer's name will be suppressed in the output.
- User can specify number of columns for output; default is 3.
- Specify a different publication page or section, with "ed="
Examples of syntax:
- {{PubList}} – produces a list of works with composer names in two columns.
- {{PubList|s|4}} – produces a list of works without composer names in four columns.