Template:User info/doc: Difference between revisions
Reverted 1 edit by Rambabu Maihar Dev (talk): Rv blanking, misplaced biography. (TW) |
→Usage: syntaxhighlight lang="wikitext" |
||
(19 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{pp-protected|reason=Persistent [[WP:Disruptive editing|disruptive editing]] - people editing the page when they don't mean to.|small=yes}}</noinclude>{{documentation subpage}} |
|||
{{documentation subpage}} |
|||
<!-- Please add categories at the bottom of this page, and interwikis on Wikidata!! --> |
<!-- Please add categories at the bottom of this page, and interwikis on Wikidata!! --> |
||
{{user info |
|||
| full name = <nowiki>{{{full name}}}</nowiki> |
|||
| image = Wikimedia Foundation office camera shy 250px.png |
|||
| hover text = <nowiki>{{{hover text}}}</nowiki> |
|||
| job title = <nowiki>{{{job title}}}</nowiki> |
|||
| organization = <nowiki>{{{organization}}}</nowiki> |
|||
| short quote = <nowiki>{{{short quote}}}</nowiki> |
|||
| about me = <nowiki>{{{about me}}}</nowiki> |
|||
| about my work = <nowiki>{{{about my work}}}</nowiki> |
|||
| contact me = <nowiki>{{{contact me}}}</nowiki> |
|||
| disclaimer = <nowiki>{{{disclaimer}}}</nowiki> |
|||
}} |
|||
---- |
|||
== Usage == |
== Usage == |
||
This header template has a |
This header template has a user talk page variant formatted in a matching style, available at {{tl|User info talk}}. On a mobile device, the columns are ignored and text is reflowed into sections stacked vertically. |
||
To use this template, copy and paste the text below into your {{edit|Special:MyPage|user page}}. |
To use this template, copy and paste the text below into your {{edit|Special:MyPage|user page}}. |
||
<syntaxhighlight lang="wikitext"> |
|||
<pre> |
|||
{{user info |
{{user info |
||
| full name = |
| full name = |
||
| image |
| image = |
||
| |
| image width = |
||
| hover text = |
|||
| job title = |
| job title = |
||
| organization = |
| organization = |
||
| short quote = |
| short quote = |
||
| about me = |
| about me = |
||
| about my work = |
| about my work = |
||
| contact me = |
| contact me = |
||
| |
| contact width = |
||
| |
| disclaimer = |
||
⚫ | |||
| c2 = |
| c2 = |
||
| c3 = |
| c3 = |
||
⚫ | |||
}} |
}} |
||
</syntaxhighlight> |
|||
</pre> |
|||
* The "organization" parameter can also be called as "company". |
* The "organization" parameter can also be called as "company". |
||
* To include an image, put the name of the file where it says "image |
* To include an image, put the name of the file where it says "image=", excluding the word "file" from the front. Example: <code> | image = BobaFett.jpg </code> |
||
* To include no image, use <code> | image = blank </code> |
|||
* Add your [[m:User language|languages]] in standard format. Example: <code><nowiki>{{#babel:la-N|en-3}}</nowiki></code>. |
* Add your [[m:User language|languages]] in standard format. Example: <code><nowiki>{{#babel:la-N|en-3}}</nowiki></code>. |
||
* The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image. |
* The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image. |
||
Line 39: | Line 54: | ||
"label": "Full name", |
"label": "Full name", |
||
"description": "Your full name, like \"John Smith\" or \"Samantha Jones\".", |
"description": "Your full name, like \"John Smith\" or \"Samantha Jones\".", |
||
"default": "blank", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 44: | Line 60: | ||
"label": "Position", |
"label": "Position", |
||
"description": "The position or job title you wish to show you have, if any", |
"description": "The position or job title you wish to show you have, if any", |
||
"default": "blank", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 52: | Line 69: | ||
"label": "Organisation", |
"label": "Organisation", |
||
"description": "The organisation to which your \"position\" refers, if any. If you work for the Wikimedia Foundation, this should be exactly \"Wikimedia Foundation\". This will be shown after your position.", |
"description": "The organisation to which your \"position\" refers, if any. If you work for the Wikimedia Foundation, this should be exactly \"Wikimedia Foundation\". This will be shown after your position.", |
||
"default": "blank", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 59: | Line 77: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"image |
"image": { |
||
"label": "Image", |
"label": "Image", |
||
"description": "The name of a file that you'd like to show about you, normally a photo of you |
"description": "The name of a file that you'd like to show about you, normally a photo of you.<br>To show no image, write the word \"blank\"", |
||
"default": "Wikimedia_Foundation_office_camera_shy_250px.png", |
|||
"type": "string/wiki-file-name" |
"type": "string/wiki-file-name" |
||
}, |
|||
"image width": { |
|||
"label": "Image width", |
|||
"description": "Width of the displayed image", |
|||
"default": "300px" |
|||
}, |
}, |
||
"hover text": { |
"hover text": { |
||
"description": "The label to show when people hover your image, or for screenreaders.", |
"description": "The label to show when people hover your image, or for screenreaders.", |
||
"type": "string", |
"type": "string", |
||
"default": "full name, job title", |
|||
"label": "Image hover" |
"label": "Image hover" |
||
}, |
}, |
||
Line 72: | Line 97: | ||
"description": "Some information about you and your background.", |
"description": "Some information about you and your background.", |
||
"type": "string", |
"type": "string", |
||
"default": "blank", |
|||
"label": "About me" |
"label": "About me" |
||
}, |
}, |
||
Line 77: | Line 103: | ||
"description": "Some details about what you do on the wikis and why.", |
"description": "Some details about what you do on the wikis and why.", |
||
"type": "string", |
"type": "string", |
||
"default": "blank", |
|||
"label": "About my work" |
"label": "About my work" |
||
}, |
}, |
||
"disclaimer": { |
"disclaimer": { |
||
"description": "A disclaimer about your work, if any. |
"description": "A disclaimer about your work, if any.<br>If your organisation is set to \"Wikimedia Foundation\", it will show the regular Foundation staff disclaimer.", |
||
"type": "string", |
"type": "string", |
||
"default": "blank", |
|||
"label": "Disclaimer" |
"label": "Disclaimer" |
||
}, |
}, |
||
Line 87: | Line 115: | ||
"description": "Details of how you can be contacted beyond on-wiki methods.", |
"description": "Details of how you can be contacted beyond on-wiki methods.", |
||
"type": "string", |
"type": "string", |
||
"default": "blank", |
|||
"label": "Contact me" |
"label": "Contact me" |
||
}, |
|||
"contact width": { |
|||
"description": "Width of contact box.", |
|||
"type": "string", |
|||
"default": "same as image width", |
|||
"label": "Contact width" |
|||
}, |
}, |
||
"about": { |
"about": { |
||
"label": "About me |
"label": "About me header", |
||
"description": "Text to display instead of \"About me\" as a section header.", |
"description": "Text to display instead of \"About me\" as a section header.", |
||
"default": "About me", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"work": { |
"work": { |
||
"label": " |
"label": "My work header", |
||
"description": "Text to display instead of \" |
"description": "Text to display instead of \"My work\" as a section header.", |
||
"default": "My work", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
"contact": { |
"contact": { |
||
"label": "Contact |
"label": "Contact header", |
||
"description": "Text to display instead of \"Contact |
"description": "Text to display instead of \"Contact\" as a section header.", |
||
"default": "Contact", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 107: | Line 145: | ||
"label": "Colour 1", |
"label": "Colour 1", |
||
"description": "Colour of the first section of the header bar.", |
"description": "Colour of the first section of the header bar.", |
||
"default":"#990000", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 112: | Line 151: | ||
"label": "Colour 2", |
"label": "Colour 2", |
||
"description": "Colour of the second section of the header bar.", |
"description": "Colour of the second section of the header bar.", |
||
"default":"#339966", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
Line 117: | Line 157: | ||
"label": "Colour 3", |
"label": "Colour 3", |
||
"description": "Colour of the third section of the header bar.", |
"description": "Colour of the third section of the header bar.", |
||
"default":"#A7D7F9", |
|||
"type": "string" |
"type": "string" |
||
} |
} |
||
Line 124: | Line 165: | ||
== Copies == |
== Copies == |
||
The master version of this template is at [[wmf:Template:User info]]. The following wikis have copies of this template: |
The master version of this template is at [[wmf:Template:User info]] on Foundation Wiki. The following wikis have copies of this template: |
||
⚫ | |||
* [[w:fr:Modèle:Info utilisateur]] |
* [[w:fr:Modèle:Info utilisateur]] |
||
⚫ | |||
* [[c:Template:User info2]] |
* [[c:Template:User info2]] |
||
* [[mw:Template:User info]] |
* [[mw:Template:User info]] |
||
* [[m:Template:User info]] |
* [[m:Template:User info]] |
||
<includeonly>{{ |
<includeonly>{{Sandbox other|| |
||
<!-- Categories below this line, please; interwikis at Wikidata --> |
<!-- Categories below this line, please; interwikis at Wikidata --> |
||
[[Category:User namespace templates]] |
|||
}}</includeonly> |
}}</includeonly> |
Latest revision as of 22:46, 16 May 2023
This is a documentation subpage for Template:User info. It may contain usage information, categories and other content that is not part of the original template page. |
|
Contact{{{contact me}}}
|
Usage
This header template has a user talk page variant formatted in a matching style, available at {{User info talk}}. On a mobile device, the columns are ignored and text is reflowed into sections stacked vertically.
To use this template, copy and paste the text below into your
.{{user info
| full name =
| image =
| image width =
| hover text =
| job title =
| organization =
| short quote =
| about me =
| about my work =
| contact me =
| contact width =
| disclaimer =
| c1 =
| c2 =
| c3 =
}}
- The "organization" parameter can also be called as "company".
- To include an image, put the name of the file where it says "image=", excluding the word "file" from the front. Example:
| image = BobaFett.jpg
- To include no image, use
| image = blank
- Add your languages in standard format. Example:
{{#babel:la-N|en-3}}
. - The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image.
- Default header bar colours are the Wikimedia Foundation 'Agora' colour palette.
TemplateData
TemplateData for User info
Parameter | Description | Type | Status | |
---|---|---|---|---|
Full name | full name | Your full name, like "John Smith" or "Samantha Jones".
| String | optional |
Position | job title | The position or job title you wish to show you have, if any
| String | optional |
Organisation | organization company | The organisation to which your "position" refers, if any. If you work for the Wikimedia Foundation, this should be exactly "Wikimedia Foundation". This will be shown after your position.
| String | optional |
Quote | short quote | A short quote that you'd like to show that represents how you feel | String | optional |
Image | image | The name of a file that you'd like to show about you, normally a photo of you.<br>To show no image, write the word "blank"
| File | optional |
Image width | image width | Width of the displayed image
| Unknown | optional |
Image hover | hover text | The label to show when people hover your image, or for screenreaders.
| String | optional |
About me | about me | Some information about you and your background.
| String | optional |
About my work | about my work | Some details about what you do on the wikis and why.
| String | optional |
Disclaimer | disclaimer | A disclaimer about your work, if any.<br>If your organisation is set to "Wikimedia Foundation", it will show the regular Foundation staff disclaimer.
| String | optional |
Contact me | contact me | Details of how you can be contacted beyond on-wiki methods.
| String | optional |
Contact width | contact width | Width of contact box.
| String | optional |
About me header | about | Text to display instead of "About me" as a section header.
| String | optional |
My work header | work | Text to display instead of "My work" as a section header.
| String | optional |
Contact header | contact | Text to display instead of "Contact" as a section header.
| String | optional |
Colour 1 | c1 | Colour of the first section of the header bar.
| String | optional |
Colour 2 | c2 | Colour of the second section of the header bar.
| String | optional |
Colour 3 | c3 | Colour of the third section of the header bar.
| String | optional |
Copies
The master version of this template is at wmf:Template:User info on Foundation Wiki. The following wikis have copies of this template:
- w:fr:Modèle:Info utilisateur
- w:ru:Шаблон:User info
- c:Template:User info2
- mw:Template:User info
- m:Template:User info