Template:Staff member: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
+ space
No edit summary
 
(10 intermediate revisions by 2 users not shown)
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}}}|[[Image:{{{image}}}|thumb|center|200px|{{{name|Example Name}}}]]}}
{{#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;">[[Image:{{{image}}}|center|200px|{{{name|Example Name}}}]]</div>}}
{{#if:{{{twitter|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;">[http://www.twitter.com/#!/{{{twitter|}}} @{{{twitter|}}}] }}</div>}}
{{#if:{{{twitter|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;"></span class="plainlinks">[http://www.twitter.com/{{{twitter|}}} @{{{twitter|}}}]</span></div>}}
<div style="text-align:center; width:205px; margin:auto; width:100%;"><div>{{#ifexist:{{{job description|Job description}}}|[[{{{job description|Job description}}}]]|{{{job description|Job description}}}}}</div></div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
==Documentation==
==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.
All optional variables can  be left blank: leave image variable in as |image =  if no picture for staff member.
Using Sue as a guide:
Using an example:
<pre style="white-space:pre-wrap;">
<pre style="white-space:pre-wrap;">
{{staff member
{{staff member
| name = {{{John|John Doe}}} (Required: Name of Staff member, {{{shortname|Full English name}}} )
| name = John Doe  (Required: Name of Staff member )
| username = John Doe (Optional: Username of staff member, no User: prefix. Will link name to wiki userpage)
| username = John Doe (Optional: Username of staff member, no User: prefix. Will link name to wiki userpage)
| position = {{{HoA|Head of Administration}}} (Required: Position title. Will link to description page if exists {{{Acronym/shorttitle|Full english title}}} )
| position = Head of Administration (Required: Position title. Will link to description page if exists.)
| image = Example.JPG (Optional: Image title with no File: or Image: prefixes)
| image = Example.JPG (Optional: Image title with no File: or Image: prefixes)
| twitter = Example (Optional: Twitter handle only; no @ or URL)
| job description = Running Wikimedia UK (Optional)
}}
}}
</pre>
</pre>
Line 26: Line 29:
| twitter = Example
| twitter = Example
| image = foo.jpg
| image = foo.jpg
| job description = Example description
}}
}}


Line 35: Line 39:
| twitter = Example
| twitter = Example
| image = foo.jpg
| image = foo.jpg
| job description = Example description
}}
}}
</pre>
</pre>
Line 43: Line 48:
| username =  
| username =  
| position = Position
| position = Position
| job description = Example description
}}
}}


Line 51: Line 57:
| position = Position
| position = Position
| image =
| image =
| job description = Example description
}}
}}
</pre>
</pre>

Latest revision as of 15:42, 18 June 2013


Documentation

All optional variables can be left blank: leave image variable in as |image = if no picture for staff member. Using an example:

{{staff member
| name = John Doe  (Required: Name of Staff member )
| username = John Doe (Optional: Username of staff member, no User: prefix. Will link name to wiki userpage)
| position = Head of Administration (Required: Position title. Will link to description page if exists.)
| image = Example.JPG (Optional: Image title with no File: or Image: prefixes)
| twitter = Example (Optional: Twitter handle only; no @ or URL)
| job description = Running Wikimedia UK (Optional)
}}

Full example

Example name
Position
Example name
Example name
@Example
Example description


{{staff member
| name = Example name
| username = Example
| position = Position
| twitter = Example
| image = foo.jpg
| job description = Example description
}}

No image or username example

Example name
Position
[[Image:{{{image}}}|center|200px|Example name]]
Example description


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

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