Archive:Template:Staff member: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
MZMcBride (talk | contribs)
kill missing photo: https://wikimediafoundation.org/w/index.php?diff=prev&oldid=79021
 
(35 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude><ul class="gallery" style="margin: 0; clear: both; padding: 0;"></noinclude><li class="gallerybox" id="{{anchorencode: {{#if: {{{anchor|}}} | {{{anchor}}} | {{{name|Example name}}} }} }}" style="font-size:11px; line-height:14px; margin:0 10px 10px 0; display: inline-block; vertical-align: top;">
<includeonly>
<div style="width: 145px; width:100%;">
<div style="text-align:center; width:205px; margin:auto; width:100%;"><div style="font-size:115%;">'''{{#ifexist:User:{{{username}}}|[[User:{{{username|Example}}}|{{{name|Example Name}}}]]|{{{name|Example Name}}}}}'''</div>
<div>{{#ifexist:{{{position|Position}}}|[[{{{position|Position}}}]]|{{{position|Position}}}}}</div></div>
<div style="margin-bottom: 8px;">{{#if:{{{image|}}}|[[File:{{{image}}}|140x94px|{{{name|Example name}}}]]|{{camera shy|link={{{link|}}}}} }}</div>
<div style="width: 145px; font-weight:bold;">{{#if:{{{link|}}}|[[{{{link}}}|{{{name|Example name}}}]]|{{#ifexist:User:{{{username}}}|[[User:{{{username|Example}}}|{{{name|Example name}}}]]|{{{name|Example name}}}}}}}</div>
{{#if: {{{image}}} | <div style="-webkit-box-shadow:0 0 5px 1px silver; -moz-box-shadow:0 0 5px 1px silver; box-shadow:0 0 5px 1px silver; border: 5px solid white; width:200px; margin-left:auto !important; margin-right:auto !important; margin-top: 10px;">[[File:{{{image}}}|center|200x150px|{{{name|Example Name}}}]]</div> |<!-- output nothing, per Jay's request: ?diff=prev&oldid=79021 -->}}
{{#if:{{{team|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;">{{#ifexist:{{{team}}}|[[{{{team}}}]]|{{{team}}}}}</div>}}
<div style="width: 145px;">{{{position|Position}}}</div>
{{#if:{{{team|}}}|<div style="width:145px;">{{#ifexist:{{{team}}}|[[{{{team}}}]]|{{{team}}}}}</div>}}
</includeonly>
<noinclude>
</div></li><noinclude>
[[Category:Historical content]]
==Documentation==
All optional variables can be left blank: leave image variable in as |image = if no picture for staff member. Name and Position get enclosed in triple curly brackets for translation purposes, see notes.
Using Sue as a guide:
<pre style="white-space:pre-wrap;">
{{staff member
| name = {{{Sue|Sue Gardner}}} (Required: Name of Staff member, {{{shortname|Full English name}}} )
| username = Sue Gardner (Optional: Username of staff member, no User: prefix. Will link name to wiki userpage)
| position = {{{ED|Executive Director}}} (Required: Position title. Will link to description page if exists {{{Acronym/shorttitle|Full english title}}} )
| image = Sue_Gardner_May_2008_B.JPG (Optional: Image title with no File: or Image: prefixes)
}}
</pre>

{{clear}}
'''Full example'''
{{staff member
| name = Example name
| username = Example
| position = Position
| team = Example team
| image = Foo.jpg
}}

<pre>
{{staff member
| name = Example name
| username = Example
| position = Position
| team = Example team
| image = foo.jpg
}}
</pre>

'''No image or username example'''
{{staff member
| name = Example name
| username =
| position = Position
| image =

}}

<pre>
{{staff member
| name = Example name
| username =
| position = Position
| image =
}}
</pre>
'''Note:Username and image are optional and can be left blank in template as above if desired.'''

</noinclude>
</noinclude>

Latest revision as of 09:34, 29 March 2024