Jump to content

Template:Infobox quest: 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:{{{start|}}}|<tr>
{{#if:{{{start|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Start</th>
Start
<td class="infobox-data">{{{start|}}}</td>
</th>
<td class="infobox-data">
{{{start|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{end|}}}|<tr>
{{#if:{{{end|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">End</th>
End
<td class="infobox-data">{{{end|}}}</td>
</th>
<td class="infobox-data">
{{{end|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{prerequisites|}}}|<tr>
{{#if:{{{prerequisites|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Prerequisites</th>
Prerequisites
<td class="infobox-data">{{{prerequisites|}}}</td>
</th>
<td class="infobox-data">
{{{prerequisites|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{level|}}}|<tr>
{{#if:{{{level|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Level</th>
Level
<td class="infobox-data">{{{level|}}}</td>
</th>
<td class="infobox-data">
{{{level|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{location|}}}|<tr>
{{#if:{{{location|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Location</th>
Location
<td class="infobox-data">{{{location|}}}</td>
</th>
<td class="infobox-data">
{{{location|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{rewards|}}}|<tr>
{{#if:{{{rewards|}}}|<tr>
<th class="infobox-label" scope="row">
<th class="infobox-label" scope="row">Rewards</th>
Rewards
<td class="infobox-data">{{{rewards|}}}</td>
</th>
<td class="infobox-data">
{{{rewards|}}}
</td>
</tr>|}}
</tr>|}}
{{#if:{{{previous|}}}{{{next|}}}|<tr>
{{#if:{{{previous|}}}{{{next|}}}|<tr>
<th class="infobox-header" colspan="2">
<th class="infobox-header" colspan="2">Quest progression</th>
Quest progression
</th>
</tr>
</tr>
<tr>
<tr>
<td class="infobox-full-data" colspan="2">
<td class="infobox-full-data" colspan="2"><table class="infobox-subbox">
<table class="infobox-subbox">
<tr>
<tr>
{{#if:{{{previous|}}}|<th class="infobox-label" scope="col">
{{#if:{{{previous|}}}|<th class="infobox-label" scope="col">Previous</th>|}}
Previous
{{#if:{{{next|}}}|<th class="infobox-label" scope="col">Next</th>|}}
</th>|}}
{{#if:{{{next|}}}|<th class="infobox-label" scope="col">
Next
</th>|}}
</tr>
</tr>
<tr>
<tr>
{{#if:{{{previous|}}}|<td class="infobox-data">
{{#if:{{{previous|}}}|<td class="infobox-data">{{{previous|}}}</td>|}}
{{{previous|}}}
{{#if:{{{next|}}}|<td class="infobox-data">{{{next|}}}</td>|}}
</td>|}}
{{#if:{{{next|}}}|<td class="infobox-data">
{{{next|}}}
</td>|}}
</tr>
</tr>
</table>
</table></td>
</td>
</tr>|}}
</tr>|}}
</table>|}}<includeonly>[[Category:Quests]]</includeonly><noinclude>
</table>|}}<includeonly>[[Category:Quests]]</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.