Difference between revisions of "Template:User/doc"
(Created page with "== Usage == <pre> {{User|Example}} </pre> {{User|Example}} <pre> {{User|Example|Foo foo}} </pre> {{User|Example|Foo foo}} <pre> {{User|Example|disableUserLinkTool=true}} <...") |
|||
Line 1: | Line 1: | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "1": { | ||
+ | "label": "UserName", | ||
+ | "description": "User name (NOT NICKNAME)", | ||
+ | "example": "Example", | ||
+ | "type": "wiki-user-name", | ||
+ | "required": true | ||
+ | }, | ||
+ | "2": { | ||
+ | "label": "LinkText", | ||
+ | "description": "Shows in link that links to the user page", | ||
+ | "example": "Nickname", | ||
+ | "type": "unbalanced-wikitext", | ||
+ | "autovalue": "{{{1|}}}" | ||
+ | }, | ||
+ | "disableUserLinkTool": { | ||
+ | "label": "disableUserLinkTool", | ||
+ | "description": "Use to disable popup style", | ||
+ | "example": "true", | ||
+ | "type": "boolean", | ||
+ | "autovalue": "false" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Show some links related to a user ", | ||
+ | "format": "inline" | ||
+ | } | ||
+ | </templatedata> | ||
== Usage == | == Usage == | ||
<pre> | <pre> |
Revision as of 05:22, 25 February 2021
<templatedata> { "params": { "1": { "label": "UserName", "description": "User name (NOT NICKNAME)", "example": "Example", "type": "wiki-user-name", "required": true }, "2": { "label": "LinkText", "description": "Shows in link that links to the user page", "example": "Nickname", "type": "unbalanced-wikitext", "autovalue": "" }, "disableUserLinkTool": { "label": "disableUserLinkTool", "description": "Use to disable popup style", "example": "true", "type": "boolean", "autovalue": "false" } }, "description": "Show some links related to a user ", "format": "inline" } </templatedata>
Usage
{{User|Example}}
Example[MORE]
{{User|Example|Foo foo}}
Foo foo[MORE]
{{User|Example|disableUserLinkTool=true}}
Example[MORE]