Template:Test: Difference between revisions
Jump to navigation
Jump to search
(TP template) |
(template data) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 36: | Line 36: | ||
<pre> | <pre> | ||
{{ | {{Test | ||
|name= Algorithm Name | |name= Algorithm Name | ||
|author= Author/Developer Name | |author= Author/Developer Name | ||
| Line 53: | Line 53: | ||
[[Category:Algorithm Templates]] | [[Category:Algorithm Templates]] | ||
</noinclude> | </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>