Template:Editor: Difference between revisions
(categorize for at least 30 days old) |
(added example with Contributor template) |
||
Line 5: | Line 5: | ||
}}<!--end switch--> ''(submitted {{#iferror: {{#time:F Y|{{#if:{{{5|{{{4|{{{2|}}}}}}}}}|{{{5|{{{4|{{{2|}}}}}}}}}|9999-99-99}} }} |{{{5|{{{4|{{{2|????-??-??}}}}}}}}}[[Category:Editions with invalid date]]|[[ChoralWiki:{{#time:F Y|{{{5|{{{4|{{{2}}}}}}}}}}} scores|{{{5|{{{4|{{{2}}}}}}}}}]][[Category:{{{5|{{{4|{{{2}}}}}}}}}]]{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+30days}}<{{#time:Ymd}}|[[Category:At least 30 days old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+90days}}<{{#time:Ymd}}|[[Category:At least 90 days old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+2years}}<{{#time:Ymd}}|[[Category:At least 2 years old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+5years}}<{{#time:Ymd}}|[[Category:At least 5 years old]]}}}})''. </includeonly><noinclude> | }}<!--end switch--> ''(submitted {{#iferror: {{#time:F Y|{{#if:{{{5|{{{4|{{{2|}}}}}}}}}|{{{5|{{{4|{{{2|}}}}}}}}}|9999-99-99}} }} |{{{5|{{{4|{{{2|????-??-??}}}}}}}}}[[Category:Editions with invalid date]]|[[ChoralWiki:{{#time:F Y|{{{5|{{{4|{{{2}}}}}}}}}}} scores|{{{5|{{{4|{{{2}}}}}}}}}]][[Category:{{{5|{{{4|{{{2}}}}}}}}}]]{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+30days}}<{{#time:Ymd}}|[[Category:At least 30 days old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+90days}}<{{#time:Ymd}}|[[Category:At least 90 days old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+2years}}<{{#time:Ymd}}|[[Category:At least 2 years old]]}}{{#ifexpr:{{#time:Ymd|{{{5|{{{4|{{{2|}}}}}}}}}+5years}}<{{#time:Ymd}}|[[Category:At least 5 years old]]}}}})''. </includeonly><noinclude> | ||
{{prot-temp}}<br> | {{prot-temp}}<br> | ||
{{ | {{Doc|1= | ||
'''Accepted syntaxes for this template:''' | '''Accepted syntaxes for this template:''' | ||
Line 20: | Line 20: | ||
which produces the text | which produces the text | ||
:'''Editors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(submitted <font color=blue>yyyy-mm-dd</font>)'' | :'''Editors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(submitted <font color=blue>yyyy-mm-dd</font>)'' | ||
'''Syntax with the {{para|edtype}} parameter:''' | |||
To change the word '''Editor'''(s) to, say, '''Contributor'''(s), add the optional parameter {{para|edtype|Contributor}}, as in the following example: | To change the word '''Editor'''(s) to, say, '''Contributor'''(s), add the optional parameter {{para|edtype|Contributor}}, as in the following example: | ||
Line 26: | Line 29: | ||
which produces the text | which produces the text | ||
:'''Contributors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(submitted <font color=blue>yyyy-mm-dd</font>)'' | :'''Contributors:''' <font color=blue>editor1-name</font>, <font color=blue>editor2-name</font> and <font color=blue>editor3-name</font> ''(submitted <font color=blue>yyyy-mm-dd</font>)'' | ||
For contributors, the above syntax can be simplified by using the {{CT|Contributor}} template, as follows: | |||
*{{tl|Contributor|''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''}} | |||
'''Syntax with the {{para|alted}} parameter:''' | |||
To provide an alternate form of the editor-name, use {{para|alted|''alternate-editor-name''}}, and similarly for alternate forms for the 1st, 2nd, and 3rd editor-names: {{para|alted1|''alternate-editor1-name''}}, {{para|alted2|''alternate-editor2-name''}}, and {{para|alted3|''alternate-editor3-name''}}. | To provide an alternate form of the editor-name, use {{para|alted|''alternate-editor-name''}}, and similarly for alternate forms for the 1st, 2nd, and 3rd editor-names: {{para|alted1|''alternate-editor1-name''}}, {{para|alted2|''alternate-editor2-name''}}, and {{para|alted3|''alternate-editor3-name''}}. | ||
In all cases it also inserts the page in <font color=blue>Category:yyyy-mm-dd</font>. | In all cases it also inserts the page in <font color=blue>Category:yyyy-mm-dd</font>. | ||
}} | }} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 16:24, 27 May 2015
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)
Syntax with the |edtype=
parameter:
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)
For contributors, the above syntax can be simplified by using the Contributor template, as follows:
- {{Contributor|3|editor1-name|editor2-name|editor3-name|yyyy-mm-dd}}
Syntax with the |alted=
parameter:
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.