Difference between revisions of "Template:Contribs"
(First version. As usual, several more might be required.) |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly>[[Special:Contributions/{{{1|{{ #ifexpr: {{ #ifeq: {{NAMESPACEE}} | User | 1 | 0 }} or {{ #ifeq: {{NAMESPACEE}} | User_talk | 1 | 0 }} | {{PAGENAMEE}} | NO_TARGET_SET }}}}}|{{{2|Contributions}}}]]</includeonly><noinclude> |
This template creates a link to the contributions page of a given user. | This template creates a link to the contributions page of a given user. | ||
Line 5: | Line 5: | ||
===Simple=== | ===Simple=== | ||
<pre>{{contribs|TARGET NICK}}</pre> | <pre>{{contribs|TARGET NICK}}</pre> | ||
− | In the most simple case, you just replace <code>TARGET NICK</code> by the nickname whose contributions you want to link to. The link's text will simply be "Contributions". If this template is used within the user or user_talk namespace, this parameter defaults to the page name of the page it's being used on (iow, if you put this template on User_talk:ExampleUser, the template will default to linking to ExampleUser's contributions). | + | In the most simple case, you just replace <code>TARGET NICK</code> by the nickname whose contributions you want to link to. The link's text will simply be "Contributions". Remember to use underscores instead of spaces for nicknames that consist of more than one word. |
+ | |||
+ | If this template is used within the user or user_talk namespace, this parameter defaults to the page name of the page it's being used on (iow, if you put this template on User_talk:ExampleUser, the template will default to linking to ExampleUser's contributions). | ||
===Custom text=== | ===Custom text=== | ||
<pre>{{contribs|TARGET NICK|LINK TEXT}}</pre> | <pre>{{contribs|TARGET NICK|LINK TEXT}}</pre> | ||
The default "Contributions" text can be replaced by adding a second argument with the text you want the link to say. | The default "Contributions" text can be replaced by adding a second argument with the text you want the link to say. | ||
− | |||
− | |||
− | |||
− | |||
===Spambots=== | ===Spambots=== | ||
Line 19: | Line 17: | ||
Due to the defaults set within the template, a simple call to the template without arguments will automatically make the necessary settings to link to a spambot's contributions page, thus reducing the time spent tagging highly active spambots. | Due to the defaults set within the template, a simple call to the template without arguments will automatically make the necessary settings to link to a spambot's contributions page, thus reducing the time spent tagging highly active spambots. | ||
− | [[Category:Templates]]</noinclude> | + | [[Category:Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 13:46, 22 January 2008
This template creates a link to the contributions page of a given user.
Contents
Usage
Simple
{{contribs|TARGET NICK}}
In the most simple case, you just replace TARGET NICK
by the nickname whose contributions you want to link to. The link's text will simply be "Contributions". Remember to use underscores instead of spaces for nicknames that consist of more than one word.
If this template is used within the user or user_talk namespace, this parameter defaults to the page name of the page it's being used on (iow, if you put this template on User_talk:ExampleUser, the template will default to linking to ExampleUser's contributions).
Custom text
{{contribs|TARGET NICK|LINK TEXT}}
The default "Contributions" text can be replaced by adding a second argument with the text you want the link to say.
Spambots
{{contribs}}
Due to the defaults set within the template, a simple call to the template without arguments will automatically make the necessary settings to link to a spambot's contributions page, thus reducing the time spent tagging highly active spambots.