Template:Infobox software: Difference between revisions

Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
No edit summary
Line 30: Line 30:
     <!-- Development -->
     <!-- Development -->
     {{#if:{{{developer|}}}{{{author|}}}{{{maintainer|}}}{{{released|}}}{{{discontinued|}}}{{{repository|}}}|
     {{#if:{{{developer|}}}{{{author|}}}{{{maintainer|}}}{{{released|}}}{{{discontinued|}}}{{{repository|}}}|
     <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Development</th></tr>
     <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            Development
        </th>
    </tr>
     }}
     }}


Line 36: Line 40:
     {{#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 53: Line 46:
     <!-- 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><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Releases</th></tr>
     <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            Releases
        </th>
    </tr>
     }}
     }}


Line 63: Line 60:
     <!-- Environment -->
     <!-- Environment -->
     {{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{size|}}}{{{language|}}}{{{language count|}}}|
     {{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{size|}}}{{{language|}}}{{{language count|}}}|
     <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Environment</th></tr>
     <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            Environment
        </th>
    </tr>
     }}
     }}


Line 76: Line 77:
     <!-- USAGE STATISTICS -->
     <!-- USAGE STATISTICS -->
     <!-- ========================= -->
     <!-- ========================= -->
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}{{{rac|}}}{{{credit per day|}}}|
     {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|
     <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 84: Line 85:
     }}
     }}


    <!-- Average performance WITH timestamp -->
     {{#if:{{{average performance|}}}|
     {{#if:{{{average performance|}}}|
     <tr>
     <tr><th>Average performance</th><td>{{{average performance}}}</td></tr>
        <th>Average performance</th>
        <td>
            {{{average performance}}}
            {{#if:{{{average performance date|}}}|
                <br><small>{{{{Start date and age|{{{average performance date}}}}}}}</small>
            }}
        </td>
    </tr>
     }}
     }}


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


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


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


     {{#if:{{{total hosts|}}}|
     {{#if:{{{total hosts|}}}|
     <tr>
     <tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></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>
     }}
     }}


     <!-- BOINC ANALYTICS EXTENSION -->
     <!-- BOINC ANALYTICS -->
     {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
     {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
     <tr>
     <tr>
Line 154: Line 114:
     }}
     }}


     {{#if:{{{rac|}}}|
     {{#if:{{{rac|}}}|<tr><th>RAC</th><td>{{formatnum:{{{rac}}}}}</td></tr>}}
    <tr><th>RAC</th><td>{{formatnum:{{{rac}}}}}</td></tr>
     {{#if:{{{credit per day|}}}|<tr><th>Credit/day</th><td>{{formatnum:{{{credit per day}}}}}</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:{{{credit per day|}}}|
    <tr><th>Credit/day</th><td>{{formatnum:{{{credit per day}}}}}</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>
    }}


     <!-- Metadata -->
     <!-- Metadata -->
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     {{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}|
     <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Software Metadata</th></tr>
     <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            Software Metadata
        </th>
    </tr>
     }}
     }}