Template:Volunteers: Difference between revisions

From Future Worlds Center Wiki
Jump to navigationJump to search
no edit summary
(Adding template to scale images and for using just the name of the image to embed it, into the templates, Associates,Interns,BoardMembers and Volunteers)
No edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| border="1" width="250" style="float:right;background-color:#C6DEFF;line-height:90%;word-spacing:0.5px;"
<!-- Alternative Solution -->
<!-- This template is more flexible, it calls the template Person for the name and image fields which are common for all people-->
{| width="285" style="margin:5px 0px 5px 10px;float:right;clear:right;border:1px solid #ccc;background-color:#d9f4d3;line-height:1.5em;word-spacing:0.5px;"
|
|
{| border="0" cellspacing="5" style="background-color:#B5EAAA;padding:0px"
{{#if:{{{image|}}} |{{Person
! align="center" colspan="2" valign="top"|{{{name}}}
|color=#d9f4d3
|-
|image={{{image}}}
| align="center" colspan="2" border="0" | {{ScaleImage
|name={{{name}}}
|imagename={{{image}}}
}} }}
|caption=
{| border="0" width="100%" cellspacing="5" style="background-color:#d9f4d3;padding:0px"
|newwidth=200px              <!-- new width=15,scales the image to 15%, new width=80px,scales the image to 80px-->
}}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| width="20%" |<b>''Years of service''</b>
| width="20%" |<b>{{#if:{{{period|}}} | '''Years of service''' }}</b>
||{{{period}}}
||{{#if:{{{period|}}} | {{{period}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''Service type''</b>
| <b>{{#if:{{{service|}}} | '''Service type''' }}</b>
||{{{service}}}
||{{#if:{{{service|}}} | {{{service}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''Project(s)''</b>
| <b>{{#if:{{{projects|}}} | '''Project(s)''' }}</b>
||{{{projects}}}
||{{#if:{{{projects|}}} | {{{projects}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''Sending Organization''</b>
| <b>{{#if:{{{sending_organization|}}} | '''Sending Organization''' }}</b>
||{{{cpost}}}
||{{#if:{{{sending_organization|}}} | {{{sending_organization}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''Degree(s)''</b>
| <b>{{#if:{{{degrees|}}} | '''Degree(s)''' }}</b>
||{{{degrees}}}
||{{#if:{{{degrees|}}} | {{{degrees}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''Field(s) of Study''</b>
| <b>{{#if:{{{fields|}}} | '''Field(s) of Study''' }}</b>
||{{{fields}}}
||{{#if:{{{fields|}}} | {{{fields}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>''University(ies)''</b>
| <b>{{#if:{{{universities|}}} | '''University(ies)''' }}</b>
||{{{universities}}}
||{{#if:{{{universities|}}} | {{{universities}}} }}
|}
|}
|}
|}
<noinclude>
<br /><br /><br />
__TOC__
==EXAMPLE ON HOW TO USE THE TEMPLATE==
{{Volunteers                                          <!-- The name of the template -->
      |name=Volunteer's name                    <!-- Append to variable name the content "Elia Petridou" -->
|image=SoterisDemetriou.jpg    <!-- You can replace all the template's variables with the                                                                                                                                                                                                                                          appropriate content-->
      |period=write the years of service    <!-- if a variable left empty e.g "period=" or not used    at all then it will not appear on the template -->
      |service=write the service type
      |projects= write the Project(s) involving  the volunteer
      |sending_organization=write the Sending Organization of  the volunteer
      |degrees=write the degree(s) of the volunteer
      |fields=write the field(s) of study of the volunteer
      |universities=write the university/ies of the b.m.
}}
Copy and paste the code below to the page you wish to add a Volunteer's box such as this one:
<pre>
{{Volunteers                                         
      |name=Volunteer's name                 
      |image=image.jpg
      |period=write the years of service
      |service=write the service type
      |projects= write the Project(s) involving  the volunteer
      |sending_organization=write the Sending Organization of  the volunteer
      |degrees=write the degree(s) of the volunteer
      |fields=write the field(s) of study of the volunteer
      |universities=write the university/ies of the volunteer
}}
</pre>
Then replace the content of the variables with your own, for example :
  Replace
            name=Volunteer's name 
  With
            <span style="color:red">name=Soteris Demetriou</span>
===List of Variables===
* <b>name</b> : This variable expects from the editor to assign to it the name of the volunteer
* <b>image</b> : This variable expects from the editor to assign to it the image of the volunteer. You must first upload an image using the upload file option of the toolbox available on the left column of the page. This option is visible if and only if you are logged in.
* <b>period</b> : This variable expects from the editor to assign to it the period at FWC of the volunteer.
* <b>service</b> : This variable expects from the editor to assign to it the service of the volunteer
* <b>projects</b> : This variable expects from the editor to assign to it the projects of the volunteer
* <b>sending_organization</b> : This variable expects from the editor to assign to it the sending_organization of the volunteer
* <b>degrees</b> : This variable expects from the editor to assign to it the degrees of the volunteer
* <b>fields</b> : This variable expects from the editor to assign to it the fields of study of the volunteer
* <b>universities</b> : This variable expects from the editor to assign to it the universities of the volunteer
</noinclude>
<noinclude>[[Category:T/People]]</noinclude>

Navigation menu