Difference between revisions of "Template:TextAutoList"

From ChoralWiki
Jump to navigation Jump to search
(new, based on template:TextPageList)
 
(eliminating blank line when there is no output)
 
(21 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 that may have not been included in the manual list above===
+
|resultsheader= ===Other settings possibly not included in the manual list above===\n[[Category:Text pages with automated partial lists]]
|noresultsheader=\n
 
 
|columns={{{cols|{{{2|1}}}}}}
 
|columns={{{cols|{{{2|1}}}}}}
 
|rowcolformat=width=100%
 
|rowcolformat=width=100%
|allowcachedresults=false
+
|allowcachedresults=true
 +
|noresultsheader=
 
}}</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 20: 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.