Difference between revisions of "Template:Edit count link/doc"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
m (remove {{DEFAULTSORT:{{PAGENAME}}}})
imported>Enterprisey
(update with templatedata)
Line 2: Line 2:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
==Usage==
 
==Usage==
===Syntax===
+
:{{tlc|Edit count link|''username''|''project''}}
<pre>
 
{{edit count link
 
|username=
 
|2letterlanguage=
 
|projectname=
 
|linkname=
 
}}
 
</pre>
 
  
==Parameters==
+
or
*'''username''' is the username (if the username has spaces insert ''_'' instead of the space) of the user who wants the edit count link. ''Do not'' put ''User:'' in front of your username.
+
 
*'''2letterlanguage''' is the 2-letter language abbreviation of the Wikipedia project.
+
:{{tlc|Edit count link|username{{=}}''username''|project{{=}}''project''}}
*'''projectname''' is the project name of the desired edit count of a user (ex. commons, wikipedia, the URL of the site)
 
*'''linkname''' will display the link as something else (ex. ''Edit counter'' rather than the entire URL.)
 
  
 
<includeonly><!-- ADD CATEGORIES BELOW THIS LINE -->
 
<includeonly><!-- ADD CATEGORIES BELOW THIS LINE -->
Line 22: Line 12:
 
[[Category:User namespace templates]]
 
[[Category:User namespace templates]]
 
</includeonly>
 
</includeonly>
 +
 +
<templatedata>
 +
{
 +
"params": {
 +
"username": {
 +
"aliases": [
 +
"1"
 +
],
 +
"label": "Username",
 +
"description": "The username of the user whose edit count should be displayed.",
 +
"type": "wiki-user-name",
 +
"default": "Example",
 +
"required": true
 +
},
 +
"project": {
 +
"aliases": [
 +
"2"
 +
],
 +
"label": "Project",
 +
"description": "The project from which the user's edit count should be retrieved.",
 +
"type": "string",
 +
"default": "en.wikipedia.org",
 +
"required": true
 +
},
 +
"linklabel": {
 +
"aliases": [
 +
"3"
 +
],
 +
"label": "Link label",
 +
"description": "A label for the link to be used in place of the default.",
 +
"type": "string",
 +
"default": "Edit count"
 +
}
 +
},
 +
"description": "Displays a link to an edit count tool."
 +
}
 +
</templatedata>

Revision as of 14:41, 23 January 2015

Usage

{{Edit count link|username|project}}

or

{{Edit count link|username=username|project=project}}


Displays a link to an edit count tool.

Template parameters

ParameterDescriptionTypeStatus
Usernameusername 1

The username of the user whose edit count should be displayed.

Default
Example
Userrequired
Projectproject 2

The project from which the user's edit count should be retrieved.

Default
en.wikipedia.org
Stringrequired
Link labellinklabel 3

A label for the link to be used in place of the default.

Default
Edit count
Stringoptional