Template:User info: Difference between revisions

From TestWiki
Content added Content deleted
(rm DISPLAYTITLE (producing red warnings on users' pages, because full name will not likely match page titles anyway))
m (94 revisions imported: testing)
 
(68 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<noinclude><languages/></noinclude>
<noinclude><languages /></noinclude>
{{#switch: <translate><!--T:4-->
{{#switch: <translate><!--T:4-->
<tvar|x></></translate>
<tvar|x></></translate>
| =
| =
{{#if:{{{former|}}}| {{TNT|Former staff}}
<div style="width:25%; float:left;height:4px; background:#990000;"></div>
|}}{{#if:{{{header|}}}|{{{header}}}|<div style="margin-top: 1em;">
<div style="width:25%; float:left;height:4px; background:#339966;"></div>
<div style="width:25%; float:left;height:4px; background:#A7D7F9;"></div>
<div style="width:25%; float:{{dir|2=right|3=left}}; height:{{{barheight|4}}}px; background:#990000;"></div>
<div style="width:25%; float:left;height:4px; background:#666666;"></div>
<div style="width:25%; float:{{dir|2=right|3=left}}; height:{{{barheight|4}}}px; background:#339966;"></div>
<div style="width:25%; float:{{dir|2=right|3=left}}; height:{{{barheight|4}}}px; background:#0063BF;"></div>
<div style="width:25%; float:{{dir|2=right|3=left}}; height:{{{barheight|4}}}px; background:#54595d;"></div>
</div>
}}
__NOTOC__
__NOTOC__
<div style="padding-top: 2em;">
{{{!}} style="width:100%; margin:auto; border-collapse:collapse; margin-bottom:10px; clear:left;"
[[File:{{#if:{{{image name|}}}|{{{image name}}}{{!}}alt={{{full name}}}|Wikimedia Foundation office camera shy.jpg{{!}}alt=No photo}}|frameless|{{{image width|280px}}}|{{dir|2=left|3=right}}|{{#if:{{{hover text|}}}|{{{hover text|}}}|{{{hover text|{{{full name}}}, {{{job title}}}}}}}}]]
{{!}} style="padding:10px; vertical-align:top; width:75%;" {{!}}{{#if:{{{full name|}}}|
{{#if:{{{full name|}}}|
<div style="line-height:.7em; font-size: 270%; font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{full name|}}}</div>}}{{#if:{{{job title|}}}|
<div style="font-size: 180%; padding-top: 16px; font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; line-height:30px;">{{{job title}}}{{#ifeq:{{{organization|}}}|Wikimedia Foundation|, <translate><!--T:5-->
<div style="font-size: 2.6em; line-height: 1.2; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{full name|}}}</div>}}
{{#if:{{{job title|}}}|
<div style="font-size: 1.8em; line-height: 1.2; padding-top: .5em; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{job title}}}{{#ifeq:{{{organization|}}}|Wikimedia Foundation|, <translate><!--T:5-->
Wikimedia Foundation</translate>|{{#if:{{{organization|{{{company|}}}}}}|, {{{organization|{{{company|}}}}}}}}}}</div>}}
Wikimedia Foundation</translate>|{{#if:{{{organization|{{{company|}}}}}}|, {{{organization|{{{company|}}}}}}}}}}</div>}}
<div style="padding-top: 16px; font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{short quote}}}</div>
<div style="padding-top: 16px; font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif;">{{{short quote}}}</div>


</div>
{{!}} style="padding:10px 0; vertical-align:top; width:25%; text-align:center;" {{!}} [[File:{{#if:{{{image name|}}}|{{{image name}}}{{!}}alt={{{full name}}}|Wikimedia Foundation office camera shy 250px.png{{!}}alt=No photo}}|{{{image width|250px}}}|{{#if:{{{hover text|}}}|{{{hover text|}}}|{{{hover text|{{{full name}}}, {{{job title}}}}}}}}]]


{{!}}}
{{Clear}}


<div style="display: flex; flex-direction: row; flex-wrap: wrap; margin-top: 1em;">
{{{!}} style="width:100%; margin:auto; border-collapse:collapse;"

{{!}} style="padding:15px; vertical-align:top; width:37%;" {{!}} <h2 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{#if:{{{about|}}}|{{{about}}}|<translate><!--T:6-->
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 250px; margin-{{dir|2=left|3=right}}: 2em;">
About me</translate>}}</h2>
<h2 style="font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; display: block;">{{#ifeq:{{{about|}}}||<translate><!--T:6-->
About me</translate>|{{{about|About me}}}}}</h2>
{{{about me}}}
{{{about me}}}
</div>
{{!}} style="padding:15px; vertical-align:top; width:37%;" {{!}} <h2 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{#if:{{{work|}}}|{{{work}}}|<translate><!--T:7-->

My work</translate>}}</h2>
<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 250px; margin-{{dir|2=left|3=right}}: 2em;">
{{{about my work}}}{{#if:{{{disclaimer|}}}|<div style="color: #555; font-size: smaller; margin: 1em 0;"><translate><!--T:8-->
<h2 style="font-family:'Helvetica Neue', Helvetica, 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; display: block;">{{#ifeq:{{{work|}}}||<translate><!--T:7-->
'''Disclaimer:'''</translate> {{{disclaimer}}}</div>|{{#ifeq:{{{organization|}}}|Wikimedia Foundation|<div style="color: #555; font-size: smaller; margin: 1em 0;">[[Category:Wikimedia Foundation staff{{#translation:}}]] <translate><!--T:9-->
My work</translate>|{{{work|My work}}}}}</h2>
'''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, so edits, statements, or other contributions made by this account may not reflect the views of the Foundation.</translate> </div>}} }}
{{{about my work}}}
{{!}} style="padding:15px; vertical-align:top; width:25%; background:#F4F4F4;" {{!}} <h2 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{#if:{{{contact|}}}|{{{contact}}}|<translate><!--T:10-->
{{#if:{{{disclaimer|}}}|<div style="color: #555; font-size: smaller; margin: 1em 0;"><translate><!--T:8-->
Contact me</translate>}}</h2>
'''Disclaimer:'''</translate> {{{disclaimer}}}</div>|{{#ifeq:{{{organization|}}}|Wikimedia Foundation|<div style="color: #555; font-size: smaller; margin: 1em 0;">{{#if:{{{former|}}} | | [[Category:Wikimedia Foundation staff{{#translation:}}]] }} <translate><!--T:9-->
'''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, so edits, statements, or other contributions made by this account may not reflect the views of the Foundation.</translate> </div>}} }}
</div>

{{#if:{{{contact me|}}}|<div style="flex-grow: 1; flex-shrink: 0; flex-basis: 160px; 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;">{{#ifeq:{{{contact|}}}| |<translate><!--T:10-->
Contact me</translate>|{{{contact|Contact me}}}}}</h2>
{{{contact me}}}
{{{contact me}}}
</div>
{{!}}}
}}

</div>
| #default =
| #default =
{{ {{TNTN|Template:User info| uselang = {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}} }}
{{ {{TNTN|Template:User info| uselang = {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}} }}
Line 38: Line 56:
| organization = {{{organization|}}}
| organization = {{{organization|}}}
| company = {{{company|}}}
| company = {{{company|}}}
| job title2 = {{{job title2|}}}
| organization2 = {{{organization2|}}}
| company2 = {{{company2|}}}
| short quote = {{{short quote|}}}
| short quote = {{{short quote|}}}
| image name = {{{image name|}}}
| image name = {{{image name|}}}
| image width = {{{image width|250px}}}
| image width = {{{image width|320px}}}
| hover text = {{{hover text|}}}
| hover text = {{{hover text|}}}
| about = {{{about|}}}
| about = {{{about|}}}
Line 49: Line 70:
| contact = {{{contact|}}}
| contact = {{{contact|}}}
| contact me = {{{contact me|}}}
| contact me = {{{contact me|}}}
| former = {{{former|}}}
| barheight = {{{barheight|4}}}
}}
}}
}}<noinclude>
}}<noinclude>
{{clear}}
{{Clear}}
{{Documentation|Template:User info/doc}}
== Usage ==
<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 ==
<templatedata>
{
"description": "",
"params": {
"full name": {
"label": "Full name",
"description": "Your full name, like \"John Smith\" or \"Samantha Jones\".",
"type": "string"
},
"job title": {
"label": "Position",
"description": "The position or job title you wish to show you have, if any",
"type": "string"
},
"organization": {
"aliases": [
"company"
],
"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.",
"type": "string"
},
"short quote": {
"label": "Quote",
"description": "A short quote that you'd like to show that represents how you feel",
"type": "string"
},
"image name": {
"label": "Image",
"description": "The name of a file that you'd like to show about you, normally a photo of you like \"Example.jpg\"",
"type": "string/wiki-file-name"
},
"hover text": {
"description": "The label to show when people hover your image, or for screenreaders.",
"type": "string",
"label": "Image hover"
},
"about me": {
"description": "Some information about you and your background.",
"type": "string",
"label": "About me"
},
"about my work": {
"description": "Some details about what you do on the wikis and why.",
"type": "string",
"label": "About my work"
},
"disclaimer": {
"description": "A disclaimer about your work, if any. If your organisation is set to \"Wikimedia Foundation\", it will show the regular Foundation staff disclaimer.",
"type": "string",
"label": "Disclaimer"
},
"contact me": {
"description": "Details of how you can be contacted beyond on-wiki methods.",
"type": "string",
"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"
}
}
}
</templatedata>

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

* [[w:en:Template:User info]]
* [[w:fr:Modèle:Info utilisateur]]
* [[mw:Template:User info]]
* [[m:Template:User info]]
* [[c:Template:User info2]]
</noinclude>
</noinclude>

Latest revision as of 15:46, 3 January 2020

No photo
{{{full name}}}, {{{job title}}}


{{{short quote}}}

About me

{{{about me}}}

My work

{{{about my work}}}