Template:Infobox software: Difference between revisions

Al Piskun (talk | contribs)
No edit summary
Al Piskun (talk | contribs)
No edit summary
Line 13: Line 13:
         <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|}}}|
             {{#if:{{{logo caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{logo caption}}}</div>}}
            <div style="font-size:11px;color:#54595d;margin-top:6px;">
                {{{logo caption}}}
            </div>
            }}
         </td>
         </td>
     </tr>
     </tr>
Line 27: Line 23:
         <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]]
             {{#if:{{{caption|}}}|
             {{#if:{{{caption|}}}|<div style="font-size:11px;color:#54595d;margin-top:6px;">{{{caption}}}</div>}}
            <div style="font-size:11px;color:#54595d;margin-top:6px;">
                {{{caption}}}
            </div>
            }}
         </td>
         </td>
     </tr>
     </tr>
Line 116: Line 108:
     <!-- ========================= -->
     <!-- ========================= -->


    {{#if:{{{advanced stats|}}}{{{last checked|}}}{{{server status|}}}{{{uptime|}}}{{{api status|}}}|
{{#if:{{{advanced stats|}}}{{{last checked|}}}{{{server status|}}}{{{uptime|}}}{{{api status|}}}|


    <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;">
            Advanced stats
        Advanced stats
        </th>
    </th>
    </tr>
</tr>


    <tr>
<tr>
        <td colspan="2" style="padding:0;">
    <td colspan="2" style="padding:0;">


            <div class="mw-collapsible mw-collapsed" style="padding:8px;font-size:12px;">
<div class="mw-collapsible mw-collapsed" style="padding:8px;font-size:12px;">


                {{#if:{{{server status|}}}|
{{#if:{{{server status|}}}|<div><b>Server status:</b> {{{server status}}}</div>}}
                <div><b>Server status:</b> {{{server status}}}</div>
                }}


                {{#if:{{{uptime|}}}|
{{#if:{{{uptime|}}}|<div><b>Uptime:</b> {{{uptime}}}</div>}}
                <div><b>Uptime:</b> {{{uptime}}}</div>
                }}


                {{#if:{{{api status|}}}|
{{#if:{{{api status|}}}|<div><b>API status:</b> {{{api status}}}</div>}}
                <div><b>API status:</b> {{{api status}}}</div>
                }}


                {{#if:{{{last checked|}}}|
{{#if:{{{last checked|}}}|<div><b>Last checked:</b> {{{last checked}}}</div>}}
                <div><b>Last checked:</b> {{{last checked}}}</div>
                }}


                {{#if:{{{advanced stats|}}}|
{{#if:{{{advanced stats|}}}|<div style="margin-top:6px;">{{{advanced stats}}}</div>}}
                <div style="margin-top:6px;">
                    {{{advanced stats}}}
                </div>
                }}


            </div>
</div>


        </td>
    </td>
    </tr>
</tr>


    }}
}}


     <!-- Metadata -->
     <!-- Metadata -->
Line 290: Line 270:
     "average performance": {
     "average performance": {
       "label": "Average performance",
       "label": "Average performance",
      "description": "Average compute performance",
       "type": "string"
       "type": "string"
     },
     },
Line 337: Line 316:
     "project status": {
     "project status": {
       "label": "Project status",
       "label": "Project status",
      "description": "Active, offline, completed, paused, etc.",
       "type": "string"
       "type": "string"
     },
     },
Line 343: Line 321:
     "server status": {
     "server status": {
       "label": "Server status",
       "label": "Server status",
      "description": "Manual server status indicator",
       "type": "string"
       "type": "string"
     },
     },
Line 364: Line 341:
     "advanced stats": {
     "advanced stats": {
       "label": "Advanced stats",
       "label": "Advanced stats",
      "description": "Additional advanced monitoring information",
       "type": "content"
       "type": "content"
     },
     },