Archive:Template:Staff member: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
limit heigth of images too, for vertical photos
m even more, given that most are like that or less
Line 2: Line 2:
<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 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>{{#ifexist:{{{position|Position}}}|[[{{{position|Position}}}]]|{{{position|Position}}}}}</div></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|200x200px|{{{name|Example Name}}}]]</div> | <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:Flag of None.svg|center|200px|{{{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> | <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:Flag of None.svg|center|200px|{{{name|Example Name}}}]]</div>
}}
}}
{{#if:{{{team|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;">{{#ifexist:{{{team}}}|[[{{{team}}}]]|{{{team}}}}}</div>}}
{{#if:{{{team|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;">{{#ifexist:{{{team}}}|[[{{{team}}}]]|{{{team}}}}}</div>}}

Revision as of 16:01, 1 February 2012


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:

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

Full example

Example name
Position
Example name
Example name
Example team


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

No image or username example

Example name
Position
Example name
Example name



{{staff member
| name = Example name
| username = 
| position = Position
| image =
}}

Note:Username and image are optional and can be left blank in template as above if desired.