Template:Infobox algorithm: Difference between revisions

Content deleted Content added
m Reverted edits by Cantbong (talk) to last version by Vox Rationis
m typo
 
(12 intermediate revisions by 5 users not shown)
Line 1:
{{Infobox
| headerstyle = background:#ffc0c0
| title = {{{name|{{PAGENAMEBASE}}}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|alt={{{alt|}}}}}
| caption = {{{caption|}}}
| label1 = Class
| data1 = {{{class|}}}
| label2 = Data structure
| data2 = {{{data|}}}
| label3 = [[Best, worst and average case|Worst-case]] [[Time complexity|performance]]
| data3 = {{{time|}}}
| label4 = [[Best, worst and average case|Best-case]] [[Time complexity|performance]]
| data4 = {{{best-time|}}}
| label5 = [[Best, worst and average case|Average]] [[Time complexity|performance]]
| data5 = {{{average-time|}}}
| label6 = [[Best, worst and average case|Worst-case]] [[space complexity]]
| data6 = {{{space|}}}
| label7 = Optimal
}}<noinclude>
| data7 = {{{optimal|}}}
{{Documentation|content=
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Infobox algorithm]] with unknown parameter "_VALUE_"|ignoreblank=y | name | image | image size | image_size | imagesize | alt | class | image | caption | data | time | best-time | average-time | space | optimal}}<noinclude>
== Usage ==
{{documentation}}<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
<pre>
{{Infobox algorithm
|name = <!-- Defaults to article name -->
|class = <!-- Name of problem it solves -->
|image =
|caption =
|data =
|time = <!-- Worst time big-O notation -->
|best-time =
|average-time =
|space =
}}
</pre>
}}
[[Category:Computer science infobox templates|Algorithm]]
</noinclude>