Difference between revisions of "Template:Edit count link/doc"
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== | ||
| − | + | :{{tlc|Edit count link|''username''|''project''}} | |
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | |||
| − | + | or | |
| − | + | ||
| − | + | :{{tlc|Edit count link|username{{=}}''username''|project{{=}}''project''}} | |
| − | |||
| − | |||
<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
| 40px | This is a documentation subpage for Template:Edit count link. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{Edit count link|username|project}}
or
{{Edit count link|username=username|project=project}}
Displays a link to an edit count tool.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Username | username 1 | The username of the user whose edit count should be displayed.
| User | required |
| Project | project 2 | The project from which the user's edit count should be retrieved.
| String | required |
| Link label | linklabel 3 | A label for the link to be used in place of the default.
| String | optional |