Template:User info: Difference between revisions
Created page with "<templatestyles src="User info/styles.css" /> <noinclude> <languages/> </noinclude>{{#switch:<translate></translate> | = {{#if:{{{former|}}}| {{Former Engineer}} }}<div style="margin-top: 1em;"> <div class="hr-rainbow" style="width:100%; float:{{dir|{{pagelang}}|right|left}}; height:4px;"></div> }}" |
No edit summary |
||
Line 1: | Line 1: | ||
⚫ | |||
<noinclude> |
<noinclude> |
||
<languages/> |
<languages/> |
||
⚫ | |||
</noinclude>{{#switch:<translate></translate> |
</noinclude>{{#switch:<translate></translate> |
||
| = |
| = |
||
{{#if:{{{former|}}}| {{Former |
{{#if:{{{former|}}}| {{Former staff}} }}<div style="margin-top: 1em;"><hr class="rainbow" /></div> |
||
__NOTOC__ |
|||
<div class="hr-rainbow" style="width:100%; float:{{dir|{{pagelang}}|right|left}}; height:4px;"></div> |
|||
<div style="padding-top: 2em;"> |
|||
[[File:{{#if:{{{image name|}}}|{{{image name}}}{{!}}alt={{{nick name}}}|Anonymous emblem.svg{{!}}alt=<translate><!--T:1--> No photo</translate>}}|frameless|160px|{{dir|{{pagelang}}|left|right}}|{{#if:{{{hover text|}}}|{{{hover text|}}}|{{{hover text|{{{nick name}}}, {{{job title}}}}}}}}]] |
|||
{{#if:{{{nick name|}}}| |
|||
<div style="font-size: 2.6em; line-height: 1.2; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;padding-top: .5em;">{{{full name|}}}</div>}} |
|||
{{#if:{{{job title|}}}| |
|||
<div style="font-size: 1.8em; line-height: 1.2; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{job title}}}{{#if:{{{organization|{{{company|}}}}}}|, {{{organization|{{{company|}}}}}}}}</div>}} |
|||
{{#if:{{{short quote|}}}|<div style="padding-top: 16px; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{short quote}}}</div>}} |
|||
</div> |
|||
{{Clear}} |
|||
<div style="display: flex; flex-direction: row; flex-wrap: wrap; margin-top: 1em;"> |
|||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 260px; margin-{{dir|{{pagelang}}|left|right}}: 2em;"> |
|||
<h2 style="font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; display: block;">{{{about|<translate><!--T:2--> About me</translate>}}}</h2> |
|||
{{{about me}}} |
|||
</div> |
|||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 260px; margin-{{dir|{{pagelang}}|left|right}}: 2em;"> |
|||
<h2 style="font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; display: block;">{{{work|<translate><!--T:3--> My work</translate>}}}</h2> |
|||
{{{about my work}}} |
|||
{{#if:{{{disclaimer|}}}|<div style="color: #555; font-size: smaller; margin: 1em 0;">'''Disclaimer:''' {{{disclaimer}}}</div>|{{#ifeq:{{{organization|}}}|Wikimedia Foundation|<div style="color: #555; font-size: smaller; margin: 1em 0;">'''Disclaimer:''' I work for the Wikimedia Foundation, and this is the account I intend to use for edits or statements I make in that role. However, the Foundation does not vet all my activity, so edits, statements, or other contributions made by this account may not reflect the views of the Foundation. </div>}} }} |
|||
</div> |
|||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 140px; padding: 0 1em 1em 1em; background: #f4f4f4;"> |
|||
<h2 style="font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; display: block;">{{{contact|<translate><!--T:4--> Contact me</translate>}}}</h2> |
|||
{{{contact me}}} |
|||
</div> |
|||
</div> |
|||
| #default= |
|||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:User info|noshift=1|uselang={{int:lang}}}} |
|||
}}<noinclude> |
|||
{{Clear}} |
|||
{{Documentation|content= |
|||
{{documentation subpage}} |
|||
<translate> |
|||
== Usage == <!--T:5--> |
|||
</translate> |
|||
<pre> |
|||
{{user info |
|||
| full name = |
|||
| image name = |
|||
| hover text = |
|||
| job title = |
|||
| organization = |
|||
| short quote = |
|||
| about me = |
|||
| about my work = |
|||
| contact me = |
|||
| disclaimer = |
|||
}} |
|||
</pre> |
|||
*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: |
|||
<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. |
|||
== TemplateData == |
|||
{{User info/doc}} |
|||
<translate> |
|||
== Copies == <!--T:6--> |
|||
</translate> |
|||
The master version of this template is at [[wmf:Template:User info]]. The following wikis have copies of this template: |
|||
* [[w:Template:User info]] |
|||
* [[m:Template:User info]] |
|||
}} |
}} |
||
</noinclude> |
Revision as of 11:49, 24 December 2024
About me
{{{about me}}}
My work
{{{about my work}}}
Contact me
{{{contact me}}}
Usage
{{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}}
. - The "hover text" parameter is for the little pop-up text that comes up when your mouse hovers over the image.
TemplateData
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
| nick 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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Nick name | nick name | Your nick 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
Copies
The master version of this template is at wmf:Template:User info. The following wikis have copies of this template: