Template:Editor: Difference between revisions
Jump to navigation
Jump to search
Documentation
(add categorization (default case) to [[Category:{{{1}}} editions]]) |
(add categorization in Category:EditorName editions for 2, 3 editors) |
||
Line 1: | Line 1: | ||
<includeonly>{{switch|{{{1}}} | <includeonly>{{switch|{{{1}}} | ||
|case: 2=:'''{{{edtype|Editor}}}s:''' {{#ifexist:User:{{{2}}}|[[User:{{{2}}}|{{{alted1|{{{2}}}}}}]]|{{{2}}}<small><sup>[{{fullurl:User:{{{2}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} and {{#ifexist:User:{{{3}}}|[[User:{{{3}}}|{{{alted2|{{{3}}}}}}]]|{{{3}}}<small><sup>[{{fullurl:User:{{{3}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} ''(submitted [[ChoralWiki:{{#time:F Y|{{{4}}}}} scores|{{{4}}}]])''.[[Category:{{{4}}}]] | |case: 2=:'''{{{edtype|Editor}}}s:''' {{#ifexist:User:{{{2}}}|[[User:{{{2}}}|{{{alted1|{{{2}}}}}}]]|{{{2}}}<small><sup>[{{fullurl:User:{{{2}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} and {{#ifexist:User:{{{3}}}|[[User:{{{3}}}|{{{alted2|{{{3}}}}}}]]|{{{3}}}<small><sup>[{{fullurl:User:{{{3}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}[[Category:{{{2}}} editions]][[Category:{{{3}}} editions]] ''(submitted [[ChoralWiki:{{#time:F Y|{{{4}}}}} scores|{{{4}}}]])''.[[Category:{{{4}}}]] | ||
|case: 3=:'''{{{edtype|Editor}}}s:''' {{#ifexist:User:{{{2}}}|[[User:{{{2}}}|{{{alted1|{{{2}}}}}}]]|{{{2}}}<small><sup>[{{fullurl:User:{{{2}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}, {{#ifexist:User:{{{3}}}|[[User:{{{3}}}|{{{alted2|{{{3}}}}}}]]|{{{3}}}<small><sup>[{{fullurl:User:{{{3}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} and {{#ifexist:User:{{{4}}}|[[User:{{{4}}}|{{{alted3|{{{4}}}}}}]]|{{{4}}}<small><sup>[{{fullurl:User:{{{4}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} ''(submitted [[ChoralWiki:{{#time:F Y|{{{5}}}}} scores|{{{5}}}]])''.[[Category:{{{5}}}]] | |case: 3=:'''{{{edtype|Editor}}}s:''' {{#ifexist:User:{{{2}}}|[[User:{{{2}}}|{{{alted1|{{{2}}}}}}]]|{{{2}}}<small><sup>[{{fullurl:User:{{{2}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}, {{#ifexist:User:{{{3}}}|[[User:{{{3}}}|{{{alted2|{{{3}}}}}}]]|{{{3}}}<small><sup>[{{fullurl:User:{{{3}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}} and {{#ifexist:User:{{{4}}}|[[User:{{{4}}}|{{{alted3|{{{4}}}}}}]]|{{{4}}}<small><sup>[{{fullurl:User:{{{4}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}[[Category:{{{2}}} editions]][[Category:{{{3}}} editions]][[Category:{{{4}}} editions]] ''(submitted [[ChoralWiki:{{#time:F Y|{{{5}}}}} scores|{{{5}}}]])''.[[Category:{{{5}}}]] | ||
|default=:'''{{{edtype|Editor}}}:''' {{#ifexist:User:{{{1}}}|[[User:{{{1}}}|{{{alted|{{{1}}}}}}]]|{{{1}}}<small><sup>[{{fullurl:User:{{{1}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}[[Category:{{{1}}} editions]] ''(submitted {{#iferror: {{#time:F Y|{{{2}}}}} |{{{2|}}}[[Category:Editions with invalid date]]|[[ChoralWiki:{{#time:F Y|{{{2}}}}} scores|{{{2}}}]]}})''.[[Category:{{{2}}}]]}} </includeonly><noinclude> | |default=:'''{{{edtype|Editor}}}:''' {{#ifexist:User:{{{1}}}|[[User:{{{1}}}|{{{alted|{{{1}}}}}}]]|{{{1}}}<small><sup>[{{fullurl:User:{{{1}}}|action=edit&preload=Template:User_page/Preload}} create page]</sup></small>[[Category:Editions with nonexistent editor page]]}}[[Category:{{{1}}} editions]] ''(submitted {{#iferror: {{#time:F Y|{{{2}}}}} |{{{2|}}}[[Category:Editions with invalid date]]|[[ChoralWiki:{{#time:F Y|{{{2}}}}} scores|{{{2}}}]]}})''.[[Category:{{{2}}}]]}} </includeonly><noinclude> | ||
{{prot-temp}}<br> | {{prot-temp}}<br> |
Revision as of 23:10, 28 May 2010
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
Accepted syntaxes for this template:
- {{Editor|editor-name|yyyy-mm-dd}}
which produces the text
- Editor: editor-name (submitted yyyy-mm-dd)
- {{Editor|2|editor1-name|editor2-name|yyyy-mm-dd}}
which produces the text
- Editors: editor1-name and editor2-name (submitted yyyy-mm-dd)
- {{Editor|3|editor1-name|editor2-name|editor3-name|yyyy-mm-dd}}
which produces the text
- Editors: editor1-name, editor2-name and editor3-name (submitted yyyy-mm-dd)
To change the word Editor(s) to, say, Contributor(s), add the optional parameter edtype=Contributor, as in the following example:
- {{Editor|3|editor1-name|editor2-name|editor3-name|yyyy-mm-dd|edtype=Contributor}}
which produces the text
- Contributors: editor1-name, editor2-name and editor3-name (submitted yyyy-mm-dd)
To provide an alternate form of the editor-name, use alted=alternate-editor-name, and similarly for alternate forms for the 1st, 2nd, and 3rd editor-names: alted1=alternate-editor1-name, alted2=alternate-editor2-name, and alted3=alternate-editor3-name.
In all cases it also inserts the page in Category:yyyy-mm-dd.