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 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 -->
     <tr>
     <tr>
         <th colspan="2" style="text-align: center; font-size: 18px; font-weight: 600; padding: 12px; background-color: #2c3e50; color: #ffffff; border-top-left-radius: 3px; border-top-right-radius: 3px;">
         <th colspan="2" style="text-align:center;font-size:18px;font-weight:600;padding:12px;background:#2c3e50;color:#fff;">
             {{{name|{{PAGENAME}}}}}
             {{{name|{{PAGENAME}}}}}
         </th>
         </th>
Line 11: Line 11:
     {{#if:{{{logo|}}}|
     {{#if:{{{logo|}}}|
     <tr>
     <tr>
         <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;">
             [[File:{{{logo}}}|180px|center]]
             [[File:{{{logo}}}|180px|center]]
             {{#if:{{{logo caption|}}}|<div style="font-size:11px; color:#54595d; margin-top:6px;">{{{logo caption}}}</div>}}
             {{#if:{{{logo caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{logo caption}}}</div>}}
         </td>
         </td>
     </tr>
     </tr>
Line 21: Line 21:
     {{#if:{{{screenshot|}}}|
     {{#if:{{{screenshot|}}}|
     <tr>
     <tr>
         <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:#f8f9fa;">
             [[File:{{{screenshot}}}|240px|center]]
             [[File:{{{screenshot}}}|240px|center]]
             {{#if:{{{caption|}}}|<div style="font-size: 11px; color: #54595d; margin-top: 6px;">{{{caption}}}</div>}}
             {{#if:{{{caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{caption}}}</div>}}
         </td>
         </td>
     </tr>
     </tr>
Line 30: Line 30:
     <!-- Development -->
     <!-- Development -->
     {{#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;padding:6px;background:#f8f9fa;">Development</th></tr>
        <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
        </th>
    </tr>
     }}
     }}


Line 40: Line 36:
     {{#if:{{{developer|}}}|<tr><th>Developer</th><td>{{{developer}}}</td></tr>}}
     {{#if:{{{developer|}}}|<tr><th>Developer</th><td>{{{developer}}}</td></tr>}}
     {{#if:{{{maintainer|}}}|<tr><th>Maintainer</th><td>{{{maintainer}}}</td></tr>}}
     {{#if:{{{maintainer|}}}|<tr><th>Maintainer</th><td>{{{maintainer}}}</td></tr>}}
     {{#if:{{{released|}}}|<tr><th>Initial release</th><td>{{{released}}}</td></tr>}}
 
    <!-- Initial release WITH AGE -->
     {{#if:{{{released|}}}|
    <tr>
        <th>Initial release</th>
        <td>
            {{{released}}}
            {{#if:{{{released date|}}}|<br><small>{{{{Start date and age|{{{released date}}}}}}}</small>}}
        </td>
    </tr>
    }}
 
     {{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td style="color:#b32121;font-weight:500;">{{{discontinued}}}</td></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:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}
Line 46: Line 53:
     <!-- 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;padding:6px;background:#f8f9fa;">Releases</th></tr>
        <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
            Releases
        </th>
    </tr>
     }}
     }}


Line 60: Line 63:
     <!-- 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;padding:6px;background:#f8f9fa;">Environment</th></tr>
        <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
            Environment
        </th>
    </tr>
     }}
     }}


Line 75: Line 74:


     <!-- ========================= -->
     <!-- ========================= -->
     <!-- USAGE STATISTICS (NEW) -->
     <!-- USAGE STATISTICS -->
     <!-- ========================= -->
     <!-- ========================= -->
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}{{{rac|}}}{{{credit per day|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
         <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
             Usage statistics
             Usage statistics
         </th>
         </th>
Line 85: Line 84:
     }}
     }}


    <!-- Average performance WITH timestamp -->
     {{#if:{{{average performance|}}}|
     {{#if:{{{average performance|}}}|
     <tr>
     <tr>
         <th>Average performance</th>
         <th>Average performance</th>
         <td>
         <td>
             {{#ifexpr: {{{average performance|0}}} > 1000000000000
             {{{average performance}}}
                | {{#expr: {{{average performance}}} / 1000000000000 }} TFLOPS
            {{#if:{{{average performance date|}}}|
                 | {{#ifexpr: {{{average performance|0}}} > 1000000000
                 <br><small>{{{{Start date and age|{{{average performance date}}}}}}}</small>
                    | {{#expr: {{{average performance}}} / 1000000000 }} GFLOPS
                    | {{#ifexpr: {{{average performance|0}}} > 1000000
                        | {{#expr: {{{average performance}}} / 1000000 }} MFLOPS
                        | {{formatnum:{{{average performance}}}}} FLOPS
                    }}
                }}
             }}
             }}
         </td>
         </td>
Line 103: Line 97:
     }}
     }}


     {{#if:{{{active users|}}}|<tr><th>Active users</th><td>{{formatnum:{{{active users}}}}}</td></tr>}}
     {{#if:{{{active users|}}}|
    {{#if:{{{total users|}}}|<tr><th>Total users</th><td>{{formatnum:{{{total users}}}}}</td></tr>}}
    <tr>
    {{#if:{{{active hosts|}}}|<tr><th>Active hosts</th><td>{{formatnum:{{{active hosts}}}}}</td></tr>}}
        <th>Active users</th>
    {{#if:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}
        <td>
            {{formatnum:{{{active users}}}}}
            {{#if:{{{active users date|}}}|
                <br><small>{{{{Start date and age|{{{active users date}}}}}}}</small>
            }}
        </td>
    </tr>
    }}


    <!-- Software Metadata -->
     {{#if:{{{total users|}}}|
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     <tr>
     <tr>
         <th colspan="2" style="text-align:center; font-size:11px; font-weight:700; text-transform:uppercase; padding:6px 10px; background-color:#f8f9fa;">
         <th>Total users</th>
             Software Metadata
        <td>
         </th>
            {{formatnum:{{{total users}}}}}
            {{#if:{{{total users date|}}}|
                <br><small>{{{{Start date and age|{{{total users date}}}}}}}</small>
             }}
         </td>
     </tr>
     </tr>
     }}
     }}


     {{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
     {{#if:{{{active hosts|}}}|
    {{#if:{{{genre|}}}|<tr><th>Genre</th><td>{{{genre}}}</td></tr>}}
    <tr>
    {{#if:{{{status|}}}|<tr><th>Status</th><td>{{{status}}}</td></tr>}}
        <th>Active hosts</th>
    {{#if:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
        <td>
    {{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}
            {{formatnum:{{{active hosts}}}}}
            {{#if:{{{active hosts date|}}}|
                <br><small>{{{{Start date and age|{{{active hosts date}}}}}}}</small>
            }}
        </td>
    </tr>
    }}


</table></includeonly>
    {{#if:{{{total hosts|}}}|
    <tr>
        <th>Total hosts</th>
        <td>
            {{formatnum:{{{total hosts}}}}}
            {{#if:{{{total hosts date|}}}|
                <br><small>{{{{Start date and age|{{{total hosts date}}}}}}}</small>
            }}
        </td>
    </tr>
    }}


<noinclude>
    <!-- BOINC ANALYTICS EXTENSION -->
<templatedata>
    {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
{
     <tr>
  "description": "Infobox for software articles",
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
  "params": {
            BOINC analytics
    "name": {
        </th>
      "label": "Name",
     </tr>
      "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": {
     {{#if:{{{rac|}}}|
      "label": "Stable release",
     <tr><th>RAC</th><td>{{formatnum:{{{rac}}}}}</td></tr>
      "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": {
     {{#if:{{{credit per day|}}}|
      "label": "Written in",
     <tr><th>Credit/day</th><td>{{formatnum:{{{credit per day}}}}}</td></tr>
      "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": {
     {{#if:{{{gpu performance|}}}|
      "label": "Type",
     <tr><th>GPU performance</th><td>{{{gpu performance}}}</td></tr>
      "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": {
     {{#if:{{{cpu performance|}}}|
      "label": "Average performance",
     <tr><th>CPU performance</th><td>{{{cpu performance}}}</td></tr>
      "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": [
     <!-- Metadata -->
     "name",
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     "author",
     <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Software Metadata</th></tr>
     "developer",
     }}
    "maintainer",
     "released",
    "discontinued",
    "repository",


     "stable release",
     {{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
     "preview release",
     {{#if:{{{genre|}}}|<tr><th>Genre</th><td>{{{genre}}}</td></tr>}}
     "latest release version",
     {{#if:{{{status|}}}|<tr><th>Status</th><td>{{{status}}}</td></tr>}}
     "latest preview version",
     {{#if:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
    {{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}


    "programming language",
</table></includeonly>
    "operating system",
    "platform",
    "language",
    "language count",
    "size",
 
    "average performance",
    "active users",
    "total users",
    "active hosts",
    "total hosts",
 
    "type",
    "genre",
    "status",
    "license",
    "website"
  ]
}
</templatedata>
</noinclude>

Revision as of 19:02, 19 May 2026