Template:Infobox software: Difference between revisions

Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
No edit summary
 
(62 intermediate revisions by 2 users not shown)
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 bs-infobox" style="width:300px; float:right; clear:right; margin:0 0 1em 1em; border-radius:6px; font-size:13px; line-height:1.5; border-collapse:separate; border-spacing:0; overflow:hidden;">
<tr><th colspan="2" class="bs-infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>
{{#if:{{{logo|}}}|<tr><td colspan="2" class="bs-infobox-logo">[[File:{{{logo}}}|180px|center]]{{#if:{{{logo caption|}}}|<div class="bs-infobox-caption">{{{logo caption}}}</div>}}</td></tr>}}
{{#if:{{{screenshot|}}}|<tr><td colspan="2" class="bs-infobox-screenshot">[[File:{{{screenshot}}}|250px|center]]{{#if:{{{caption|}}}|<div class="bs-infobox-caption">{{{caption}}}</div>}}</td></tr>}}
{{#if:{{{status|}}}{{{category|}}}{{{compute|}}}{{{dependencies|}}}|<tr><th colspan="2" class="bs-infobox-section">Project</th></tr>}}
{{#if:{{{status|}}}|{{#ifeq:{{{status}}}|Active|<tr class="bs-infobox-active"><th class="bs-infobox-active">Status</th><td class="bs-infobox-active" style="font-weight:600;">{{{status}}}</td></tr>|<tr class="bs-infobox-inactive"><th class="bs-infobox-inactive">Status</th><td class="bs-infobox-inactive" style="font-weight:600;">{{{status}}}</td></tr>}}}}
{{#if:{{{category|}}}|<tr><th>Category</th><td>{{{category}}}</td></tr>}}
{{#if:{{{compute|}}}|<tr><th>Compute</th><td>{{{compute}}}</td></tr>}}
{{#if:{{{dependencies|}}}|<tr><th>Requires</th><td>{{{dependencies}}}</td></tr>}}
{{#if:{{{developer|}}}{{{author|}}}{{{sponsor|}}}{{{maintainer|}}}{{{released|}}}{{{completed|}}}{{{discontinued|}}}{{{repository|}}}|<tr><th colspan="2" class="bs-infobox-section">Development</th></tr>}}
{{#if:{{{developer|}}}|<tr><th style="width:110px;">Developer</th><td>{{{developer}}}</td></tr>}}
{{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}}
{{#if:{{{sponsor|}}}|<tr><th>Sponsor</th><td>{{{sponsor}}}</td></tr>}}
{{#if:{{{maintainer|}}}|<tr><th>Maintainer</th><td>{{{maintainer}}}</td></tr>}}
{{#if:{{{released|}}}|<tr><th>Initial release</th><td>{{{released}}}</td></tr>}}
{{#if:{{{completed|}}}|<tr><th>Completed</th><td class="bs-infobox-ended">{{{completed}}}</td></tr>}}
{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td class="bs-infobox-ended">{{{discontinued}}}</td></tr>}}
{{#if:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}
{{#if:{{{programming language|}}}{{{operating system|}}}{{{size|}}}|<tr><th colspan="2" class="bs-infobox-section">Software</th></tr>}}
{{#if:{{{programming language|}}}|<tr><th style="width:110px;">Written in</th><td>{{{programming language}}}</td></tr>}}
{{#if:{{{operating system|}}}|<tr><th>Operating system</th><td>{{{operating system}}}</td></tr>}}
{{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}
{{#if:{{{stats as of|}}}{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}|<tr><th colspan="2" class="bs-infobox-section">BOINC statistics</th></tr>}}
{{#if:{{{stats as of|}}}|<tr><th style="width:110px;" class="bs-infobox-statsdate">Stats as of</th><td class="bs-infobox-statsdate" style="font-weight:600;">{{{stats as of}}}</td></tr>}}
{{#if:{{{average performance|}}}|<tr><th>Performance</th><td>{{{average performance}}}</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>}}
{{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|<tr><th colspan="2" class="bs-infobox-section">Analytics</th></tr>}}
{{#if:{{{rac|}}}|<tr><th style="width:110px;">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:{{{website|}}}{{{license|}}}|<tr><th colspan="2" class="bs-infobox-section">Metadata</th></tr>}}
{{#if:{{{website|}}}|<tr><th style="width:110px;">Website</th><td>{{{website}}}</td></tr>}}
{{#if:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
</table>{{#seo:|title={{{name|{{PAGENAME}}}}}|image={{{logo|{{{screenshot|}}}}}}|description={{#if:{{{description|}}}|{{{description}}}|{{PAGENAME}}{{#if:{{{category|}}}| is a {{{category}}} project}}{{#if:{{{compute|}}}| using {{{compute}}} computing}}{{#if:{{{status|}}}| (Status: {{{status}}})}}{{#if:{{{developer|}}}|, developed by {{{developer}}}}}{{#if:{{{sponsor|}}}|, sponsored by {{{sponsor}}}}}{{#if:{{{website|}}}|.}}}}}}</includeonly><noinclude>
== Template:Infobox software ==


    <!-- Header -->
Modern BOINC-oriented infobox template for volunteer computing project articles.
    <tr>
Includes automatic WikiSEO meta tags (title, image, description) for every page using this template.
        <th colspan="2" style="text-align:center;font-size:18px;font-weight:600;padding:12px;background:#2c3e50;color:#fff;">
An optional <code>description</code> parameter lets you override the auto-generated meta description.
            {{{name|{{PAGENAME}}}}}
        </th>
    </tr>


    <!-- Logo -->
=== Parameters ===
    {{#if:{{{logo|}}}|
    <tr>
        <td colspan="2" style="text-align:center;padding:12px;">
            [[File:{{{logo}}}|180px|center]]
            {{#if:{{{logo caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{logo caption}}}</div>}}
        </td>
    </tr>
    }}


    <!-- Screenshot -->
{| class="wikitable"
    {{#if:{{{screenshot|}}}|
! Parameter !! Description !! Required
    <tr>
|-
        <td colspan="2" style="text-align:center;padding:12px;background:#f8f9fa;">
| <code>name</code> || Software name (defaults to page name) || No
            [[File:{{{screenshot}}}|240px|center]]
|-
            {{#if:{{{caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{caption}}}</div>}}
| <code>logo</code> || Logo filename || No
        </td>
|-
    </tr>
| <code>logo caption</code> || Caption below logo || No
    }}
|-
| <code>screenshot</code> || Screenshot filename || No
|-
| <code>caption</code> || Caption below screenshot || No
|-
| <code>description</code> || Custom SEO meta description (overrides auto-generated one) || No
|-
| colspan="3" class="bs-infobox-section" | '''Project'''
|-
| <code>status</code> || Active, Completed, etc. Green background when "Active", red otherwise || No
|-
| <code>category</code> || Research category (e.g. Astrophysics, Mathematics) || No
|-
| <code>compute</code> || Processing type: CPU, GPU, or CPU & GPU || No
|-
| <code>dependencies</code> || Additional software required (e.g. VirtualBox, CUDA, Git) || No
|-
| colspan="3" class="bs-infobox-section" | '''Development'''
|-
| <code>developer</code> || Developer name || No
|-
| <code>author</code> || Original author || No
|-
| <code>sponsor</code> || Sponsoring organization || No
|-
| <code>maintainer</code> || Current maintainer || No
|-
| <code>released</code> || Initial release date || No
|-
| <code>completed</code> || Completion date or status (shown in red) || No
|-
| <code>discontinued</code> || Discontinuation date (shown in red) || No
|-
| <code>repository</code> || Source code repository link || No
|-
| colspan="3" class="bs-infobox-section" | '''Software'''
|-
| <code>programming language</code> || Language(s) the software is written in || No
|-
| <code>operating system</code> || Supported operating systems || No
|-
| <code>size</code> || Download/install size || No
|-
| colspan="3" class="bs-infobox-section" | '''BOINC statistics'''
|-
| <code>stats as of</code> || Date the statistics below were recorded || No
|-
| <code>average performance</code> || Average FLOPS or equivalent || No
|-
| <code>active users</code> || Current active user count || No
|-
| <code>total users</code> || All-time total users || No
|-
| <code>active hosts</code> || Current active host count || No
|-
| <code>total hosts</code> || All-time total hosts || No
|-
| colspan="3" class="bs-infobox-section" | '''Analytics'''
|-
| <code>rac</code> || Recent Average Credit || No
|-
| <code>credit per day</code> || Credits granted per day || No
|-
| <code>gpu performance</code> || GPU-specific performance metric || No
|-
| <code>cpu performance</code> || CPU-specific performance metric || No
|-
| colspan="3" class="bs-infobox-section" | '''Metadata'''
|-
| <code>website</code> || Official website URL || No
|-
| <code>license</code> || Software license || No
|}


    <!-- Development -->
=== Full example ===
    {{#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>
    }}


    {{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}}
<pre>
    {{#if:{{{developer|}}}|<tr><th>Developer</th><td>{{{developer}}}</td></tr>}}
{{Infobox software
    {{#if:{{{maintainer|}}}|<tr><th>Maintainer</th><td>{{{maintainer}}}</td></tr>}}
| name                = Einstein@Home
| logo                = Ein.jpg
| logo caption        = Einstein@Home logo
| screenshot          = [email protected]
| caption              = Einstein@Home screensaver
| description          = Einstein@Home is an active Astrophysics BOINC project searching for gravitational waves and pulsars, developed by Bruce Allen and sponsored by the Max Planck Society.


    <!-- Initial release WITH AGE -->
| status              = Active
    {{#if:{{{released|}}}|
| category             = Astrophysics
    <tr>
| compute              = CPU & GPU
        <th>Initial release</th>
| dependencies         = None
        <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>}}
| developer            = Bruce Allen
    {{#if:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}
| author              = Bruce Allen
| sponsor              = Max Planck Society
| maintainer          = Einstein@Home team
| released            = {{Start date and age|2005|02|19}}
| completed            = No
| discontinued         =
| repository          = {{URL|https://git.ligo.org/einsteinathome}}


    <!-- Releases -->
| programming language = C, C++
    {{#if:{{{stable release|}}}{{{preview release|}}}{{{latest release version|}}}{{{latest preview version|}}}|
| operating system     = Windows, Linux, macOS, Android
     <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Releases</th></tr>
| size                = ~50 MB
    }}


    {{#if:{{{stable release|}}}|<tr><th>Stable release</th><td>{{{stable release}}}</td></tr>}}
| stats as of          = {{Start date and age|2026|05|19}}
    {{#if:{{{preview release|}}}|<tr><th>Preview release</th><td>{{{preview release}}}</td></tr>}}
| average performance  = 21 PFLOPS
    {{#if:{{{latest release version|}}}|<tr><th>Latest version</th><td>{{{latest release version}}}</td></tr>}}
| active users        = 14531
    {{#if:{{{latest preview version|}}}|<tr><th>Latest preview</th><td>{{{latest preview version}}}</td></tr>}}
| total users          = 1061585
| active hosts        = 24489
| total hosts          = 8237726


    <!-- Environment -->
| rac                  = 18500000
    {{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{size|}}}{{{language|}}}{{{language count|}}}|
| credit per day      = 950000
    <tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Environment</th></tr>
| gpu performance      = 15 PFLOPS
    }}
| cpu performance      = 6 PFLOPS


    {{#if:{{{programming language|}}}|<tr><th>Written in</th><td>{{{programming language}}}</td></tr>}}
| website              = {{URL|https://einsteinathome.org/}}
    {{#if:{{{operating system|}}}|<tr><th>Operating system</th><td>{{{operating system}}}</td></tr>}}
| license              = GPL-2.0-or-later
    {{#if:{{{platform|}}}|<tr><th>Platform</th><td>{{{platform}}}</td></tr>}}
}}
    {{#if:{{{language|}}}|<tr><th>Available in</th><td>{{{language}}}</td></tr>}}
</pre>
    {{#if:{{{language count|}}}|<tr><th>Language count</th><td>{{{language count}}}</td></tr>}}
    {{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}


    <!-- ========================= -->
=== Minimal example ===
    <!-- USAGE STATISTICS -->
    <!-- ========================= -->
    {{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}{{{rac|}}}{{{credit per day|}}}|
    <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            Usage statistics
        </th>
    </tr>
    }}


    <!-- Average performance WITH timestamp -->
<pre>
    {{#if:{{{average performance|}}}|
{{Infobox software
    <tr>
| name                = My Project
        <th>Average performance</th>
| status              = Active
        <td>
| category             = Mathematics
            {{{average performance}}}
| compute              = CPU
            {{#if:{{{average performance date|}}}|
                <br><small>{{{{Start date and age|{{{average performance date}}}}}}}</small>
             }}
        </td>
    </tr>
    }}


    {{#if:{{{active users|}}}|
| developer            = Jane Smith
    <tr>
| released             = {{Start date and age|2020|01|01}}
        <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|}}}|
| operating system     = Windows, Linux, macOS
    <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|}}}|
| website              = {{URL|https://example.org/}}
    <tr>
| license              = MIT
        <th>Active hosts</th>
}}
        <td>
</pre>
            {{formatnum:{{{active hosts}}}}}
            {{#if:{{{active hosts date|}}}|
                <br><small>{{{{Start date and age|{{{active hosts date}}}}}}}</small>
            }}
        </td>
    </tr>
    }}


    {{#if:{{{total hosts|}}}|
[[Category:Infobox templates]]
    <tr>
</noinclude>
        <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 -->
    {{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
    <tr>
        <th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">
            BOINC analytics
        </th>
    </tr>
    }}
 
    {{#if:{{{rac|}}}|
    <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>
    }}
 
    <!-- Metadata -->
    {{#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>
    }}
 
    {{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
    {{#if:{{{genre|}}}|<tr><th>Genre</th><td>{{{genre}}}</td></tr>}}
    {{#if:{{{status|}}}|<tr><th>Status</th><td>{{{status}}}</td></tr>}}
    {{#if:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
    {{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}
 
</table></includeonly>