Template:TextAutoList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
m (Text replacement - "suppresserrors=true" to "noresultsheader= ")
(eliminating blank line when there is no output)
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
|order=ascending
|order=ascending
|format=,\n* [{{SERVER}}{{SCRIPTPATH}}/index.php?curid=%PAGEID% {{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 in 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]]
Line 11: Line 11:
|rowcolformat=width=100%
|rowcolformat=width=100%
|allowcachedresults=true
|allowcachedresults=true
|noresultsheader= 
|noresultsheader=
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{DisplayBox|title=Documentation|text=
{{DisplayBox|title=Documentation|text=
Line 23: 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.