Template:Project: Difference between revisions

no edit summary
(New template)
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| border="0" width="285" style="margin:5px 0px 5px 10px; float:right; clear:right; border:1px solid #ccc; background-color:#E5E5E5; line-height:1.5em; word-spacing:0.5px;"
{| border="0" width="285" style="margin:5px 0px 5px 10px; float:right; clear:right; background-color:#E5E5E5; line-height:1.5em; word-spacing:0.5px;"
|-
|-
! colspan="2" style="background-color:#f9f9f9; text-align:center; padding:5px; font-weight:bold; font-size:110%;" | Part of a series documented by Tech4Peace
| colspan="2" style="text-align:center; padding:5px;" |
<div style="font-weight:bold; font-size:110%; margin-bottom:5px;">{{{project_title|{{PAGENAME}}}}}</div>
[[File:{{#if:{{{project_logo|}}}|{{{project_logo}}}|Placeholder_Logo.png}}|center|150px]]
|-
|-
! colspan="2" style="background-color:#f9f9f9; text-align:center; padding:5px;" | [[File:Tech4Peace_logo.png|100px]]
| colspan="2" style="padding:5px;" |
|-
{| border="0" width="100%" cellspacing="5" style="padding:0px; background-color:#E5E5E5;"
|
{| border="0" width="100%" cellspacing="5" style="background-color:#E5E5E5; padding:0px"
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| width="35%" | <b>{{#if:{{{project_title|}}} | '''Project Title''' }}</b>
| width="35%" | <b>{{#if:{{{contract_title|}}} | '''Contract Title''' }}</b>
|| {{#if:{{{project_title|}}} | {{{project_title}}} }}
| {{#if:{{{contract_title|}}} | {{{contract_title}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{categories|}}} | '''Categories''' }}</b>
| <b>{{#if:{{{categories|}}} | '''Categories''' }}</b>
|| {{#if:{{{categories|}}} | {{{categories}}} }}
| {{#if:{{{categories|}}} | {{{categories}}} }}
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{contract_title|}}} | '''Contract Title''' }}</b>
|| {{#if:{{{contract_title|}}} | {{{contract_title}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{host_organization|}}} | '''Host Organization''' }}</b>
| <b>{{#if:{{{host_organization|}}} | '''Host Organization''' }}</b>
|| {{#if:{{{host_organization|}}} | {{{host_organization}}} }}
| {{#if:{{{host_organization|}}} | {{{host_organization}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{funding_agency|}}} | '''Funding Agency''' }}</b>
| <b>{{#if:{{{funding_agency|}}} | '''Funding Agency''' }}</b>
|| {{#if:{{{funding_agency|}}} | {{{funding_agency}}} }}
| {{#if:{{{funding_agency|}}} | {{{funding_agency}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{contract_number|}}} | '''Contract Number''' }}</b>
| <b>{{#if:{{{contract_number|}}} | '''Contract Number''' }}</b>
|| {{#if:{{{contract_number|}}} | {{{contract_number}}} }}
| {{#if:{{{contract_number|}}} | {{{contract_number}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{start_date|}}} | '''Start Date''' }}</b>
| <b>{{#if:{{{start_date|}}} | '''Start Date''' }}</b>
|| {{#if:{{{start_date|}}} | {{{start_date}}} }}
| {{#if:{{{start_date|}}} | {{{start_date}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{end_date|}}} | '''End Date''' }}</b>
| <b>{{#if:{{{end_date|}}} | '''End Date''' }}</b>
|| {{#if:{{{end_date|}}} | {{{end_date}}} }}
| {{#if:{{{end_date|}}} | {{{end_date}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{total_cost|}}} | '''Total Cost''' }}</b>
| <b>{{#if:{{{total_cost|}}} | '''Total Cost''' }}</b>
|| {{#if:{{{total_cost|}}} | {{{total_cost}}} }}
| {{#if:{{{total_cost|}}} | {{{total_cost}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{regions_served|}}} | '''Regions Served''' }}</b>
| <b>{{#if:{{{regions_served|}}} | '''Regions Served''' }}</b>
|| {{#if:{{{regions_served|}}} | {{{regions_served}}} }}
| {{#if:{{{regions_served|}}} | {{{regions_served}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{partners|}}} | '''Partners''' }}</b>
| <b>{{#if:{{{partners|}}} | '''Partners''' }}</b>
|| {{#if:{{{partners|}}} | {{{partners}}} }}
| {{#if:{{{partners|}}} | {{{partners}}} }}
|- valign="top" style="font-size:11px"
|- valign="top" style="font-size:11px"
| <b>{{#if:{{{links|}}} | '''Links''' }}</b>
| <b>{{#if:{{{links|}}} | '''Links''' }}</b>
|| {{#if:{{{links|}}} | {{{links}}} }}
| {{#if:{{{links|}}} | {{{links}}} }}
|}
|}  
|-
| colspan="2" style="border-top:1px solid #ccc; text-align:center; background-color:#E5E5E5; padding:5px;" |
<div style="font-size:95%;">{{#if:{{{series_title|}}}|{{{series_title}}}|Part of a series documented by Tech4Peace}}</div>
[[File:{{#if:{{{series_logo|}}}|{{{series_logo}}}|Tech4Peace_Logo.png}}|center|100px]]
|}
|}


<noinclude>
<noinclude>
== Template documentation ==
== Template documentation ==
=== Usage example ===
=== Usage example ===
{{Project
{{Project
| series_title    = Supported by ABC Foundation
| series_logo      = ABC_logo.png
  | project_title    = My Project Name
  | project_title    = My Project Name
  | categories      = Cat1, Cat2
  | categories      = Cat1, Cat2
Line 64: Line 68:
}}
}}


Place this on any project page:
Place this on any project page:
<pre>
<pre>
{{Project
{{Project
| series_title    = Supported by ABC Foundation
| series_logo      = ABC_logo.png
  | project_title    = My Project Name
  | project_title    = My Project Name
  | categories      = Cat1, Cat2
  | categories      = Cat1, Cat2
Line 83: Line 89:


=== Parameters ===   
=== Parameters ===   
* <b>series_title</b> – Optional heading text above the logo (default: “Part of a series documented by Tech4Peace”)
* <b>series_logo</b> – Optional logo filename without `File:` (default: `Tech4Peace_logo.png`)
* <b>project_title</b> – Title of the project   
* <b>project_title</b> – Title of the project   
* <b>categories</b> – Comma‑separated categories for page classification   
* <b>categories</b> – Comma‑separated categories for page classification   
Line 95: Line 103:
* <b>partners</b> – Project partners   
* <b>partners</b> – Project partners   
* <b>links</b> – External link(s), e.g. official website
* <b>links</b> – External link(s), e.g. official website
</noinclude>