Template:TextPageList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (ordermethod=sortkey)
m (Text replacement - "\|replaceintitle\=\/(.*)\/\, " to "|replaceintitle=/$1/; ")
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#dpl:category={{{1}}}|order=ascending|ordermethod=sortkey|suppresserrors=true}}</includeonly><noinclude>
<includeonly>{{#dpl:category=Works that link to text pages
{{DisplayBox|bgcolor=g|
|notcategory=Works with all editions withdrawn
<center><big>'''Documentation'''</big></center>
|notcategory=Works with no edition
Displays a list of settings that share a common text. Only will be listed the settings to which template <tt>{{[[Template:LnkTxt|LnkTxt]]|<textpage>|<composer>}}</tt> has been applied.
|notcategory=Works with no valid edition
|linksto={{{1|{{PAGENAME}}}}} text page
|order=ascending
|format=,\n*{{CompFromWorkTitle{{!}}%PAGE%}} — [[%PAGE%|%TITLE%]],
|replaceintitle=/\([^\)]+\)$/;
|ordermethod=sortkey
|allowcachedresults=false
|noresultsheader=&nbsp;
|columns={{{cols|{{{2|1}}}}}}
|rowcolformat=width=100%
}}{{#dpl:category=Works that link to text pages
|category=Works with all editions withdrawn{{!}}Works with no edition{{!}}Works with no valid edition
|linksto={{{1|{{PAGENAME}}}}} text page
|order=ascending
|format=,\n*{{CompFromWorkTitle{{!}}%PAGE%}} — [[%PAGE%|<span style="color:gray;">%TITLE%<span>]],
|replaceintitle=/\([^\)]+\)$/;
|ordermethod=sortkey
|allowcachedresults=false
|noresultsheader=&nbsp;
|columns={{{cols|{{{2|1}}}}}}
|rowcolformat=width=100%
|resultsheader= \n====Works that currently have no editions available====
}}</includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
Displays a list of settings that share a common text. Only those works pages to which the template {{tl|LinkText|«textpage»}} has been applied will be listed.


;Usage: <tt><nowiki>{{TextSettingsList|<textpage>}}</nowiki></tt>
;Syntax: {{tl|TextPageList}}
;Syntax with optional parameters: {{tl|TextPageList|«textpage»|cols{{=}}«columns»}}
*«textpage» is used when the template is used inside a page other than the text page itself
*«columns» is an integer value. The default is {{para|cols|1}}.
}}
}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:DPL templates]]
[[Category:Templates]]</noinclude>

Revision as of 04:17, 1 September 2021


Documentation

Displays a list of settings that share a common text. Only those works pages to which the template {{LinkText|«textpage»}} has been applied will be listed.

Syntax
{{TextPageList}}
Syntax with optional parameters
{{TextPageList|«textpage»|cols=«columns»}}
  • «textpage» is used when the template is used inside a page other than the text page itself
  • «columns» is an integer value. The default is |cols=1.