Template:User/doc: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Username1

Name of the user to link to

Example
Pymonkibot
Stringrequired
Display name2

If set to anything, changes the text of the link to the user's page

Example
Pymonkibot but evil
Stringoptional
Contribscontribs

If set to anything, adds a link to the user's contributions as well

Example
y
Booleanoptional

Sample usage

{{user|Pymonkibot}} Pymonkibot (talk)
{{user|Pymonkibot|Pymonkibot but evil}} Pymonkibot but evil (talk)
{{user|Pymonkibot|contribs=y}} Pymonkibot (talk | contribs)