Template:Editor: Difference between revisions
Jump to navigation
Jump to search
Documentation
(made date link to the proper month log page) |
(moved includeonly to beginning so as to hide the #time error message, and updated documentation) |
||
Line 1: | Line 1: | ||
{{switch|{{{1}}} | <includeonly>{{switch|{{{1}}} | ||
|case: 2=:'''{{{edtype|Editor}}}s:''' [[User:{{{2}}}|{{{alted1|{{{2}}}}}}]] and [[User:{{{3}}}|{{{alted2|{{{3}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{4}}}}} scores|{{{4}}}]])''. | |case: 2=:'''{{{edtype|Editor}}}s:''' [[User:{{{2}}}|{{{alted1|{{{2}}}}}}]] and [[User:{{{3}}}|{{{alted2|{{{3}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{4}}}}} scores|{{{4}}}]])''.[[Category:{{{4}}}]] | ||
|case: 3=:'''{{{edtype|Editor}}}s:''' [[User:{{{2}}}|{{{alted1|{{{2}}}}}}]], [[User:{{{3}}}|{{{alted2|{{{3}}}}}}]] and [[User:{{{4}}}|{{{alted3|{{{4}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{5}}}}} scores|{{{5}}}]])''. | |case: 3=:'''{{{edtype|Editor}}}s:''' [[User:{{{2}}}|{{{alted1|{{{2}}}}}}]], [[User:{{{3}}}|{{{alted2|{{{3}}}}}}]] and [[User:{{{4}}}|{{{alted3|{{{4}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{5}}}}} scores|{{{5}}}]])''.[[Category:{{{5}}}]] | ||
|default=:'''{{{edtype|Editor}}}:''' [[User:{{{1}}}|{{{alted|{{{1}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{2}}}}} scores|{{{2}}}]])''. | |default=:'''{{{edtype|Editor}}}:''' [[User:{{{1}}}|{{{alted|{{{1}}}}}}]] ''(added [[ChoralWiki:{{#time:F Y|{{{2}}}}} scores|{{{2}}}]])''.[[Category:{{{2}}}]]}} </includeonly><noinclude> | ||
{{prot-temp}}<br> | {{prot-temp}}<br> | ||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | <div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd"> | ||
Line 11: | Line 11: | ||
*<tt><nowiki>{{Editor|</nowiki>''editor-name''|''yyyy-mm-dd''}}</tt> | *<tt><nowiki>{{Editor|</nowiki>''editor-name''|''yyyy-mm-dd''}}</tt> | ||
which produces the text | which produces the text | ||
:'''Editor:''' | :'''Editor:''' <font color=blue>editor-name</font> ''(added <font color=blue>yyyy-mm-dd</font>)'' | ||
*<tt><nowiki>{{Editor|</nowiki>''2''|''editor1-name''|''editor2-name''|''yyyy-mm-dd''}}</tt> | *<tt><nowiki>{{Editor|</nowiki>''2''|''editor1-name''|''editor2-name''|''yyyy-mm-dd''}}</tt> | ||
which produces the text | which produces the text | ||
:'''Editors:''' | :'''Editors:''' <font color=blue>editor1-name</font> and <font color=blue>editor2-name</font> ''(added <font color=blue>yyyy-mm-dd</font>)'' | ||
*<tt><nowiki>{{Editor|</nowiki>''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''}}</tt> | *<tt><nowiki>{{Editor|</nowiki>''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''}}</tt> | ||
which produces the text | which produces the text | ||
:'''Editors:''' | :'''Editors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(added <font color=blue>yyyy-mm-dd</font>)'' | ||
To change the word '''Editor'''(s) to, say, '''Contributor'''(s), add the optional parameter <tt><nowiki>edtype=Contributor</nowiki></tt>, as in the following example: | To change the word '''Editor'''(s) to, say, '''Contributor'''(s), add the optional parameter <tt><nowiki>edtype=Contributor</nowiki></tt>, as in the following example: | ||
Line 25: | Line 25: | ||
*<tt><nowiki>{{Editor|</nowiki>''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''|edtype=Contributor}}</tt> | *<tt><nowiki>{{Editor|</nowiki>''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''|edtype=Contributor}}</tt> | ||
which produces the text | which produces the text | ||
:'''Contributors:''' | :'''Contributors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(added <font color=blue>yyyy-mm-dd</font>)'' | ||
To provide an alternate form of the editor-name, use <tt>alted{{eq}}''alternate-editor-name''</tt>, and similarly for alternate forms for the 1st, 2nd, and 3rd editor-names: <tt>alted1{{eq}}''alternate-editor1-name''</tt>, <tt>alted2{{eq}}''alternate-editor2-name''</tt>, and <tt>alted3{{eq}}''alternate-editor3-name''</tt>. | To provide an alternate form of the editor-name, use <tt>alted{{eq}}''alternate-editor-name''</tt>, and similarly for alternate forms for the 1st, 2nd, and 3rd editor-names: <tt>alted1{{eq}}''alternate-editor1-name''</tt>, <tt>alted2{{eq}}''alternate-editor2-name''</tt>, and <tt>alted3{{eq}}''alternate-editor3-name''</tt>. | ||
In all cases it also inserts the page in | In all cases it also inserts the page in <font color=blue>Category:yyyy-mm-dd</font>. | ||
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude> | </div>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 02:04, 28 January 2009
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 (added yyyy-mm-dd)
- {{Editor|2|editor1-name|editor2-name|yyyy-mm-dd}}
which produces the text
- Editors: editor1-name and editor2-name (added 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 (added 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 (added 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.