Jump to content

Template:Infobox item: Difference between revisions

From wiki58
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
Line 2: Line 2:
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
{{#if:{{{image|}}}|<tr>
{{#if:{{{image|}}}|<tr>
<td class="infobox-image" colspan="2">
<td class="infobox-image" colspan="2">{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|<div class="infobox-caption">{{{imagecaption|}}}</div>|}}</td>
{{#ifeq:{{#sub:{{{image|}}}|0|1}}|[|{{{image|}}}|[[{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|5}}}}|file:||{{#ifeq:{{lc:{{#sub:{{{image|}}}|0|6}}}}|image:||File:}}}}{{{image|}}}|frameless|220px]]}}{{#if:{{{imagecaption|}}}|
<div class="infobox-caption">
{{{imagecaption|}}}
</div>|}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{type|}}}|<tr>
{{#if:{{{type|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Type</th>
Type
<td class="infobox-data">{{{type|}}}</td>
</th>
<td class="infobox-data">
{{{type|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{effects|}}}|<tr>
{{#if:{{{effects|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Effects</th>
Effects
<td class="infobox-data">{{{effects|}}}</td>
</th>
<td class="infobox-data">
{{{effects|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{source|}}}|<tr>
{{#if:{{{source|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Source</th>
Source
<td class="infobox-data">{{{source|}}}</td>
</th>
<td class="infobox-data">
{{{source|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{buy|}}}|<tr>
{{#if:{{{buy|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Cost to buy</th>
Cost to buy
<td class="infobox-data">{{{buy|}}}</td>
</th>
<td class="infobox-data">
{{{buy|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{sell|}}}|<tr>
{{#if:{{{sell|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Cost to sell</th>
Cost to sell
<td class="infobox-data">{{{sell|}}}</td>
</th>
<td class="infobox-data">
{{{sell|}}}
</td>
</tr>|}}
</tr>|}}
</table>|}}<includeonly>[[Category:Items]]</includeonly><noinclude>
</table>|}}<includeonly>[[Category:Items]]</includeonly><noinclude>

Latest revision as of 18:53, 11 November 2026

Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a File:-prefixed name, or complete [[File:…]] markup. Fields, defaults, and categories retain the imported template API.