Template:Infobox Tool: Difference between revisions

Template page
(Created page with "<infobox> <title source="name"> <default>{{PAGENAME}}</default> </title> <image source="image"> <caption source="caption1"/> </image> <data source="developer"> <label>'''Developers'''</label> </data> <data source="license"> <label>'''License'''</label> </data> <data source="platform"> <label>'''Platform'''</label> </data> <data source="release"> <label>'''Latest Release'''</label> </data> <data source="languages"> <la...")
Tags: Mobile edit Mobile web edit
 
No edit summary
Line 1: Line 1:
<includeonly>
<infobox>
{|cellpadding="0" cellspacing="0" class="breakout" style="margin-left:1em" width="262px"
<title source="name">
| style="text-align: center;"|
<default>{{PAGENAME}}</default>
|-class="breakouttitle"
</title>
! ''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}''
<image source="image">
|-
<caption source="caption1"/>
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
</image>
{{imageexists
<data source="developer">
| file = {{{image}}}
<label>'''Developers'''</label>
| width = {{imagewidth}}
</data>
| caption= {{{title}}}
<data source="license">
}}
<label>'''License'''</label>

</data>
{{ #if: {{{internal|}}} | '''Internal''': {{{internal}}}<br> | }}
<data source="platform">
{{ #if: {{{developer|}}} | '''Developer(s)''': {{{developer}}}<br> | }}
<label>'''Platform'''</label>
{{ #if: {{{langs|}}} | '''Languages''': {{{langs}}}<br> | }}
</data>
{{ #if: {{{license|}}} | '''License''': {{{license}}}<br> | }}
<data source="release">
<label>'''Latest Release'''</label>
{{ #if: {{{release|}}} | '''Latest release''': {{{release}}}<br> | }}
|}</includeonly><noinclude>
</data>
<data source="languages">
<label>'''Written in'''</label>
</data>
</infobox>
<noinclude>


Usage:
Usage:
<pre>
<pre>
{{Infobox Tool
{{Infobox Tool
|name=My tool
|title=My Cool Tool
|image=modwikiLogo.png
|image=Test.png
|internal=no
|developers=dev1
|developer=Developers who worked on this tool
|license=GNU GPL v3
|langs=C/C++
|platform=PC
|license=GPL v3
|release=v0.1
|release=v0.5
|languages=C++
}}
}}
</pre>
</pre>

Becomes:


{{Infobox Tool
{{Infobox Tool
|name=My tool
|title=My Cool Tool
|image=modwikiLogo.png
|image=Test.png
|internal=no
|developers=dev1
|developer=Developers who worked on this tool
|license=GNU GPL v3
|langs=C/C++
|platform=PC
|license=GPL v3
|release=v0.1
|release=v0.5
|languages=C++
}}
}}

TODO: This template should auto-categorize (based on <code>internal</code> as well) so that users do not have to do it themselves.

</noinclude>

Revision as of 20:49, 28 September 2022


Usage:

{{Infobox Tool
|title=My Cool Tool
|image=Test.png
|internal=no
|developer=Developers who worked on this tool
|langs=C/C++
|license=GPL v3
|release=v0.5
}}

Becomes:


My Cool Tool

Click to upload a new image...Dummy link

Internal: no
Developer(s): Developers who worked on this tool
Languages: C/C++
License: GPL v3
Latest release: v0.5

TODO: This template should auto-categorize (based on internal as well) so that users do not have to do it themselves.