Template:Test: Difference between revisions
Jump to navigation
Jump to search
(Test de template) |
(template data) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Test | <includeonly> | ||
'''Algorithm Name:''' {{{name|Unknown}}} | |||
'''Author/Developer:''' {{{author|Not provided}}} | |||
'''Date of Creation/Version:''' {{{date|Not provided}}} | |||
'''Purpose:''' {{{purpose|Not specified}}} | |||
'''Input Parameters:''' | |||
{{#if:{{{input|}}}|{{{input}}}|Not provided}} | |||
'''Output/Results:''' | |||
{{#if:{{{output|}}}|{{{output}}}|Not provided}} | |||
'''Pseudocode:''' | |||
<pre> | |||
{{#if:{{{pseudocode|}}}|{{{pseudocode}}}|Pseudocode not available}} | |||
</pre> | |||
'''Complexity:''' {{{complexity|Not specified}}} | |||
'''Dependencies/Requirements:''' | |||
{{#if:{{{dependencies|}}}|{{{dependencies}}}|None specified}} | |||
'''Notes:''' | |||
{{#if:{{{notes|}}}|{{{notes}}}|No additional notes}} | |||
'''References:''' | |||
{{#if:{{{references|}}}|{{{references}}}|None provided}} | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
To use this template in articles, you can insert: | |||
<pre> | |||
{{Test | |||
|name= Algorithm Name | |||
|author= Author/Developer Name | |||
|date= Date/Version | |||
|purpose= Purpose of the Algorithm | |||
|input= Description of Input Parameters | |||
|output= Description of Output/Results | |||
|pseudocode= The pseudocode for the algorithm | |||
|complexity= Time or Space Complexity | |||
|dependencies= Dependencies or Requirements | |||
|notes= Any relevant notes | |||
|references= Related articles, books, or papers | |||
}} | |||
</pre> | |||
[[Category:Algorithm Templates]] | |||
</noinclude> | |||
<noinclude> | |||
{{Documentation}} | |||
</noinclude> | |||
<templatedata> | |||
{ | |||
"description": "A template for documenting algorithms.", | |||
"params": { | |||
"name": { | |||
"label": "Algorithm Name", | |||
"description": "The name of the algorithm.", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"author": { | |||
"label": "Author/Developer", | |||
"description": "The name of the author or developer.", | |||
"type": "string" | |||
}, | |||
... | |||
/* Add all other parameters in a similar fashion */ | |||
... | |||
} | |||
} | |||
</templatedata> | |||
Latest revision as of 10:06, 31 August 2023
Usage
To use this template in articles, you can insert:
{{Test
|name= Algorithm Name
|author= Author/Developer Name
|date= Date/Version
|purpose= Purpose of the Algorithm
|input= Description of Input Parameters
|output= Description of Output/Results
|pseudocode= The pseudocode for the algorithm
|complexity= Time or Space Complexity
|dependencies= Dependencies or Requirements
|notes= Any relevant notes
|references= Related articles, books, or papers
}}
<templatedata>
{
"description": "A template for documenting algorithms.",
"params": {
"name": {
"label": "Algorithm Name",
"description": "The name of the algorithm.",
"type": "string",
"required": true
},
"author": {
"label": "Author/Developer",
"description": "The name of the author or developer.",
"type": "string"
},
...
/* Add all other parameters in a similar fashion */
...
}
} </templatedata>