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 2: Line 2:
<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: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);">


<!-- TITLE -->
<!-- NAME -->
<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:18px;font-weight:600;padding:12px;background:#2c3e50;color:#fff;">
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]]
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}}}|240px|center]]
Line 29: Line 29:
}}
}}


<!-- DEVELOPMENT -->
<!-- DEVELOPMENT HEADER -->
{{#if:{{{author|}}}{{{developer|}}}{{{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;padding:6px;background:#f8f9fa;">Development</th>
</tr>
}}
}}


Line 39: Line 37:
{{#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:#b32121;font-weight:500;">{{{discontinued}}}</td></tr>}}
{{#if:{{{repository|}}}|<tr><th>Repository</th><td>{{{repository}}}</td></tr>}}


<!-- ENVIRONMENT -->
{{#if:{{{released|}}}
{{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{language|}}}{{{language count|}}}{{{size|}}}|
|<tr><th>Initial release</th><td>{{{released}}}</td></tr>
<tr>
}}
<th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Environment</th>
 
</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>
}}
 
<!-- RELEASES HEADER -->
{{#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>
}}
 
{{#if:{{{stable release|}}}|<tr><th>Stable release</th><td>{{{stable release}}}</td></tr>}}
{{#if:{{{preview release|}}}|<tr><th>Preview release</th><td>{{{preview release}}}</td></tr>}}
{{#if:{{{latest release version|}}}|<tr><th>Latest version</th><td>{{{latest release version}}}</td></tr>}}
{{#if:{{{latest preview version|}}}|<tr><th>Latest preview</th><td>{{{latest preview version}}}</td></tr>}}
 
<!-- ENVIRONMENT HEADER -->
{{#if:{{{programming language|}}}{{{operating system|}}}{{{platform|}}}{{{language|}}}{{{language count|}}}{{{size|}}}
|<tr><th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Environment</th></tr>
}}
}}


Line 57: Line 72:
{{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}
{{#if:{{{size|}}}|<tr><th>Size</th><td>{{{size}}}</td></tr>}}


<!-- USAGE STATISTICS -->
<!-- USAGE STATISTICS HEADER -->
{{#if:{{{active users|}}}{{{total users|}}}{{{active hosts|}}}{{{total hosts|}}}{{{average performance|}}}|
{{#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;">Usage statistics</th></tr>
<th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">Usage statistics</th>
</tr>
}}
 
{{#if:{{{active users|}}}|
<tr>
<th>Active users</th>
<td>{{formatnum:{{{active users}}}}}
{{#if:{{{stats updated|}}}|<br><small>as of {{Start date and age|{{{stats updated}}}}}</small>}}
</td>
</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:{{{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>}}
{{#if:{{{active hosts|}}}|<tr><th>Active hosts</th><td>{{formatnum:{{{active hosts}}}}}</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:{{{total hosts|}}}|<tr><th>Total hosts</th><td>{{formatnum:{{{total hosts}}}}}</td></tr>}}
{{#if:{{{average performance|}}}|<tr><th>Average performance</th><td>{{{average performance}}}</td></tr>}}


<!-- BOINC ANALYTICS -->
<!-- BOINC ANALYTICS HEADER -->
{{#if:{{{rac|}}}{{{credit per day|}}}{{{gpu performance|}}}{{{cpu performance|}}}|
{{#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;">BOINC analytics</th></tr>
<th colspan="2" style="text-align:center;font-size:11px;font-weight:700;padding:6px;background:#f8f9fa;">BOINC analytics</th>
</tr>
}}
}}


Line 90: Line 93:
{{#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>}}


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


Line 107: Line 108:


<noinclude>
<noinclude>
BOINC-focused infobox (v2). Includes optional stats timestamp via |stats updated=YYYY|MM|DD.
BOINC project infobox (clean rebuild). No title parameter. Fully conditional sections.
</noinclude>
</noinclude>

Revision as of 00:34, 20 May 2026


BOINC project infobox (clean rebuild). No title parameter. Fully conditional sections.