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>
<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:#fff; 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);">
<table class="infobox" style="width:300px; float:right; clear:right; margin:0 0 1em 1em; border:1px solid #c8ccd1; border-radius:6px; border-collapse:separate; border-spacing:0; background:#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.08); overflow:hidden;">


<!-- NAME -->
<!-- HEADER -->
<tr>
<tr>
<th colspan="2" style="text-align:center;font-size:18px;font-weight:600;padding:12px;background:#2c3e50;color:#fff;">
<th colspan="2" style="text-align:center; font-size:20px; font-weight:700; padding:12px; background:#2c3e50; color:#ffffff;">
{{{name|{{PAGENAME}}}}}
{{{name|{{PAGENAME}}}}}
</th>
</th>
Line 10: Line 10:


<!-- LOGO -->
<!-- LOGO -->
{{#if:{{{logo|}}}
{{#if:{{{logo|}}}|
|<tr>
<tr>
<td colspan="2" style="text-align:center;padding:12px;">
<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 20: Line 20:


<!-- SCREENSHOT -->
<!-- SCREENSHOT -->
{{#if:{{{screenshot|}}}
{{#if:{{{screenshot|}}}|
|<tr>
<tr>
<td colspan="2" style="text-align:center;padding:12px;background:#f8f9fa;">
<td colspan="2" style="text-align:center; padding:12px; background:#f8f9fa;">
[[File:{{{screenshot}}}|240px|center]]
[[File:{{{screenshot}}}|250px|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>
}}
}}


<!-- DEVELOPMENT HEADER -->
<!-- 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:#eaecf0; text-transform:uppercase;">
Development
</th>
</tr>
}}
}}


{{#if:{{{author|}}}|<tr><th>Author</th><td>{{{author}}}</td></tr>}}
{{#if:{{{author|}}}|<tr><th style="width:110px;">Author</th><td>{{{author}}}</td></tr>}}
{{#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>}}
{{#if:{{{discontinued|}}}|<tr><th>Discontinued</th><td style="color:#b32424; font-weight:600;">{{{discontinued}}}</td></tr>}}
{{#if:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}


{{#if:{{{released|}}}
<!-- SOFTWARE -->
|<tr><th>Initial release</th><td>{{{released}}}</td></tr>
{{#if:{{{programming language|{{{operating system|{{{platform|{{{size|{{{language|}}}}}}}}}}}}}}}|
<tr>
<th colspan="2" style="text-align:center; font-size:11px; font-weight:700; padding:6px; background:#eaecf0; text-transform:uppercase;">
Software
</th>
</tr>
}}
}}


{{#if:{{{discontinued|}}}
{{#if:{{{programming language|}}}|<tr><th>Written in</th><td>{{{programming language}}}</td></tr>}}
|<tr><th>Discontinued</th><td style="color:#b32121;font-weight:500;">{{{discontinued}}}</td></tr>
{{#if:{{{operating system|}}}|<tr><th>OS</th><td>{{{operating system}}}</td></tr>}}
}}
{{#if:{{{platform|}}}|<tr><th>Platform</th><td>{{{platform}}}</td></tr>}}
{{#if:{{{language|}}}|<tr><th>Language</th><td>{{{language}}}</td></tr>}}
{{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}


{{#if:{{{repository|}}}
<!-- PROJECT STATUS -->
|<tr><th>Repository</th><td>{{{repository}}}</td></tr>
{{#if:{{{project status|{{{status|{{{type|}}}}}}}}}|
<tr>
<th colspan="2" style="text-align:center; font-size:11px; font-weight:700; padding:6px; background:#eaecf0; text-transform:uppercase;">
Project
</th>
</tr>
}}
}}


<!-- RELEASES HEADER -->
{{#if:{{{project status|}}}|<tr><th>Status</th><td>{{{project status}}}</td></tr>}}
{{#if:{{{stable release|}}}{{{preview release|}}}{{{latest release version|}}}{{{latest preview version|}}}
{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}
|<tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Releases</th></tr>
{{#if:{{{genre|}}}|<tr><th>Genre</th><td>{{{genre}}}</td></tr>}}
}}


{{#if:{{{stable release|}}}|<tr><th>Stable release</th><td>{{{stable release}}}</td></tr>}}
<!-- BOINC STATS -->
{{#if:{{{preview release|}}}|<tr><th>Preview release</th><td>{{{preview release}}}</td></tr>}}
{{#if:{{{average performance|{{{active users|{{{total users|{{{active hosts|{{{total hosts|{{{stats updated|}}}}}}}}}}}}}}}}}}}|
{{#if:{{{latest release version|}}}|<tr><th>Latest version</th><td>{{{latest release version}}}</td></tr>}}
<tr>
{{#if:{{{latest preview version|}}}|<tr><th>Latest preview</th><td>{{{latest preview version}}}</td></tr>}}
<th colspan="2" style="text-align:center; font-size:11px; font-weight:700; padding:6px; background:#eaecf0; text-transform:uppercase;">
 
BOINC Statistics
<!-- ENVIRONMENT HEADER -->
</th>
{{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{language|}}}{{{language count|}}}{{{size|}}}
</tr>
|<tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Environment</th></tr>
}}
}}


{{#if:{{{programming language|}}}|<tr><th>Written in</th><td>{{{programming language}}}</td></tr>}}
{{#if:{{{average performance|}}}|<tr><th>Performance</th><td>{{{average performance}}}</td></tr>}}
{{#if:{{{operating system|}}}|<tr><th>Operating system</th><td>{{{operating system}}}</td></tr>}}
{{#if:{{{platform|}}}|<tr><th>Platform</th><td>{{{platform}}}</td></tr>}}
{{#if:{{{language|}}}|<tr><th>Available in</th><td>{{{language}}}</td></tr>}}
{{#if:{{{language count|}}}|<tr><th>Language count</th><td>{{{language count}}}</td></tr>}}
{{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}
 
<!-- USAGE STATISTICS HEADER -->
{{#if:{{{average performance|}}}{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}
|<tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Usage statistics</th></tr>
}}
 
{{#if:{{{average performance|}}}|<tr><th>Average performance</th><td>{{{average performance}}}</td></tr>}}
{{#if:{{{active users|}}}|<tr><th>Active users</th><td>{{formatnum:{{{active users}}}}}</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:{{{total users|}}}|<tr><th>Total users</th><td>{{formatnum:{{{total users}}}}}</td></tr>}}
Line 83: Line 88:
{{#if:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}
{{#if:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}


<!-- BOINC ANALYTICS HEADER -->
{{#if:{{{stats updated|}}}|<tr><th>Stats updated</th><td>{{{stats updated}}}</td></tr>}}
{{#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>
<!-- ANALYTICS -->
{{#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:#eaecf0; text-transform:uppercase;">
Analytics
</th>
</tr>
}}
}}


{{#if:{{{rac|}}}|<tr><th>RAC</th><td>{{formatnum:{{{rac}}}}}</td></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:{{{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:{{{gpu performance|}}}|<tr><th>GPU</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</th><td>{{{cpu performance}}}</td></tr>}}


<!-- METADATA HEADER -->
<!-- LICENSE -->
{{#if:{{{genre|}}}{{{license|}}}{{{website|}}}{{{type|}}}{{{status|}}}
{{#if:{{{license|{{{website|}}}}}}}|
|<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:#eaecf0; text-transform:uppercase;">
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:{{{license|}}}|<tr><th>License</th><td>{{{license}}}</td></tr>}}
{{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}
{{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}
Line 108: Line 120:


<noinclude>
<noinclude>
BOINC project infobox (clean rebuild). No title parameter. Fully conditional sections.
== Template:Infobox software ==
 
Modern BOINC-oriented infobox for distributed computing and software project articles.
 
=== Example ===
 
<pre>
{{Infobox software
| name                = Einstein@Home
| logo                = Ein.jpg
| screenshot          = Einstein@Home.gif
| caption              = Einstein@Home screensaver
| developer            = Max Planck Society
| released            = {{Start date and age|2005|02|19}}
| operating system    = Windows, Linux, macOS, Android
| platform            = BOINC
| genre                = Volunteer computing
| license              = GPL-2.0-or-later
| website              = {{URL|https://einsteinathome.org/}}
 
| average performance  = 21 PFLOPS
| active users        = 14531
| total users          = 1061585
| active hosts        = 24489
| total hosts          = 8237726
| stats updated        = {{Start date and age|2026|05|19}}
}}
</pre>
 
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 00:50, 20 May 2026


Template:Infobox software

Modern BOINC-oriented infobox for distributed computing and software project articles.

Example

{{Infobox software
| name                 = Einstein@Home
| logo                 = Ein.jpg
| screenshot           = [email protected]
| caption              = Einstein@Home screensaver
| developer            = Max Planck Society
| released             = {{Start date and age|2005|02|19}}
| operating system     = Windows, Linux, macOS, Android
| platform             = BOINC
| genre                = Volunteer computing
| license              = GPL-2.0-or-later
| website              = {{URL|https://einsteinathome.org/}}

| average performance  = 21 PFLOPS
| active users         = 14531
| total users          = 1061585
| active hosts         = 24489
| total hosts          = 8237726
| stats updated        = {{Start date and age|2026|05|19}}
}}