Difference between revisions of "Template:Infobox tool"

From COPTR
Jump to navigation Jump to search
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table class="infobox formatinfo" border="0" style="float: right; border: 1px solid #666666; max-width: 25%; overflow: hidden; background-color: #eee; padding: 0.25em; margin: 0.25em 1em;">
+
<table class="infobox formatinfo" border="0" style="float: right; border: 1px solid #aaa; max-width: 33%; overflow: hidden; background-color: #f9f9f9; padding: 0.25em; margin: 0 0.25em 1em;">
<tr><td align="center" colspan="2">
+
{{#if:{{{image|}}}|
[[Image:{{{image}}}|200px|{{{caption}}}]]
+
<tr><td align="center" colspan="2">[[Image:{{{image}}}|100px|{{PAGENAME}}]]</td></tr>
</td></tr>
+
}}
<tr><td align="center" colspan="2">
+
<tr><td align="center" colspan="2">{{{purpose}}}{{#if: {{{purpose|}}}|{{#set: Purpose={{{purpose}}} }} }}</td></tr>
<small>{{{purpose}}}</small>
+
<tr><td><small><b>Homepage:</b></small></td><td>{{#if: {{{homepage|}}}|{{#set: Homepage={{{homepage}}} }} }}<small>{{{homepage|Unknown}}}</small></td></tr>
</td></tr>
+
{{#if:{{{sourcecode|}}}|{{#set: Sourcecode={{{sourcecode}}} }}
<tr><td>
+
<tr><td><small><b>Source Code:</b></small></td><td><small>{{{sourcecode|Unknown}}}</small></td></tr>
<small><b>Homepage:</b></small>
+
}}
</td><td>
+
{{#if:{{{license|}}}|{{#set: License={{{license}}} }}
<small>{{{homepage|Unknown}}}</small>
+
<tr><td><small><b>License:</b></small></td><td><small>{{{license|Unknown}}}</small></td></tr>
</td></tr>
+
}}
<tr><td>
+
{{#if:{{{cost|}}}| {{#set: Cost={{{cost}}} }}
<small><b>Source Code:</b></small>
+
<tr><td><small><b>Cost:</b></small></td><td><small>{{{cost|Unknown}}}</small></td></tr>
</td><td>
+
}}
<small>{{{sourcecode|Unknown}}}</small>
+
{{#if:{{{platforms|}}}| {{#set: Platforms = {{{platforms}}} }}
</td></tr>
+
<tr><td><small><b>Platforms:</b></small></td><td><small>{{{platforms|Unknown}}}</small></td></tr>
<tr><td>
+
}}
<small><b>License:</b></small>
+
{{#if:{{{language|}}}|
</td><td>
+
<tr><td><small><b>Language:</b></small></td><td><small>{{{language|Unknown}}}</small></td></tr>
<small>{{{license|Unknown}}}</small>
+
}}
</td></tr>
+
{{#if:{{{Wikidata ID|}}}| {{#set: Wikidata ID = {{{Wikidata ID}}} }}
<tr><td>
+
<tr><td><small><b>Wikidata ID:</b></small></td><td><small>[https://www.wikidata.org/wiki/{{{Wikidata ID}}} {{{Wikidata ID}}}]</small></td></tr>
<small><b>Cost:</b></small>
+
}}
</td><td>
+
{{#if:{{{formats_in|}}}|
<small>{{{cost|Unknown}}}</small>
+
<tr><td><small><b>Input Formats:</b></small></td><td><small>{{#arraymap:{{{formats_in|}}}|,|xqqx|{{#formredlink:target=xqqx|form=Format}}{{#set:Input format=xqqx}} }}</ul></small></td></tr>
</td></tr>
+
}}
<tr><td>
+
{{#if:{{{formats_out|}}}|
<small><b>Platforms:</b></small>
+
<tr><td><small><b>Output Formats:</b></small></td><td><small>{{#arraymap:{{{formats_out|}}}|,|xqqx|{{#formredlink:target=xqqx|form=Format}}{{#set:Output format=xqqx}} }}</small></td></tr>
</td><td>
+
}}
<small>{{{platforms|Unknown}}}</small>
+
{{#if:{{{function|}}}|
</td></tr>
+
<tr><td><small><b>Function:</b></small></td><td><small>{{#arraymap: {{{function|}}}|,|xqqx|[[xqqx]]{{#set: Function=xqqx }} {{#switch: xqqx|Fixity Verification=[[Category:Fixity]]|[[Category:xqqx]]}}|, }}</small></td></tr>|[[Category:Tools without Function]]
 +
}}
 +
{{#if:{{{content|}}}|
 +
<tr><td><small><b>Content type:</b></small></td><td><small>{{#arraymap: {{{content|}}}|,|xqqx|[[xqqx]]{{#set: Content=xqqx }} [[Category:xqqx]]|, }}</small></td></tr>|[[Category:Tools without Content Type]]
 +
}}
 +
{{#if:{{#ask: [[Category:COW Workflows]] [[Tools::{{PAGENAME}}]]}}|
 +
<tr><td><small><b>Appears in [[Workflow:Community_Owned_Workflows|COW]]:</b></small></td><td><small>{{#ask: [[Category:COW Workflows]] [[Tools::{{PAGENAME}}]]|limit=500|format=list}}</small></td></tr>
 +
}}
 
</table>
 
</table>
  
[[Category:{{{type}}}]]
+
[[Category:Tools]]
  
[[Category:Tool_type/{{{type}}}]]
+
{{#if:{{{license|}}}|
 
+
|
[[Category:License/{{{license}}}]]
+
[[Category:Unknown_license]]
 +
}}

Latest revision as of 12:38, 20 October 2021

{{{purpose}}}
Homepage:Unknown