Template:Staff member: Difference between revisions
Jump to navigation
Jump to search
fix link |
+ space |
||
| Line 3: | Line 3: | ||
<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}}}|thumb|center|200px|{{{name|Example Name}}}]]}} | ||
{{#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%;">[http://www.twitter.com/#!/{{{twitter|}}} @{{{twitter|}}}] }}</div>}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Revision as of 11:28, 28 October 2011
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 = {{{John|John Doe}}} (Required: Name of Staff member, {{{shortname|Full English name}}} )
| 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}}} )
| image = Example.JPG (Optional: Image title with no File: or Image: prefixes)
}}
Full example
Example name
Position

}}
{{staff member
| name = Example name
| username = Example
| position = Position
| twitter = Example
| image = foo.jpg
}}
No image or username example
Example name
Position
[[Image:{{{image}}}|thumb|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.