Template:Infobox software: Difference between revisions

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 -->