Template:TalkList: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(new template to generate most recent discussions on talk pages in namespaces other than Main)
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>=={{{hd|{{{cat|{{{ns|}}} talk pages}}}}}}==
=={{{1|User}}} talk pages==
{{#dpl: articlecategory = {{{cat|}}}
{{#dpl: namespace = {{{1|User}}}_talk
|namespace = {{anchorencode:{{ucfirst:{{{ns|}}} talk}}}}
|shownamespace = false
|shownamespace = false
|ordermethod = lastedit
|ordermethod = lastedit
|addlasteditor = true
|addlasteditor = true
|addeditdate = true
|addeditdate = true
|userdateformat = Y-m-d, H:i
|userdateformat = [[:\C\a\t\e\g\o\r\y:Y-m-d|Y-m-d]], H:i
|format = \n{¦class="wikitable sortable" \n!Last edited on !!Talk page of !!Edited by, \n¦-\n¦%DATE% ¦¦[[{{{1|User}}} talk:%TITLE%|%TITLE%]] ¦¦[[User:%USER%|%USER%]],, \n¦}
|mode = userformat
|format = \n{¦width=100% class="wikitable sortable" \n! width="120px"¦ Last edited on !!Talk page of \n! width="160px"¦ Edited by, \n¦-\n¦ align=center¦ %DATE% ¦¦[[%PAGE%|%TITLE%]] ¦¦[[User:%USER%|%USER%]],, \n¦}
|allrevisionssince = {{{since|{{#expr:{{CURRENTYEAR}}-1}}{{CURRENTMONTH}}{{CURRENTDAY2}}}}}
|allrevisionssince = {{{since|{{#expr:{{CURRENTYEAR}}-1}}{{CURRENTMONTH}}{{CURRENTDAY2}}}}}
|order = descending
|order = descending
|noresultsheader = No discussions found for articles in category {{{1|(not informed)}}}.
|noresultsheader = No discussions found.
|allowcachedresults = true
|allowcachedresults = true
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Doc|text=
;Usage:
;Usage:
*<tt><nowiki>{{TalkList|«Namespace»|since=«optional_date»}}</nowiki></tt>
*<tt><nowiki>{{TalkList|ns=«namespace»|cat=«page_category»|hd=«optional_header»|since=«optional_date»}}</nowiki></tt>


Where «optional_date» may be just <tt>YYYY</tt>, <tt>YYYYMM</tt>, or <tt>YYYYMMDD</tt>. If not informed, the template will display all discussions created or replied to in the last year.
If not specified, «namespace» defaults to Talk. The «optional_date» is a string in the format <tt>YYYY</tt>, <tt>YYYYMM</tt>, or <tt>YYYYMMDD</tt>. If not specified, the template will display discussions created or replied to in the last 12 months.
 
}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:DPL templates]]
</noinclude>
</noinclude>

Latest revision as of 05:21, 9 December 2020


Documentation
Usage
  • {{TalkList|ns=«namespace»|cat=«page_category»|hd=«optional_header»|since=«optional_date»}}

If not specified, «namespace» defaults to Talk. The «optional_date» is a string in the format YYYY, YYYYMM, or YYYYMMDD. If not specified, the template will display discussions created or replied to in the last 12 months.