Jump to content

Template:User info/doc: Difference between revisions

From wikiNonStop
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{TemplateData header}} <templatedata> { "description": { "en": "A pretty display template for information about a user, predominantly used to identify staff of the Wikimedia Foundation and its affiliate organisations.", "cs": "Hezká šablona pro zobrazení informací o uživateli, která se používá převážně k identifikaci zaměstnanců Wik..."
 
No edit summary
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}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Please add categories at the bottom of this page, and interwikis on Wikidata!! -->
{{user info
| nick name = <nowiki>{{{nick 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 ==
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}}.

<syntaxhighlight lang="wikitext">
{{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 =
}}
</syntaxhighlight>
* 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: <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>.
* 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 [[mw:Wikimedia Foundation Design/Color usage|'Agora' colour palette]].

== TemplateData ==
{{TemplateData header}}
{{TemplateData header}}
<templatedata>
<templatedata>
{
{
"description": {
"description": "",
"en": "A pretty display template for information about a user, predominantly used to identify staff of the Wikimedia Foundation and its affiliate organisations.",
"cs": "Hezká šablona pro zobrazení informací o uživateli, která se používá převážně k identifikaci zaměstnanců Wikimedia Foundation a jejích přidružených organizací."
},
"format": "block",
"params": {
"params": {
"full name": {
"full name": {
"label": {
"label": "Full name",
"description": "Your full name, like \"John Smith\" or \"Samantha Jones\".",
"en": "Full name",
"default": "blank",
"cs": "Celé jméno"
},
"description": {
"en": "Your full name, like \"John Smith\" or \"Samantha Jones\".",
"cs": "Vaše celé jméno, například \"John Smith\" nebo \"Samantha Jones\"."
},
"type": "string"
"type": "string"
},
},
"job title": {
"job title": {
"label": {
"label": "Position",
"description": "The position or job title you wish to show you have, if any",
"en": "Position",
"default": "blank",
"cs": "Pozice"
},
"description": {
"en": "The position or job title you wish to show you have, if any",
"cs": "Pozice nebo pracovní zařazení, které chcete ukázat, pokud existuje"
},
"type": "string"
"type": "string"
},
},
Line 36: Line 67:
"company"
"company"
],
],
"label": {
"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.",
"en": "Organisation",
"default": "blank",
"cs": "Organizace"
},
"description": {
"en": "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.",
"cs": "Organizace, na kterou se vaše \"pozice\" vztahuje, pokud existuje. Pokud pracujete pro Wikimedia Foundation, mělo by to být přesně \"Wikimedia Foundation\". To se zobrazí po vaší pozici."
},
"type": "string"
"type": "string"
},
},
"short quote": {
"short quote": {
"label": {
"label": "Quote",
"description": "A short quote that you'd like to show that represents how you feel",
"en": "Quote",
"cs": "Citát"
},
"description": {
"en": "A short quote that you'd like to show that represents how you feel",
"cs": "Krátký citát, který byste rádi ukázali a který vyjadřuje, jak se cítíte"
},
"type": "string"
"type": "string"
},
},
"image name": {
"image": {
"label": {
"label": "Image",
"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\"",
"en": "Image",
"default": "Wikimedia_Foundation_office_camera_shy_250px.png",
"cs": "Obrázek"
"type": "string/wiki-file-name"
},
},
"description": {
"image width": {
"en": "The name of a file that you'd like to show about you, normally a photo of you like \"Example.jpg\"",
"label": "Image width",
"cs": "Název souboru, který o sobě chcete zobrazit, obvykle vaši fotku, jako je \"Example.jpg\""
"description": "Width of the displayed image",
},
"default": "300px"
"type": "wiki-file-name"
},
},
"hover text": {
"hover text": {
"description": "The label to show when people hover your image, or for screenreaders.",
"description": {
"en": "The label to show when people hover your image, or for screenreaders.",
"cs": "Štítek, který se zobrazí, když lidé umístí kurzor na váš obrázek, nebo pro čtečky obrazovky."
},
"type": "string",
"type": "string",
"default": "full name, job title",
"label": {
"en": "Image hover",
"label": "Image hover"
"cs": "Umístění obrázku"
}
},
},
"about me": {
"about me": {
"description": {
"description": "Some information about you and your background.",
"en": "Some information about you and your background.",
"cs": "Některé informace o vás a vašem pozadí."
},
"type": "string",
"type": "string",
"default": "blank",
"label": {
"en": "About me",
"label": "About me"
"cs": "O mně"
}
},
},
"about my work": {
"about my work": {
"description": {
"description": "Some details about what you do on the wikis and why.",
"en": "Some details about what you do on the wikis and why.",
"cs": "Některé podrobnosti o tom, co děláte na wiki a proč."
},
"type": "string",
"type": "string",
"default": "blank",
"label": {
"en": "About my work",
"label": "About my work"
"cs": "O mé práci"
}
},
},
"disclaimer": {
"disclaimer": {
"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.",
"description": {
"en": "A disclaimer about your work, if any. If your organisation is set to \"Wikimedia Foundation\", it will show the regular Foundation staff disclaimer.",
"cs": "Prohlášení o vaší práci, pokud existuje. Pokud je vaše organizace nastavena na \"Wikimedia Foundation\", zobrazí se běžné prohlášení zaměstnanců nadace."
},
"type": "string",
"type": "string",
"default": "blank",
"label": {
"en": "Disclaimer",
"label": "Disclaimer"
"cs": "Zřeknutí se odpovědnosti"
}
},
},
"contact me": {
"contact me": {
"description": {
"description": "Details of how you can be contacted beyond on-wiki methods.",
"en": "Details of how you can be contacted beyond on-wiki methods.",
"cs": "Podrobnosti o tom, jak vás lze kontaktovat nad rámec metod na wiki."
},
"type": "string",
"type": "string",
"default": "blank",
"label": {
"en": "Contact me",
"label": "Contact me"
},
"cs": "Kontaktujte mě"
"contact width": {
}
"description": "Width of contact box.",
"type": "string",
"default": "same as image width",
"label": "Contact width"
},
},
"about": {
"about": {
"label": {
"label": "About me header",
"en": "About me label",
"description": "Text to display instead of \"About me\" as a section header.",
"default": "About me",
"cs": "Štítek O mně"
},
"description": {
"en": "Text to display instead of \"About me\" as a section header.",
"cs": "Text, který se má zobrazit namísto \"O mně\" jako záhlaví sekce."
},
"type": "string"
"type": "string"
},
},
"work": {
"work": {
"label": {
"label": "My work header",
"en": "About my work label",
"description": "Text to display instead of \"My work\" as a section header.",
"default": "My work",
"cs": "O mé pracovní značce"
},
"description": {
"en": "Text to display instead of \"About my work\" as a section header.",
"cs": "Text, který se má zobrazit namísto \"O mé práci\" jako záhlaví sekce."
},
"type": "string"
"type": "string"
},
},
"contact": {
"contact": {
"label": {
"label": "Contact header",
"en": "Contact me label",
"description": "Text to display instead of \"Contact\" as a section header.",
"default": "Contact",
"cs": "Štítek Kontaktujte mě"
},
"description": {
"en": "Text to display instead of \"Contact me\" as a section header.",
"cs": "Text k zobrazení namísto \"Kontaktujte mě\" jako záhlaví sekce."
},
"type": "string"
"type": "string"
},
},
"former": {
"c1": {
"label": {
"label": "Colour 1",
"description": "Colour of the first section of the header bar.",
"en": "Former staff",
"default":"#990000",
"cs": "Bývalý personál"
"type": "string"
},
},
"description": {
"c2": {
"en": "Whether you are former staff. If set, the \"former staff\" template will be shown above this template.",
"label": "Colour 2",
"cs": "Když už jste bývalí zaměstnanci. Pokud je nastavena, šablona \"bývalý personál\" se zobrazí nad touto šablonou."
"description": "Colour of the second section of the header bar.",
},
"default":"#339966",
"example": "Yes",
"type": "boolean"
"type": "string"
},
"c3": {
"label": "Colour 3",
"description": "Colour of the third section of the header bar.",
"default":"#A7D7F9",
"type": "string"
}
}
}
}
}
}
</templatedata>
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->


