Template:Volunteers: Difference between revisions

From Future Worlds Center Wiki
Jump to navigationJump to search
(This template is more object-oriented, it calls the template Person for the name and image fields which are common for all people.)
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- Alternative Solution -->
<!-- Alternative Solution -->
<!-- This template is more object-oriented, it calls the template Person for the name and image fields which are common for all people-->
<!-- This template is more flexible, it calls the template Person for the name and image fields which are common for all people-->
{| border="1" width="250" style="float:right;background-color:#C6DEFF;line-height:90%;word-spacing:0.5px;"
{| 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;"
|
|
{{Person
{{#if:{{{image|}}} |{{Person
|color=#B5EAAA
|color=#d9f4d3
}}
|image={{{image}}}
{| border="0" cellspacing="5" style="background-color:#B5EAAA;padding:0px"
|name={{{name}}}
}} }}
{| border="0" width="100%" cellspacing="5" style="background-color:#d9f4d3;padding:0px"
|- 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>

Latest revision as of 09:06, 15 August 2012




EXAMPLE ON HOW TO USE THE TEMPLATE

Volunteer's name
Volunteer's name
Years of service write the years of service
Service type write the service type
Project(s) write the Project(s) involving the volunteer
Sending Organization write the Sending Organization of the volunteer
Degree(s) write the degree(s) of the volunteer
Field(s) of Study write the field(s) of study of the volunteer
University(ies) 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:

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

Then replace the content of the variables with your own, for example :

  Replace 
            name=Volunteer's name   
  With 
            name=Soteris Demetriou

List of Variables

  • name : This variable expects from the editor to assign to it the name of the volunteer
  • image : 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.
  • period : This variable expects from the editor to assign to it the period at FWC of the volunteer.
  • service : This variable expects from the editor to assign to it the service of the volunteer
  • projects : This variable expects from the editor to assign to it the projects of the volunteer
  • sending_organization : This variable expects from the editor to assign to it the sending_organization of the volunteer
  • degrees : This variable expects from the editor to assign to it the degrees of the volunteer
  • fields : This variable expects from the editor to assign to it the fields of study of the volunteer
  • universities : This variable expects from the editor to assign to it the universities of the volunteer