Template:User info/doc: Difference between revisions

From TestWiki
Content added Content deleted
m (→‎TemplateData: пример на русском)
m (20 revisions imported: testing)
 
(17 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{documentation subpage}}
== Usage ==
== Usage - anyone ==
<pre>
<pre>
{{user info
{{user info
Line 15: Line 16:
</pre>
</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 name", excluding the word "file" from the front. Example:
*To include an image, put the name of the file where it says "image name", excluding the word "file" from the front. Example: <code>| image name = BobaFett.jpg</code>
*Add your [[m:User language|languages]] in standard format, like: <code><nowiki>{{#babel:la-N|en-3}}</nowiki></code>. These are usually placed at the end of the "contact me" section.
<code>
| image name = BobaFett.jpg
</code>
*Add your [[m:User language|languages]] in standard format, like: <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.

== Usage - Wikimedia Foundation staff ==
<pre>
{{user info
| full name =
| image name =
| hover text =
| job title =
| organization = Wikimedia Foundation
| short quote =
| about me =
| about my work =
| contact me =
| disclaimer =
}}
</pre>
* See the Wikimedia Foundation's internal [https://office.wikimedia.org/wiki/Getting_started_with_User_info_and_Talk_pages guide to creating a global user page] for more details.
*To include an image, put the name of the file where it says "image name", excluding the word "file" from the front. Example: <code>| image name = BobaFett.jpg</code>
*Add your [[m:User language|languages]] in standard format, like: <code><nowiki>{{#babel:la-N|en-3}}</nowiki></code>. These are usually placed at the end of the "contact me" section.
*The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image.

Offboarding note: During off-boarding, the parameter <code>| former = true</code> should be added to the userpage. This will add the {{Template|Former staff}} template, and remove the page from the category [[:Category:Wikimedia Foundation staff]].


== TemplateData ==
== TemplateData ==
Line 41: Line 61:
],
],
"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\" without any link. This will be shown after your position.",
"type": "string"
"type": "string"
},
},
Line 78: Line 98:
"type": "string",
"type": "string",
"label": "Contact me"
"label": "Contact me"
},
"about": {
"label": "About me label",
"description": "Text to display instead of \"About me\" as a section header.",
"type": "string"
},
"work": {
"label": "About my work label",
"description": "Text to display instead of \"About my work\" as a section header.",
"type": "string"
},
"contact": {
"label": "Contact me label",
"description": "Text to display instead of \"Contact me\" as a section header.",
"type": "string"
},
},
"former": {
"former": {
Line 101: Line 106:
},
},
"uselang": {},
"uselang": {},
"image width": {}
"image width": {},
"barheight": {
"label": "Bar height",
"description": "Height, in pixels, of the coloured bars",
"example": "4px",
"type": "string",
"default": "4px",
"autovalue": ""
}
}
}
}
}
Line 112: Line 125:
* [[mw:Template:User info]]
* [[mw:Template:User info]]
* [[m:Template:User info]]
* [[m:Template:User info]]
* [[d:Q7608023]] (50+ more)

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:User namespace templates{{#translation:}}]]
}}</includeonly>

Latest revision as of 15:46, 3 January 2020

Usage - anyone[edit]

{{user info
| full name = 
| image name =
| hover text = 
| job title = 
| organization = 
| short quote =
| about me = 
| about my work = 
| contact me = 
| disclaimer =
}}
  • The "organization" parameter can also be called as "company".
  • To include an image, put the name of the file where it says "image name", excluding the word "file" from the front. Example: | image name = BobaFett.jpg
  • Add your languages in standard format, like: {{#babel:la-N|en-3}}. These are usually placed at the end of the "contact me" section.
  • The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image.

Usage - Wikimedia Foundation staff[edit]

{{user info
| full name = 
| image name =
| hover text = 
| job title = 
| organization = Wikimedia Foundation
| short quote =
| about me = 
| about my work = 
| contact me = 
| disclaimer =
}}
  • See the Wikimedia Foundation's internal guide to creating a global user page for more details.
  • To include an image, put the name of the file where it says "image name", excluding the word "file" from the front. Example: | image name = BobaFett.jpg
  • Add your languages in standard format, like: {{#babel:la-N|en-3}}. These are usually placed at the end of the "contact me" section.
  • The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image.

Offboarding note: During off-boarding, the parameter | former = true should be added to the userpage. This will add the {{Former staff}} template, and remove the page from the category Category:Wikimedia Foundation staff.

TemplateData[edit]

No description.

Template parameters

ParameterDescriptionTypeStatus
Full namefull name

Your full name, like "John Smith" or "Вася Пупкин".

Stringoptional
Positionjob title

The position or job title you wish to show you have, if any

Stringoptional
Organisationorganization company

The organisation to which your "position" refers, if any. If you work for the Wikimedia Foundation, this should be exactly "Wikimedia Foundation" without any link. This will be shown after your position.

Stringoptional
Quoteshort quote

A short quote that you'd like to show that represents how you feel

Stringoptional
Imageimage name

The name of a file that you'd like to show about you, normally a photo of you like "Example.jpg"

Fileoptional
Image hoverhover text

The label to show when people hover your image, or for screenreaders.

Stringoptional
About meabout me

Some information about you and your background.

Stringoptional
About my workabout my work

Some details about what you do on the wikis and why.

Stringoptional
Disclaimerdisclaimer

A disclaimer about your work, if any. If your organisation is set to "Wikimedia Foundation", it will show the regular Foundation staff disclaimer.

Stringoptional
Contact mecontact me

Details of how you can be contacted beyond on-wiki methods.

Stringoptional
Former staff identifierformer

If the account belongs to a former Wikimedia Foundation staff member, this should be set to 'true' (or to any string) to tag the account as belonging to a former staff member.

Example
true
Stringoptional
uselanguselang

no description

Unknownoptional
image widthimage width

no description

Unknownoptional
Bar heightbarheight

Height, in pixels, of the coloured bars

Default
4px
Example
4px
Auto value
Stringoptional

Copies[edit]

The master version of this template is at wmf:Template:User info. The following wikis have copies of this template: