Template:TextAutoList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (allowcachedresults=false)
(eliminating blank line when there is no output)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#dpl:category=Works that link to text pages
<includeonly>{{#dpl:category=Works that link to text pages
|notcategory=Works with all editions withdrawn
|linksto={{{1|{{PAGENAME}}}}} text page
|linksto={{{1|{{PAGENAME}}}}} text page
|notlinksfrom={{{1|{{PAGENAME}}}}}
|notlinksfrom={{{1|{{PAGENAME}}}}}
|order=ascending
|order=ascending
|format=,\n*[[%PAGE%|{{CompFromWorkTitle{{!}}%PAGE%}}]] — %TITLE%,
|format=,\n* [{{SERVER}}{{SCRIPTPATH}}/index.php?curid=%PAGEID% {{CompFromWorkTitle{{!}}%PAGE%}}] — %TITLE%,
|replaceintitle=/\([^\)]+\)$/,
|replaceintitle=/\([^\)]+\)$/;
|ordermethod=sortkey
|ordermethod=sortkey
|resultsheader= ===Other settings possibly not included to the manual list above===\n[[Category:Text pages with automated partial lists]]
|resultsheader= ===Other settings possibly not included in the manual list above===\n[[Category:Text pages with automated partial lists]]
|columns={{{cols|{{{2|1}}}}}}
|columns={{{cols|{{{2|1}}}}}}
|rowcolformat=width=100%
|rowcolformat=width=100%
|allowcachedresults=false
|allowcachedresults=true
|suppresserrors=true
|noresultsheader=
|reset=links
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
{{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. But differently from template {{tl|TextPageList}} that lists all settings, this template excludes from the list settings that have already been added by hand to the page.
Displays a partial list of settings that share a common text. Differently from template {{tl|TextPageList}} that lists all settings, this template excludes from the list those settings that have already been added by hand to the page. A line of the kind {{tl|LinkText|''text page''}} is required on each works page for it to be included in the listings.
 
Text pages with partial lists actively generated by TextAutoList will be included in the category {{CiteCat|Text pages with automated partial lists}}. If all works have already been included by hand to the text page, nothing is displayed by TextAutoList.


;Syntax: {{tl|TextAutoList}}
;Syntax: {{tl|TextAutoList}}
Line 21: Line 23:
*«columns» is an integer value. The default is {{para|cols|1}}.
*«columns» is an integer value. The default is {{para|cols|1}}.
}}
}}
[[Category:DPL templates]]
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 02:54, 20 March 2022


Documentation

Displays a partial list of settings that share a common text. Differently from template {{TextPageList}} that lists all settings, this template excludes from the list those settings that have already been added by hand to the page. A line of the kind {{LinkText|text page}} is required on each works page for it to be included in the listings.

Text pages with partial lists actively generated by TextAutoList will be included in the category Text pages with automated partial lists. If all works have already been included by hand to the text page, nothing is displayed by TextAutoList.

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