Template:Staff member: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
plainlink
+ parameter to example
Line 8: Line 8:
==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. Name and Position get enclosed in triple curly brackets for translation purposes, see notes.
Using Sue as a guide:
Using an example:
<pre style="white-space:pre-wrap;">
<pre style="white-space:pre-wrap;">
{{staff member
{{staff member
Line 15: Line 15:
| position = {{{HoA|Head of Administration}}} (Required: Position title. Will link to description page if exists {{{Acronym/shorttitle|Full english title}}} )
| 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)
| image = Example.JPG (Optional: Image title with no File: or Image: prefixes)
| twitter = Example (Optional: Twitter handle only; no @ or URL)
}}
}}
</pre>
</pre>

Revision as of 11:33, 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 an example:

{{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)
| twitter = Example (Optional: Twitter handle only; no @ or URL)
}}

Full example

Example name
Position
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}}}|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.