Template:Staff member: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
-
image
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}}}|[[Image:{{{image}}}|border|center|200px|{{{name|Example Name}}}]]}}
{{#if:{{{twitter|}}}|<div style="text-align:center; width:205px; margin:auto; width:100%;"></span class="plainlinks">[http://www.twitter.com/{{{twitter|}}} @{{{twitter|}}}]</span></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>}}
</includeonly>
</includeonly>

Revision as of 18:01, 11 June 2012


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

Full example

Example name
Position
Example name
Example name
@Example


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

No image or username example

Example name
Position

[[Image:{{{image}}}|border|center|200px|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.