Template:Osslfunc
From OpenSimulator
(Difference between revisions)
m |
|||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
| + | |||
| + | |||
If you wish to change the template, Please read [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch] first. Previous edit broke the switch argument. | If you wish to change the template, Please read [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch] first. Previous edit broke the switch argument. | ||
| + | |||
| + | |||
--> | --> | ||
<includeonly> | <includeonly> | ||
{{quicklinks}} | {{quicklinks}} | ||
[[Category:OSSL Functions]] | [[Category:OSSL Functions]] | ||
| − | { | + | {| width="100%" style="border: thin solid black" |
| − | + | | colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | |
| − | + | |- valign="top" | |
| − | + | |'''Threat Level''' || {{#switch:{{{threat_level}}} | |
| − | + | ||
| − | + | ||
| None = '''None''' | | None = '''None''' | ||
| Nuisance = <font color='#220000'>'''Nuisance'''</font> | | Nuisance = <font color='#220000'>'''Nuisance'''</font> | ||
| Line 20: | Line 22: | ||
| Severe = <font color='#ff0000'>'''Severe'''</font> | | Severe = <font color='#ff0000'>'''Severe'''</font> | ||
| NotSpecified = ''No threat level specified'' [[Category:OSSL_functions_without_threat_level]] | | NotSpecified = ''No threat level specified'' [[Category:OSSL_functions_without_threat_level]] | ||
| − | | #default = | + | | #default = ''No threat level provided. Valid options are None, Nuisance, VeryLow, Low, Moderate, High, VeryHigh, Severe.<br>If threat level is unknown, then NotSpecified is acceptable'' [[Category:OSSL_functions_without_threat_level]] |
}} | }} | ||
| − | + | |- valign="top" | |
| − | + | |'''Function Syntax''' || | |
{{#ifeq: {{{function_syntax}}} | | ''No function syntax provided'' [[Category:OSSL_functions_without_function_syntax]] | {{{function_syntax}}}}} | {{#ifeq: {{{function_syntax}}} | | ''No function syntax provided'' [[Category:OSSL_functions_without_function_syntax]] | {{{function_syntax}}}}} | ||
| − | + | |- valign="top" | |
| − | + | |'''Example(s)|| | |
{{#ifeq: {{{ossl_example}}} | | ''No OSSL code example provided'' [[Category:OSSL_functions_without_example]] | {{{ossl_example}}}}} | {{#ifeq: {{{ossl_example}}} | | ''No OSSL code example provided'' [[Category:OSSL_functions_without_example]] | {{{ossl_example}}}}} | ||
| − | + | |} | |
| − | + | ||
| + | |||
{{#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}}}}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <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): | ||
| − | |||
<nowiki>{{osslfunc|</nowiki> | <nowiki>{{osslfunc|</nowiki> | ||
Revision as of 22:26, 24 June 2011
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.