Template:Infobox software: Difference between revisions

From BOINC Projects
Jump to navigation Jump to search
Al Piskun (talk | contribs)
Undo revision 1075 by Al Piskun (talk)
Al Piskun (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><table class="infobox" style="width: 280px; float: right; clear: right; margin: 0 0 1em 1em; border: 1px solid #c8ccd1; border-radius: 4px; border-collapse: separate; border-spacing: 0; background-color: #ffffff; color: #202122; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
<includeonly><table class="infobox" style="width: 280px; float: right; clear: right; margin: 0 0 1em 1em; border: 1px solid #c8ccd1; border-radius: 4px; border-collapse: separate; border-spacing: 0; background-color: #ffffff; color: #202122; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Lato, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.5; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
   
 
     <!-- Header / Title -->
     <!-- Header / Title -->
     <tr>
     <tr>
Line 13: Line 13:
         <td colspan="2" style="text-align:center; padding:12px; background-color:#ffffff; border-bottom:1px solid #eaecf0;">
         <td colspan="2" style="text-align:center; padding:12px; background-color:#ffffff; border-bottom:1px solid #eaecf0;">
             [[File:{{{logo}}}|180px|center]]
             [[File:{{{logo}}}|180px|center]]
             {{#if:{{{logo caption|}}}|
             {{#if:{{{logo caption|}}}|<div style="font-size:11px; color:#54595d; margin-top:6px;">{{{logo caption}}}</div>}}
            <div style="font-size:11px; color:#54595d; margin-top:6px;">{{{logo caption}}}</div>
            }}
         </td>
         </td>
     </tr>
     </tr>
     }}
     }}
   
 
     <!-- Screenshot -->
     <!-- Screenshot -->
     {{#if:{{{screenshot|}}}|
     {{#if:{{{screenshot|}}}|
Line 25: Line 23:
         <td colspan="2" style="text-align: center; padding: 12px; background-color: #f8f9fa; border-bottom: 1px solid #eaecf0;">
         <td colspan="2" style="text-align: center; padding: 12px; background-color: #f8f9fa; border-bottom: 1px solid #eaecf0;">
             [[File:{{{screenshot}}}|240px|center]]
             [[File:{{{screenshot}}}|240px|center]]
             {{#if:{{{caption|}}}|
             {{#if:{{{caption|}}}|<div style="font-size: 11px; color: #54595d; margin-top: 6px;">{{{caption}}}</div>}}
            <div style="font-size: 11px; color: #54595d; line-height: 1.3; margin-top: 6px; padding: 0 4px;">
                {{{caption}}}
            </div>
            }}
         </td>
         </td>
     </tr>
     </tr>
Line 37: Line 31:
     {{#if:{{{developer|}}}{{{author|}}}{{{maintainer|}}}{{{released|}}}{{{discontinued|}}}{{{repository|}}}|
     {{#if:{{{developer|}}}{{{author|}}}{{{maintainer|}}}{{{released|}}}{{{discontinued|}}}{{{repository|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 10px; background-color: #f8f9fa; color: #54595d; border-bottom: 1px solid #eaecf0;">
         <th colspan="2" style="text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 6px 10px; background-color: #f8f9fa; color: #54595d;">
             Development
             Development
         </th>
         </th>
Line 43: Line 37:
     }}
     }}


     {{#if:{{{author|}}}|
     {{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}}
    <tr>
     {{#if:{{{developer|}}}|<tr><th>Developer</th><td>{{{developer}}}</td></tr>}}
        <th style="width:35%; padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Author</th>
     {{#if:{{{maintainer|}}}|<tr><th>Maintainer</th><td>{{{maintainer}}}</td></tr>}}
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{author}}}</td>
     {{#if:{{{released|}}}|<tr><th>Initial release</th><td>{{{released}}}</td></tr>}}
    </tr>
     {{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td style="color:#b32121;font-weight:500;">{{{discontinued}}}</td></tr>}}
    }}
     {{#if:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}
 
     {{#if:{{{developer|}}}|
    <tr>
        <th style="width:35%; padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Developer</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{developer}}}</td>
    </tr>
    }}
 
     {{#if:{{{maintainer|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Maintainer</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{maintainer}}}</td>
    </tr>
    }}
 
     {{#if:{{{released|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Initial release</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{released}}}</td>
    </tr>
    }}
 
     {{#if:{{{discontinued|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Discontinued</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top; color:#b32121; font-weight:500;">{{{discontinued}}}</td>
    </tr>
    }}
 
     {{#if:{{{repository|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Repository</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top; word-break:break-all;">{{{repository}}}</td>
    </tr>
    }}


     <!-- Releases -->
     <!-- Releases -->
     {{#if:{{{stable release|}}}{{{preview release|}}}{{{latest release version|}}}{{{latest preview version|}}}|
     {{#if:{{{stable release|}}}{{{preview release|}}}{{{latest release version|}}}{{{latest preview version|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:6px 10px; background-color:#f8f9fa; color:#54595d; border-bottom:1px solid #eaecf0;">
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
             Releases
             Releases
         </th>
         </th>
Line 94: Line 53:
     }}
     }}


     {{#if:{{{stable release|}}}|
     {{#if:{{{stable release|}}}|<tr><th>Stable release</th><td>{{{stable release}}}</td></tr>}}
    <tr>
     {{#if:{{{preview release|}}}|<tr><th>Preview release</th><td>{{{preview release}}}</td></tr>}}
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Stable release</th>
     {{#if:{{{latest release version|}}}|<tr><th>Latest version</th><td>{{{latest release version}}}</td></tr>}}
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{stable release}}}</td>
     {{#if:{{{latest preview version|}}}|<tr><th>Latest preview</th><td>{{{latest preview version}}}</td></tr>}}
    </tr>
    }}
 
     {{#if:{{{preview release|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Preview release</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{preview release}}}</td>
    </tr>
    }}
 
     {{#if:{{{latest release version|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Latest version</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{latest release version}}}</td>
    </tr>
    }}
 
     {{#if:{{{latest preview version|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Latest preview</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{latest preview version}}}</td>
    </tr>
    }}


     <!-- Environment -->
     <!-- Environment -->
     {{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{size|}}}{{{language|}}}{{{language count|}}}|
     {{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{size|}}}{{{language|}}}{{{language count|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:6px 10px; background-color:#f8f9fa; color:#54595d; border-bottom:1px solid #eaecf0;">
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
             Environment
             Environment
         </th>
         </th>
Line 131: Line 67:
     }}
     }}


     {{#if:{{{programming language|}}}|
     {{#if:{{{programming language|}}}|<tr><th>Written in</th><td>{{{programming language}}}</td></tr>}}
     <tr>
     {{#if:{{{operating system|}}}|<tr><th>Operating system</th><td>{{{operating system}}}</td></tr>}}
        <th style="width:35%; padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Written in</th>
    {{#if:{{{platform|}}}|<tr><th>Platform</th><td>{{{platform}}}</td></tr>}}
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{programming language}}}</td>
    {{#if:{{{language|}}}|<tr><th>Available in</th><td>{{{language}}}</td></tr>}}
     </tr>
    {{#if:{{{language count|}}}|<tr><th>Language count</th><td>{{{language count}}}</td></tr>}}
    }}
     {{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}


     {{#if:{{{operating system|}}}|
    <!-- ========================= -->
    <!-- USAGE STATISTICS (NEW) -->
    <!-- ========================= -->
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|
     <tr>
     <tr>
         <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Operating system</th>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{operating system}}}</td>
            Usage statistics
        </th>
     </tr>
     </tr>
     }}
     }}


     {{#if:{{{platform|}}}|
     {{#if:{{{average performance|}}}|
     <tr>
     <tr>
         <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Platform</th>
         <th>Average performance</th>
         <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{platform}}}</td>
         <td>
            {{#ifexpr: {{{average performance|0}}} > 1000000000000
                | {{#expr: {{{average performance}}} / 1000000000000 }} TFLOPS
                | {{#ifexpr: {{{average performance|0}}} > 1000000000
                    | {{#expr: {{{average performance}}} / 1000000000 }} GFLOPS
                    | {{#ifexpr: {{{average performance|0}}} > 1000000
                        | {{#expr: {{{average performance}}} / 1000000 }} MFLOPS
                        | {{formatnum:{{{average performance}}}}} FLOPS
                    }}
                }}
            }}
        </td>
     </tr>
     </tr>
     }}
     }}


     {{#if:{{{language|}}}|
     {{#if:{{{active users|}}}|<tr><th>Active users</th><td>{{formatnum:{{{active users}}}}}</td></tr>}}
    <tr>
    {{#if:{{{total users|}}}|<tr><th>Total users</th><td>{{formatnum:{{{total users}}}}}</td></tr>}}
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Available in</th>
     {{#if:{{{active hosts|}}}|<tr><th>Active hosts</th><td>{{formatnum:{{{active hosts}}}}}</td></tr>}}
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{language}}}</td>
     {{#if:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}
    </tr>
    }}
 
     {{#if:{{{language count|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Language count</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{language count}}}</td>
    </tr>
    }}
 
     {{#if:{{{size|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Size</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{size}}}</td>
    </tr>
    }}


     <!-- Software Metadata -->
     <!-- Software Metadata -->
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; padding:6px 10px; background-color:#f8f9fa; color:#54595d; border-bottom:1px solid #eaecf0;">
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
             Software Metadata
             Software Metadata
         </th>
         </th>
Line 182: Line 117:
     }}
     }}


     {{#if:{{{type|}}}|
     {{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
    <tr>
     {{#if:{{{genre|}}}|<tr><th>Genre</th><td>{{{genre}}}</td></tr>}}
        <th style="width:35%; padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Type</th>
     {{#if:{{{status|}}}|<tr><th>Status</th><td>{{{status}}}</td></tr>}}
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{type}}}</td>
     {{#if:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
    </tr>
     {{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}
    }}
 
     {{#if:{{{genre|}}}|
    <tr>
        <th style="width:35%; padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Genre</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{genre}}}</td>
    </tr>
    }}
 
     {{#if:{{{status|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Status</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{status}}}</td>
    </tr>
    }}
 
     {{#if:{{{license|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">License</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top;">{{{license}}}</td>
    </tr>
    }}
 
     {{#if:{{{website|}}}|
    <tr>
        <th style="padding:8px 10px; text-align:left; font-weight:600; color:#54595d; border-bottom:1px solid #eaecf0; vertical-align:top;">Website</th>
        <td style="padding:8px 10px; border-bottom:1px solid #eaecf0; vertical-align:top; word-break:break-all;">{{{website}}}</td>
    </tr>
    }}


</table></includeonly>
</table></includeonly>
Line 257: Line 163:
       "type": "url"
       "type": "url"
     },
     },
     "stable release": {
     "stable release": {
       "label": "Stable release",
       "label": "Stable release",
Line 274: Line 181:
       "type": "string"
       "type": "string"
     },
     },
     "programming language": {
     "programming language": {
       "label": "Written in",
       "label": "Written in",
Line 299: Line 207:
       "type": "string"
       "type": "string"
     },
     },
     "type": {
     "type": {
       "label": "Type",
       "label": "Type",
Line 322: Line 231:
       "type": "url",
       "type": "url",
       "suggested": true
       "suggested": true
    },
    "average performance": {
      "label": "Average performance",
      "description": "Compute or reported performance (e.g. FLOPS, GFLOPS, TFLOPS)",
      "type": "number"
    },
    "active users": {
      "label": "Active users",
      "description": "Currently active users participating in the project",
      "type": "number"
    },
    "total users": {
      "label": "Total users",
      "description": "Total registered users",
      "type": "number"
    },
    "active hosts": {
      "label": "Active hosts",
      "description": "Currently active computing hosts",
      "type": "number"
    },
    "total hosts": {
      "label": "Total hosts",
      "description": "Total registered computing hosts",
      "type": "number"
     }
     }
   },
   },
   "paramOrder": [
   "paramOrder": [
     "name", "author", "developer", "maintainer", "released", "discontinued",
     "name",
     "repository", "stable release", "preview release", "latest release version",
    "author",
     "latest preview version", "programming language", "operating system",
    "developer",
     "platform", "language", "language count", "size", "type", "genre",
    "maintainer",
     "status", "license", "website"
    "released",
    "discontinued",
     "repository",
 
    "stable release",
    "preview release",
    "latest release version",
     "latest preview version",
 
    "programming language",
    "operating system",
     "platform",
    "language",
    "language count",
    "size",
 
    "average performance",
    "active users",
    "total users",
    "active hosts",
    "total hosts",
 
    "type",
    "genre",
     "status",
    "license",
    "website"
   ]
   ]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 18:47, 19 May 2026


<templatedata> {

 "description": "Infobox for software articles",
 "params": {
   "name": {
     "label": "Name",
     "description": "Name of the software (defaults to page name)",
     "type": "string",
     "suggested": true
   },
   "author": {
     "label": "Author",
     "type": "string",
     "suggested": true
   },
   "developer": {
     "label": "Developer",
     "type": "string",
     "suggested": true
   },
   "maintainer": {
     "label": "Maintainer",
     "type": "string"
   },
   "released": {
     "label": "Initial release",
     "type": "string",
     "suggested": true
   },
   "discontinued": {
     "label": "Discontinued",
     "type": "string"
   },
   "repository": {
     "label": "Repository",
     "type": "url"
   },
   "stable release": {
     "label": "Stable release",
     "type": "string",
     "suggested": true
   },
   "preview release": {
     "label": "Preview release",
     "type": "string"
   },
   "latest release version": {
     "label": "Latest version",
     "type": "string"
   },
   "latest preview version": {
     "label": "Latest preview",
     "type": "string"
   },
   "programming language": {
     "label": "Written in",
     "type": "string"
   },
   "operating system": {
     "label": "Operating system",
     "type": "string",
     "suggested": true
   },
   "platform": {
     "label": "Platform",
     "type": "string"
   },
   "language": {
     "label": "Available in",
     "type": "string"
   },
   "language count": {
     "label": "Language count",
     "type": "number"
   },
   "size": {
     "label": "Size",
     "type": "string"
   },
   "type": {
     "label": "Type",
     "type": "string",
     "suggested": true
   },
   "genre": {
     "label": "Genre",
     "type": "string"
   },
   "status": {
     "label": "Status",
     "type": "string",
     "suggested": true
   },
   "license": {
     "label": "License",
     "type": "string",
     "suggested": true
   },
   "website": {
     "label": "Website",
     "type": "url",
     "suggested": true
   },
   "average performance": {
     "label": "Average performance",
     "description": "Compute or reported performance (e.g. FLOPS, GFLOPS, TFLOPS)",
     "type": "number"
   },
   "active users": {
     "label": "Active users",
     "description": "Currently active users participating in the project",
     "type": "number"
   },
   "total users": {
     "label": "Total users",
     "description": "Total registered users",
     "type": "number"
   },
   "active hosts": {
     "label": "Active hosts",
     "description": "Currently active computing hosts",
     "type": "number"
   },
   "total hosts": {
     "label": "Total hosts",
     "description": "Total registered computing hosts",
     "type": "number"
   }
 },
 "paramOrder": [
   "name",
   "author",
   "developer",
   "maintainer",
   "released",
   "discontinued",
   "repository",
   "stable release",
   "preview release",
   "latest release version",
   "latest preview version",
   "programming language",
   "operating system",
   "platform",
   "language",
   "language count",
   "size",
   "average performance",
   "active users",
   "total users",
   "active hosts",
   "total hosts",
   "type",
   "genre",
   "status",
   "license",
   "website"
 ]

} </templatedata>