Difference between revisions of "Template:Edit count link/doc"
Jump to navigation
Jump to search
imported>WOSlinker m (remove {{DEFAULTSORT:{{PAGENAME}}}}) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
==Usage== | ==Usage== | ||
| − | + | :{{tlc|Edit count link|''username''}} (for the English Wikipedia only) | |
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | |||
| − | + | or | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | <includeonly><!-- ADD CATEGORIES BELOW THIS LINE --> | + | :{{tlc|Edit count link|''username''|''project''}} |
| + | |||
| + | or | ||
| + | |||
| + | :{{tlc|Edit count link|username{{=}}''username''|project{{=}}''project''}} | ||
| + | |||
| + | For instance, {{tlc|Edit count link|Example|en.wikipedia.org}} would show {{Edit count link|Example|en.wikipedia.org}}. If the project name isn't provided, the template assumes that you want the count for English Wikipedia. | ||
| + | |||
| + | ==See also== | ||
| + | *{{tl|User contrib}} | ||
| + | |||
| + | {{TemplateDataHeader}} | ||
| + | <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> | ||
| + | |||
| + | <includeonly>{{Sandbox other||<!-- ADD CATEGORIES BELOW THIS LINE --> | ||
[[Category:Link templates]] | [[Category:Link templates]] | ||
[[Category:User namespace templates]] | [[Category:User namespace templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 00:56, 25 April 2020
| 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}}(for the English Wikipedia only)
or
{{Edit count link|username|project}}
or
{{Edit count link|username=username|project=project}}
For instance, {{Edit count link|Example|en.wikipedia.org}} would show Edit count. If the project name isn't provided, the template assumes that you want the count for English Wikipedia.
See also
- {{User contrib}}
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Edit count link
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 |