== 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]]

<includeonly>{{Sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:User namespace templates]]
}}</includeonly>
}}</includeonly>

Revision as of 12:00, 24 December 2024

Template:Pp-protected



{{{nick name}}}
{{{hover text}}}


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 Edit.

{{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

This is the TemplateData documentation for this template used by VisualEditor and other tools.

User info

Template parameters

ParameterDescriptionTypeStatus
Full namefull name

Your full name, like "John Smith" or "Samantha Jones".

Default
blank
Stringoptional
Positionjob title

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

Default
blank
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". This will be shown after your position.

Default
blank
Stringoptional
Quoteshort quote

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

Stringoptional
Imageimage

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
Fileoptional
Image widthimage width

Width of the displayed image

Default
300px
Unknownoptional
Image hoverhover text

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

Default
full name, job title
Stringoptional
About meabout me

Some information about you and your background.

Default
blank
Stringoptional
About my workabout my work

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

Default
blank
Stringoptional
Disclaimerdisclaimer

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

Default
blank
Stringoptional
Contact mecontact me

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

Default
blank
Stringoptional
Contact widthcontact width

Width of contact box.

Default
same as image width
Stringoptional
About me headerabout

Text to display instead of "About me" as a section header.

Default
About me
Stringoptional
My work headerwork

Text to display instead of "My work" as a section header.

Default
My work
Stringoptional
Contact headercontact

Text to display instead of "Contact" as a section header.

Default
Contact
Stringoptional
Colour 1c1

Colour of the first section of the header bar.

Default
#990000
Stringoptional
Colour 2c2

Colour of the second section of the header bar.

Default
#339966
Stringoptional
Colour 3c3

Colour of the third section of the header bar.

Default
#A7D7F9
Stringoptional

Copies

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