Template:Infobox software: Difference between revisions

From BOINC Projects
Jump to navigation Jump to search
Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
No edit summary
Line 74: Line 74:
     {{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}
     {{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}


     <!-- Usage statistics -->
     <!-- ========================= -->
    <!-- USAGE STATISTICS -->
    <!-- ========================= -->
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|
     <tr>
     <tr>
Line 83: Line 85:
     }}
     }}


     {{#if:{{{average performance|}}}|<tr><th>Average performance</th><td>{{{average performance}}}</td></tr>}}
     {{#if:{{{average performance|}}}|
     {{#if:{{{active users|}}}|<tr><th>Active users</th><td>{{formatnum:{{{active users}}}}}</td></tr>}}
    <tr><th>Average performance</th><td>{{{average performance}}}</td></tr>
     {{#if:{{{total users|}}}|<tr><th>Total users</th><td>{{formatnum:{{{total users}}}}}</td></tr>}}
    }}
     {{#if:{{{active hosts|}}}|<tr><th>Active hosts</th><td>{{formatnum:{{{active hosts}}}}}</td></tr>}}
 
     {{#if:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}
     {{#if:{{{active users|}}}|
    <tr><th>Active users</th><td>{{formatnum:{{{active users}}}}}</td></tr>
    }}
 
     {{#if:{{{total users|}}}|
    <tr><th>Total users</th><td>{{formatnum:{{{total users}}}}}</td></tr>
    }}
 
     {{#if:{{{active hosts|}}}|
    <tr><th>Active hosts</th><td>{{formatnum:{{{active hosts}}}}}</td></tr>
    }}
 
     {{#if:{{{total hosts|}}}|
    <tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>
    }}


     <!-- BOINC analytics -->
     <!-- BOINC analytics -->
     {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}{{{project status|}}}|
     {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
         <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
Line 102: Line 118:
     {{#if:{{{gpu performance|}}}|<tr><th>GPU performance</th><td>{{{gpu performance}}}</td></tr>}}
     {{#if:{{{gpu performance|}}}|<tr><th>GPU performance</th><td>{{{gpu performance}}}</td></tr>}}
     {{#if:{{{cpu performance|}}}|<tr><th>CPU performance</th><td>{{{cpu performance}}}</td></tr>}}
     {{#if:{{{cpu performance|}}}|<tr><th>CPU performance</th><td>{{{cpu performance}}}</td></tr>}}
    {{#if:{{{project status|}}}|<tr><th>Project status</th><td>{{{project status}}}</td></tr>}}
    <!-- ========================= -->
    <!-- COLLAPSIBLE ADVANCED STATS -->
    <!-- ========================= -->
{{#if:{{{advanced stats|}}}{{{last checked|}}}{{{server status|}}}{{{uptime|}}}{{{api status|}}}|
<tr>
    <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
        Advanced stats
    </th>
</tr>
<tr>
    <td colspan="2" style="padding:0;">
<div class="mw-collapsible mw-collapsed" style="padding:8px;font-size:12px;">
{{#if:{{{server status|}}}|<div><b>Server status:</b> {{{server status}}}</div>}}
{{#if:{{{uptime|}}}|<div><b>Uptime:</b> {{{uptime}}}</div>}}
{{#if:{{{api status|}}}|<div><b>API status:</b> {{{api status}}}</div>}}
{{#if:{{{last checked|}}}|<div><b>Last checked:</b> {{{last checked}}}</div>}}
{{#if:{{{advanced stats|}}}|<div style="margin-top:6px;">{{{advanced stats}}}</div>}}
</div>
    </td>
</tr>
}}


     <!-- Metadata -->
     <!-- Metadata -->

Revision as of 19:59, 19 May 2026


<templatedata> {

 "description": "Infobox for software and BOINC project articles",
 "params": {
   "name": {
     "label": "Name",
     "description": "Name of the software or project",
     "type": "string",
     "suggested": true
   },
   "logo": {
     "label": "Logo",
     "type": "wiki-file-name"
   },
   "logo caption": {
     "label": "Logo caption",
     "type": "string"
   },
   "screenshot": {
     "label": "Screenshot",
     "type": "wiki-file-name"
   },
   "caption": {
     "label": "Screenshot caption",
     "type": "string"
   },
   "author": {
     "label": "Author",
     "type": "string"
   },
   "developer": {
     "label": "Developer",
     "type": "string"
   },
   "maintainer": {
     "label": "Maintainer",
     "type": "string"
   },
   "released": {
     "label": "Initial release",
     "type": "string"
   },
   "discontinued": {
     "label": "Discontinued",
     "type": "string"
   },
   "repository": {
     "label": "Repository",
     "type": "string"
   },
   "stable release": {
     "label": "Stable release",
     "type": "string"
   },
   "preview release": {
     "label": "Preview release",
     "type": "string"
   },
   "latest release version": {
     "label": "Latest version",
     "type": "string"
   },
   "latest preview version": {
     "label": "Latest preview version",
     "type": "string"
   },
   "programming language": {
     "label": "Programming language",
     "type": "string"
   },
   "operating system": {
     "label": "Operating system",
     "type": "string"
   },
   "platform": {
     "label": "Platform",
     "type": "string"
   },
   "language": {
     "label": "Language",
     "type": "string"
   },
   "language count": {
     "label": "Language count",
     "type": "number"
   },
   "size": {
     "label": "Size",
     "type": "string"
   },
   "average performance": {
     "label": "Average performance",
     "type": "string"
   },
   "active users": {
     "label": "Active users",
     "type": "number"
   },
   "total users": {
     "label": "Total users",
     "type": "number"
   },
   "active hosts": {
     "label": "Active hosts",
     "type": "number"
   },
   "total hosts": {
     "label": "Total hosts",
     "type": "number"
   },
   "rac": {
     "label": "RAC",
     "description": "Recent Average Credit",
     "type": "number"
   },
   "credit per day": {
     "label": "Credit per day",
     "type": "number"
   },
   "gpu performance": {
     "label": "GPU performance",
     "type": "string"
   },
   "cpu performance": {
     "label": "CPU performance",
     "type": "string"
   },
   "project status": {
     "label": "Project status",
     "type": "string"
   },
   "server status": {
     "label": "Server status",
     "type": "string"
   },
   "uptime": {
     "label": "Uptime",
     "type": "string"
   },
   "api status": {
     "label": "API status",
     "type": "string"
   },
   "last checked": {
     "label": "Last checked",
     "type": "string"
   },
   "advanced stats": {
     "label": "Advanced stats",
     "type": "content"
   },
   "type": {
     "label": "Type",
     "type": "string"
   },
   "genre": {
     "label": "Genre",
     "type": "string"
   },
   "status": {
     "label": "Status",
     "type": "string"
   },
   "license": {
     "label": "License",
     "type": "string"
   },
   "website": {
     "label": "Website",
     "type": "string"
   }
 },
 "paramOrder": [
   "name",
   "logo",
   "logo caption",
   "screenshot",
   "caption",
   "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",
   "rac",
   "credit per day",
   "gpu performance",
   "cpu performance",
   "project status",
   "server status",
   "uptime",
   "api status",
   "last checked",
   "advanced stats",
   "type",
   "genre",
   "status",
   "license",
   "website"
 ]

} </templatedata>