This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:Project Health Status"

From OWASP
Jump to: navigation, search
Line 1: Line 1:
{{#switch: {{{project_health_status}}} | -1 = {{Template:Not Reviewed}} | 0 ={{Template:Level 0 Project}} | 1={{Template:Level 1 Project}} | 2={{Template:Level 2 Project}} | 3={{Template:Level 3 Project}} | {{Template:Not Reviewed}} }} <small>''({{#switch: {{{criteria_version}}} | 1=Assessment Criteria v1.0 | 2=Assessment Criteria v2.0 | Provisional }})''</small><noinclude>
+
<includeonly>{{#switch: {{{project_health_status}}} | -1 = {{Template:Not Reviewed}} | 0 ={{Template:Level 0 Project}} | 1={{Template:Level 1 Project}} | 2={{Template:Level 2 Project}} | 3={{Template:Level 3 Project}} | {{Template:Not Reviewed}} }} <small>''({{#switch: {{{criteria_version}}} | 1=Assessment Criteria v1.0 | 2=Assessment Criteria v2.0 | Provisional }})''</small></includeonly><noinclude>
This template displays the appropriate project health status icon using the given status.
+
= About =
 +
This template displays the appropriate project health status icon using the given status along with the assessment criteria version used for the assessment. All parameters are optional. By default:
 +
* project_health_status = -1 (Not Reviewed)
 +
* criteria_version = ''null'' (Provisional)
  
=== Usage ===
+
= Usage =
 
<pre>
 
<pre>
 
{{Template:Project Health Status
 
{{Template:Project Health Status
 
| project_health_status =  
 
| project_health_status =  
 +
| criteria_version =
 
}}
 
}}
 
</pre>
 
</pre>
  
=== Example ===
+
== project_health_status ==
 +
Valid values are:
 +
* '''-1''': Not Reviewed ''(default)''
 +
* '''0''': Level 0 Project
 +
* '''1''': Level 1 Project
 +
* '''2''': Level 2 Project
 +
* '''3''': Level 3 Project
 +
 
 +
== criteria_version ==
 +
Valid values are:
 +
* '''''null''''': Provisional ''(default)''
 +
* '''1''': Assessment Criteria v1.0
 +
* '''2''': Assessment Criteria v2.0
 +
 
 +
= Example =
 
<pre>
 
<pre>
 
{{Template:Project Health Status
 
{{Template:Project Health Status
| project_health_status = 2
+
| project_health_status = 2
 +
| criteria_version = 1
 
}}
 
}}
 
</pre>
 
</pre>
 +
== Output ==
 
{{Template:Project Health Status
 
{{Template:Project Health Status
 
| project_health_status = 2
 
| project_health_status = 2
 +
| criteria_version = 1
 
}}
 
}}
 
[[Category: GPC Templates]]</noinclude>
 
[[Category: GPC Templates]]</noinclude>

Revision as of 03:47, 6 February 2010

About

This template displays the appropriate project health status icon using the given status along with the assessment criteria version used for the assessment. All parameters are optional. By default:

  • project_health_status = -1 (Not Reviewed)
  • criteria_version = null (Provisional)

Usage

{{Template:Project Health Status
| project_health_status = 
| criteria_version =
}}

project_health_status

Valid values are:

  • -1: Not Reviewed (default)
  • 0: Level 0 Project
  • 1: Level 1 Project
  • 2: Level 2 Project
  • 3: Level 3 Project

criteria_version

Valid values are:

  • null: Provisional (default)
  • 1: Assessment Criteria v1.0
  • 2: Assessment Criteria v2.0

Example

{{Template:Project Health Status
| project_health_status = 2
| criteria_version = 1
}}

Output

Greenlight.pngGreenlight.png Level 2 Project (Assessment Criteria v1.0)