Template:Infobox Feature: Difference between revisions

From PotterCraft MC Wiki
Jump to navigation Jump to search
Updated page content
 
Updated page content
 
Line 1: Line 1:
<table class="infobox" style="float: right; clear: right; width: 290px; margin: 0 0 15px 15px; background: #282727; border: 1px solid #383838; border-radius: 8px; font-size: 0.9em; box-shadow: 0 4px 10px rgba(0,0,0,0.4); border-collapse: separate; border-spacing: 0; overflow: hidden;">
<includeonly><table class="infobox">
     <tr>
     <tr>
         <th colspan="2" style="background: #383838; color: #fde047; font-family: 'Cinzel', Georgia, serif; font-size: 1.15em; text-align: center; padding: 10px; border-bottom: 2px solid #f59e0b;">
         <th colspan="2" class="infobox-title">{{{name|{{PAGENAME}}}}}</th>
            {{{name|{{PAGENAME}}}}}
        </th>
     </tr>
     </tr>
     {{#if:{{{image|}}}|
     {{#if:{{{image|}}}|
     <tr>
     <tr>
         <td colspan="2" style="text-align: center; padding: 10px; background: #171717; border-bottom: 1px solid #383838;">
         <td colspan="2" class="infobox-image">
             [[File:{{{image}}}|260px|center]]
             [[File:{{{image}}}|frameless|260px]]{{#if:{{{caption|}}}|<br /><small style="color: #a3a3a3;">{{{caption}}}</small>}}
            {{#if:{{{caption|}}}|<div style="font-size: 0.85em; color: #a3a3a3; margin-top: 5px;">{{{caption}}}</div>}}
         </td>
         </td>
     </tr>}}
     </tr>}}
     {{#if:{{{developer|}}}|
     {{#if:{{{developer|}}}|
     <tr>
     <tr>
         <td style="font-weight: bold; color: #f59e0b; padding: 8px 10px; border-bottom: 1px solid #383838; width: 40%;">Developer:</td>
         <th scope="row" class="infobox-label">Developer</th>
         <td style="color: #e5e5e5; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{developer}}}</td>
         <td class="infobox-data">{{{developer}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{release_date|}}}|
     {{#if:{{{release_date|}}}|
     <tr>
     <tr>
         <td style="font-weight: bold; color: #f59e0b; padding: 8px 10px; border-bottom: 1px solid #383838;">Released:</td>
         <th scope="row" class="infobox-label">Released</th>
         <td style="color: #e5e5e5; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{release_date}}}</td>
         <td class="infobox-data">{{{release_date}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{type|}}}|
     {{#if:{{{type|}}}|
     <tr>
     <tr>
         <td style="font-weight: bold; color: #f59e0b; padding: 8px 10px; border-bottom: 1px solid #383838;">Category:</td>
         <th scope="row" class="infobox-label">Category</th>
         <td style="color: #e5e5e5; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{type}}}</td>
         <td class="infobox-data">{{{type}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{status|}}}|
     {{#if:{{{status|}}}|
     <tr>
     <tr>
         <td style="font-weight: bold; color: #f59e0b; padding: 8px 10px; border-bottom: 1px solid #383838;">Status:</td>
         <th scope="row" class="infobox-label">Status</th>
         <td style="color: #e5e5e5; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{status}}}</td>
         <td class="infobox-data">{{{status}}}</td>
     </tr>}}
     </tr>}}
     {{#if:{{{custom_label|}}}|
     {{#if:{{{custom_label|}}}|
     <tr>
     <tr>
         <td style="font-weight: bold; color: #f59e0b; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{custom_label}}}:</td>
         <th scope="row" class="infobox-label">{{{custom_label}}}</th>
         <td style="color: #e5e5e5; padding: 8px 10px; border-bottom: 1px solid #383838;">{{{custom_value|}}}</td>
         <td class="infobox-data">{{{custom_value|}}}</td>
     </tr>}}
     </tr>}}
</table>
</table></includeonly><noinclude>
 
<noinclude>
<templatedata>
<templatedata>
{
{

Latest revision as of 20:24, 14 September 2026

Right-aligned infobox for server features and plugins with image support.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Feature Namename

no description

Default
{{PAGENAME}}
Lineoptional
Image Filenameimage

Uploaded image filename (e.g. CardIcon.png)

Fileoptional
Image Captioncaption

no description

Lineoptional
Developerdeveloper

no description

Lineoptional
Release Daterelease_date

no description

Lineoptional
Categorytype

no description

Lineoptional
Status (Active / Legacy)status

no description

Lineoptional
Custom Field Namecustom_label

no description

Lineoptional
Custom Field Valuecustom_value

no description

Lineoptional