Template:Editor: Difference between revisions
Jump to navigation
Jump to search
Documentation
(extended template to accept up to 3 editors) |
(valid syntaxes) |
||
Line 3: | Line 3: | ||
|case: 3=:'''Editors:''' [[User:{{{2}}}|{{{2}}}]], [[User:{{{3}}}|{{{3}}}]] and [[User:{{{4}}}|{{{4}}}]] ''(added {{{5}}})''. <includeonly>[[Category:{{{5}}}]]</includeonly> | |case: 3=:'''Editors:''' [[User:{{{2}}}|{{{2}}}]], [[User:{{{3}}}|{{{3}}}]] and [[User:{{{4}}}|{{{4}}}]] ''(added {{{5}}})''. <includeonly>[[Category:{{{5}}}]]</includeonly> | ||
|default=:'''Editor:''' [[User:{{{1}}}|{{{1}}}]] ''(added {{{2}}})''. <includeonly>[[Category:{{{2}}}]]</includeonly> | |default=:'''Editor:''' [[User:{{{1}}}|{{{1}}}]] ''(added {{{2}}})''. <includeonly>[[Category:{{{2}}}]]</includeonly> | ||
}}<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude> | }}<noinclude> | ||
{{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"> | |||
<center><big>'''Documentation'''</big></center> | |||
'''Accepted syntaxes for this template:''' | |||
*<tt><nowiki>{{Editor|</nowiki>''editor-name''|''yyyy-mm-dd''}}</tt> | |||
which produces the text | |||
:'''Editor:''' [[User:editor-name|editor-name]] ''(added yyyy-mm-dd)'' | |||
*<tt><nowiki>{{Editor|</nowiki>''2''|''editor1-name''|''editor2-name''|''yyyy-mm-dd''}}</tt> | |||
which produces the text | |||
:'''Editors:''' [[User:editor1-name|editor1-name]] and [[User:editor2-name|editor2-name]] ''(added yyyy-mm-dd)'' | |||
*<tt><nowiki>{{Editor|</nowiki>''3''|''editor1-name''|''editor2-name''|''editor3-name''|''yyyy-mm-dd''}}</tt> | |||
which produces the text | |||
:'''Editors:''' [[User:editor1-name|editor1-name]], [[User:editor2-name|editor2-name]] and [[User:editor3-name|editor3-name]] ''(added yyyy-mm-dd)'' | |||
In all cases it also inserts the page in [[:Category:yyyy-mm-dd]]. | |||
</div>[[Category:Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 07:47, 22 July 2008
- Editor: [[User:{{{1}}}|{{{1}}}]] (added {{{2}}}).
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)
In all cases it also inserts the page in Category:yyyy-mm-dd.