Template:User info: Difference between revisions
No edit summary |
m Protected "Template:User info" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading] |
||
(7 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
------------> |
------------> |
||
<div style="padding-top: 16px; "> |
<div style="padding-top: 16px; "> |
||
[[File:{{#if:{{{image name|}}}|{{{image name}}}{{!}}alt={{{full name}}}|Anonymous emblem.svg{{!}}alt=<translate><!--T: |
[[File:{{#if:{{{image name|}}}|{{{image name}}}{{!}}alt={{{full name}}}|Anonymous emblem.svg{{!}}alt=<translate><!--T:1--> No picture</translate>}}|frameless|{{#if:{{{image width|}}}|{{{image width}}}|160px}}|{{dir|{{TRANSLATIONLANGUAGE}}|left|right}}|{{#if:{{{hover text|}}}|{{{hover text|}}}|{{{hover text|{{{nick name}}}, {{{job title}}}}}}}}]] |
||
{{#ifeq:{{{image|{{{image name|}}}}}}|blank||{{#if:{{{image|{{{image name|}}}}}}| |
|||
[[File:{{{image|{{{image name}}}}}}|alt={{{full name}}}|{{{image_width|300px}}}|right|{{#if:{{{hover text|}}}|{{{hover text|}}}|{{{full name}}}, {{{job title}}}}}]]}}}} |
|||
</div> |
</div> |
||
<!----------- |
<!----------- |
||
Name |
Name |
||
------------> |
------------> |
||
<div class="user-info |
{{#if:{{{nick name|}}}|<div class="user-info-name" >{{{nick name|}}}</div>}} |
||
<!----------- |
<!----------- |
||
Job |
Job |
||
------------> |
------------> |
||
⚫ | |||
<div class="user-info" style="font-size: 180%; padding-top: 16px; font-family:sans-serif; line-height:30px;"> |
|||
⚫ | |||
<!----------- |
<!----------- |
||
Quote |
Quote |
||
------------> |
------------> |
||
{{#if:{{{short quote|}}}|<div class="user-info-quot">{{{short quote}}}</div>}} |
|||
<div class="user-info" style="padding-top: 16px; color:#777; font-family:sans-serif;"> |
|||
{{{short quote|}}}</div> |
|||
⚫ | |||
<!----------- |
<!----------- |
||
LOWER SECTION |
LOWER SECTION |
||
⚫ | |||
About me |
|||
------------> |
------------> |
||
⚫ | |||
{{col-begin|width=100%}} |
|||
{{col-break}} |
|||
{{col-begin|width=100%}} |
|||
{{col-break|width=50%}} |
|||
<h2 class="user-info" style="font-family:sans-serif; border-bottom:0;"> |
|||
{{{about|About me}}}</h2> |
|||
<div style="padding-right:10px;">{{{about me|}}}</div> |
|||
<div style="display: flex; flex-direction: row; flex-wrap: wrap; margin-top: 1em;"> |
|||
<!----------- |
<!----------- |
||
left part |
|||
------------> |
------------> |
||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 260px; margin-{{dir|{{pagelang}}|left|right}}: 2em;"> |
|||
{{col-break|width=50%}} |
|||
<h2 class="user-info-about">{{{about|<translate><!--T:2--> About me</translate>}}}</h2>{{{about me}}} |
|||
<h2 class="user-info" style="font-family:sans-serif; border-bottom:0;"> |
|||
</div> |
|||
⚫ | |||
<div style="padding-right:10px;">{{{about my work|}}}</div> |
|||
<!----------- |
<!----------- |
||
⚫ | |||
Disclaimer |
|||
------------> |
------------> |
||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 260px; margin-{{dir|{{pagelang}}|left|right}}: 2em;"> |
|||
{{#if:{{{disclaimer|}}} |
|||
<h2 class="user-info-about">{{{work|<translate><!--T:3--> My work</translate>}}}</h2> |
|||
|<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 or provide services to the Wikimedia Foundation, and this is the account I try to use for edits or statements I make in that role. However, the Foundation does not vet all my activity, and edits, statements, or other contributions made by this account may not reflect the views of the Foundation.</div>}}}} |
|||
</div> |
|||
<!----------- |
<!----------- |
||
right part |
|||
------------> |
------------> |
||
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 260px; margin-{{dir|{{pagelang}}|left|right}}: 2em;"> |
|||
{{col-end}} |
|||
<h2 class="user-info-about">{{{contact|<translate> <!--T:4--> Contact me</translate>}}}</h2> |
|||
{{col-break|width={{{contact_width|{{{image_width|300px}}}}}}}} |
|||
{{{contact me}}}<div class="userinfo-hr" {{#if:{{{barheight|}}}|style="{{{barheight}}}px;"}}</div> |
|||
{{#if:{{{contact me|}}}|<div style="padding-top:1px; padding-left:15px; padding-right:15px; padding-bottom:15px; vertical-align:top; background:#F0F0F0;color:inherit;"> |
|||
</div> |
|||
<h2 class="user-info" style="font-family:sans-serif; border-bottom:0;"> |
|||
</div></div>></div> |
|||
{{{contact|Contact}}}</h2>{{{contact me|}}}</div>}} |
|||
</includeonly> |
|||
<noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> |
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> |
Latest revision as of 10:55, 29 December 2024
About me
{{{about me}}}My work
{{{about my work}}}
Contact me
{{{contact me}}}<div class="userinfo-hr"
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 Dow" 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, 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 |
Copies
The master version of this template is at wmf:Template:User info on Foundation Wiki. The following wikis have copies of this template: