Template:Osslfunc

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
m
Line 1: Line 1:
 +
 
{{quicklinks}}
 
{{quicklinks}}
 
[[Category:OSSL Functions]]
 
[[Category:OSSL Functions]]
Line 4: Line 5:
 
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 
|- valign="top"
 
|- valign="top"
|'''Threat Level''' || <!-- ### TRYING ANOTHER METHOD ### {{#ifeq: {{{threat_level}}} |  | ''No threat level provided'' [[Category:OSSL_functions_without_threat_level]] | {{{threat_level}}}}} -->
+
|'''Threat Level''' || {{#switch:{{{threat_level}}}
<!-- #ifeq is used as follows:
+
| None = style=background:green | '''None'''
{{#ifeq: string 1 | string 2 | value if identical | value if different }}
+
 
+
{{#ifeq: {{{threat_level}}} |  | ''No threat level provided'' [[Category:OSSL_functions_without_threat_level]] |}}
+
{{#ifeq: {{{threat_level}}} | None | '''None''' |}}
+
{{#ifeq: {{{threat_level}}} | Nuisance | '''Nuisance''' |}}
+
{{#ifeq: {{{threat_level}}} | VeryLow | '''VeryLow''' |}}
+
{{#ifeq: {{{threat_level}}} | Low | '''Low''' |}}
+
{{#ifeq: {{{threat_level}}} | Moderate | '''Moderate''' |}}
+
{{#ifeq: {{{threat_level}}} | High | '''High''' |}}
+
{{#ifeq: {{{threat_level}}} | VeryHigh | '''VeryHigh''' |}}
+
{{#ifeq: {{{threat_level}}} | Severe | '''Severe''' |}}
+
-->
+
{{#switch:{{{threat_level}}}
+
| None = '''None'''
+
 
| Nuisance = '''Nuisance'''
 
| Nuisance = '''Nuisance'''
 
| VeryLow = '''VeryLow'''
 
| VeryLow = '''VeryLow'''
Line 40: Line 27:
  
 
{{#ifeq: {{{additional_info}}} |  | ''No additional info was provided'' [[Category:OSSL_functions_without_notes]]| {{{additional_info}}}}}
 
{{#ifeq: {{{additional_info}}} |  | ''No additional info was provided'' [[Category:OSSL_functions_without_notes]]| {{{additional_info}}}}}
 
<noinclude>
 
  
 
----
 
----
Line 49: Line 34:
 
----
 
----
  
 +
<noinclude>
 
This template is to be used as follows (copy and paste the following into a new page):
 
This template is to be used as follows (copy and paste the following into a new page):
  

Revision as of 10:02, 13 June 2011

Osslfunc
Threat Level No threat level provided
Function Syntax

{{{function_syntax}}}

Example(s)

{{{ossl_example}}}


{{{additional_info}}}





This template is to be used as follows (copy and paste the following into a new page):

{{osslfunc|
threat_level = THREAT LEVEL
|
function_syntax = FUNCTION SYNTAX
|
ossl_example = EXAMPLE CODE
| 
additional_info = ANY ADDITIONAL INFO AND NOTES
|
}}

Then replace the text in upper caps with the relevant information. Remove the text in upper caps and leave empty IF the info is unavailable. The template will automatically insert a text, saying that the information is missing.

Features of this template:

  • Includes the {{quicklinks}} template
  • Automatically adds the article to all the relevant categories
  • Displays a placeholder text when certain information is missing, and adds the article to the relevant "missing" category/categories.


Personal tools
General
About This Wiki