Template:Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(template data) |
||
| Line 57: | Line 57: | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </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>