Template:Infobox tool: Difference between revisions

Added infobox name parameter
(Update title and image parameters, added TemplateData)
(Added infobox name parameter)
 
(8 intermediate revisions by 2 users not shown)
Line 1:
<includeonly>{{Infobox
| bodystyle= width: {{{width|360px}}}
| name= Template:Infobox tool
| title= {{{name|{{PAGENAME}}}}}
| above= Tool
| image= {{No#if: {{{image|}}} |{{Image exists|file={{{image|}}}|width={{{width|360px}}}}}}}
| caption= {{{caption|}}}
| label1= {{#if: {{{creator}}}|Creator|}}
Line 10 ⟶ 11:
| data2= {{{releasedate|}}}
| label3= {{#if: {{{github}}}|GitHub|}}
| data3= {{#if: {{{github|}}} | [https://github.com/{{{github}}} {{{github}}}]|}}
| label4= {{#if: {{{download}}}|Download|}}
}}{{ns0|[[Category:Tools]]}}</includeonly><noinclude>
| data4= {{#if: {{{download|}}} | [{{{download}}} Link] }}
}}{{ns0Article only|[[Category:Tools]]}}</includeonly><noinclude>
{{Infobox tool
| image= File:XXXFile_name.png
| caption= image caption
| creator= creator
| releasedate= January 1, 1969
| github= githubname/repo-name
| download= link
}}
{{Documentation}}</noinclude>
<templatedata>
{
"params": {
"width": {},
"name": {
"type": "string"
},
"image": {
"type": "wiki-file-name"
},
"caption": {
"type": "string"
},
"creator": {
"type": "string"
},
"releasedate": {
"type": "date"
},
"github": {
"type": "string"
}
},
"description": "An infobox for use on tool articles.",
"paramOrder": [
"name",
"image",
"caption",
"width",
"creator",
"releasedate",
"github"
]
}
</templatedata></noinclude>