Template:Infobox tool: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
TheOnlyZac (talk | contribs) (Fixed link parameter) |
TheOnlyZac (talk | contribs) (Added infobox name parameter) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{Infobox |
<includeonly>{{Infobox |
||
| bodystyle= width: {{{width|360px}}} |
| bodystyle= width: {{{width|360px}}} |
||
| name= Template:Infobox tool |
|||
| title= {{{name|{{ |
| title= {{{name|{{PAGENAME}}}}} |
||
| above= Tool |
| above= Tool |
||
| image= {{#if: {{{image}}} |
| image= {{#if: {{{image|}}} |{{Image exists|file={{{image|}}}|width={{{width|360px}}}}}}} |
||
| {{#ifexist: {{{image}}} |
|||
| [[{{{image}}}|{{{width|360px}}}]] |
|||
| {{No image|{{{width|360px}}}|link={{{image|}}}}} |
|||
}} |
|||
| {{No image|{{{width|360px}}}}} |
|||
}} |
|||
| caption= {{{caption|}}} |
| caption= {{{caption|}}} |
||
| label1= {{#if: {{{creator}}}|Creator|}} |
| label1= {{#if: {{{creator}}}|Creator|}} |
||
Line 16: | Line 11: | ||
| data2= {{{releasedate|}}} |
| data2= {{{releasedate|}}} |
||
| label3= {{#if: {{{github}}}|GitHub|}} |
| label3= {{#if: {{{github}}}|GitHub|}} |
||
| data3= {{#if: {{{github}}}|[https://github.com/{{{github}}} {{{github}}}] |
| data3= {{#if: {{{github|}}} | [https://github.com/{{{github}}} {{{github}}}]}} |
||
| label4= {{#if: {{{download}}}|Download|}} |
|||
⚫ | |||
| data4= {{#if: {{{download|}}} | [{{{download}}} Link] }} |
|||
{{{{FULLPAGENAME}} |
|||
⚫ | |||
| name= name |
|||
{{Infobox tool |
|||
| image= File: |
| image= File:File_name.png |
||
| caption= caption |
| caption= image caption |
||
| creator= creator |
| creator= creator |
||
| releasedate= |
| releasedate= January 1 1969 |
||
| github= |
| github= name/repo-name |
||
| download= link |
|||
}} |
}} |
||
{{Documentation}} |
{{Documentation}}</noinclude> |
||
</noinclude> |
Latest revision as of 16:41, 24 September 2023
Tool | |
---|---|
Creator | creator |
Initial Release | January 1 1969 |
GitHub | name/repo-name |
Download | [link Link] |
Use this template to add an Infobox to an article for a modding tool. It automatically adds the article to Category:Tools.
Usage
The template supports the following parameters.
name
- The title above the infobox. Default is the full page name.image
- An image to be displayed in the infobox. Default is {{No image}}.- Use just the name of the image, e.g. File:ITM anticrack firewall.png, not [[File:ITM anticrack firewall]]
caption
- The caption below the image.width
- Width of the image/infobox body. Default is 360px.creator
- The name of the person who created the tool.releasedate
- The date the tool was first released.github
- The name of the github repo, if there is one.- Use just the name of the repo, not the URL, e.g. theonlyzac/dagviz, not https://github.com/theonlyzac/dagviz
download
- The link for the download, if there isn't a github repo.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for Infobox tool
An infobox for use on tool articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description | String | optional |
image | image | no description | File | optional |
caption | caption | no description | String | optional |
width | width | no description | Unknown | optional |
creator | creator | no description | String | optional |
releasedate | releasedate | no description | Date | optional |
github | github | no description | String | optional |
download | download | no description | String | optional |