Template:EditionsLink: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Template to replace {{Whatlinkshere}} on an Editor's User page - links to Category:<EditorName> editions)
 
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!-- force newline -->
<includeonly><p>'''Works with editions by this editor:''' {{#dpl:category={{{1|{{PAGENAME}}}}} editions|namespace=|mode=userformat|resultsheader=%TOTALPAGES%|noresultsheader=0}} {{#ifexist:Category:{{{1|{{PAGENAME}}}}} editions |({{spc}}[[:Category:{{{1|{{PAGENAME}}}}} editions|''see list'']]{{spc}}) |({{spc}}''see list''{{spc}})<small><sup>[{{fullurl:Category:{{{1|{{PAGENAME}}}}} editions|action=edit&preload=Template:EditionsLink/Preload}} create page]</sup></small>[[Category:Editors lacking an editions category]]}}</p></includeonly><noinclude>
{{CiteCat|{{{1|{{PAGENAME}}}}} editions|'''Works with editions by this editor'''}}</includeonly><noinclude>
; Usage
; Usage
<pre>{{EditionsLink|<EditorName>}}</pre>
<pre>{{EditionsLink|<EditorName>}}</pre>
provides a link to the category: <font color=blue><EditorName> editions</font> that appears as
provides a link to the category: <font color=blue><EditorName> editions</font> that appears as


<font color=blue>'''Works with editions provided by this editor'''</font>
'''Works with editions provided by this editor:''' ''n'' ({{spc}}<font color=blue>''see list''</font>{{spc}})
 
where ''n'' is the number of works pages that contain editions by <EditorName>.


'''Note:'''  On an editor's User page, this template may be invoked simply by typing
'''Note:'''  On an editor's User page, this template may be invoked simply by typing
Line 11: Line 12:
because the <EditorName> defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt>.
because the <EditorName> defaults to <tt><nowiki>{{PAGENAME}}</nowiki></tt>.


[[Category:Templates]]
[[Category:DPL templates]]
[[Category:Preload templates]]
</noinclude>
</noinclude>

Latest revision as of 21:52, 5 January 2020

Usage
{{EditionsLink|<EditorName>}}

provides a link to the category: <EditorName> editions that appears as

Works with editions provided by this editor: n (see list)

where n is the number of works pages that contain editions by <EditorName>.

Note: On an editor's User page, this template may be invoked simply by typing

{{EditionsLink}}

because the <EditorName> defaults to {{PAGENAME}}.