Template:User/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "<templatedata> { "params": { "1": { "label": "Username", "description": "Name of the user to link to", "example": "Pymonkibot", "type": "string", "required": true }, "2": { "label": "Display name", "description": "If set to anything, changes the text of the link to the user's page", "example": "Pymonkibot but evil", "type": "string" }, "contribs": { "label": "Contribs", "description": "If set to anything, adds a link to the use..." |
mNo edit summary |
||
| Line 37: | Line 37: | ||
|{{temp example|user|Pymonkibot|<nowiki>contribs=y</nowiki>}} | |{{temp example|user|Pymonkibot|<nowiki>contribs=y</nowiki>}} | ||
|{{user|Pymonkibot|contribs=y}} | |{{user|Pymonkibot|contribs=y}} | ||
|}<includeonly>[[Category:Meta templates]][[Category:Link templates]]</includeonly> | |}<includeonly>[[Category:Meta templates]][[Category:Link templates]]</includeonly><noinclude>[[Category:Documentation]]</noinclude> | ||
Latest revision as of 22:43, 16 December 2024
Creates formatted links to a specified user's page and talk page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Username | 1 | Name of the user to link to
| String | required |
| Display name | 2 | If set to anything, changes the text of the link to the user's page
| String | optional |
| Contribs | contribs | If set to anything, adds a link to the user's contributions as well
| Boolean | optional |
Sample usage
{{user|Pymonkibot}}
|
Pymonkibot (talk) |
{{user|Pymonkibot|Pymonkibot but evil}}
|
Pymonkibot but evil (talk) |
{{user|Pymonkibot|contribs=y}}
|
Pymonkibot (talk | contribs) |