Jump to content

Template:Infobox quest: Difference between revisions

From wiki58
m 1 revision: Updates made for portability
 
Replace Fandom component markup with native Wikipedia classes; retain source parameters, content, and archived history
Line 1: Line 1:
<infobox>
{{#if:{{{title|}}}{{{image|}}}{{{start|}}}{{{end|}}}{{{prerequisites|}}}{{{level|}}}{{{location|}}}{{{rewards|}}}{{{previous|}}}{{{next|}}}|<table class="infobox">
<title source="title"/>
{{#if:{{{title|}}}|<caption class="infobox-title">{{{title|}}}</caption>|}}
<image source="image"><caption source="imagecaption"/></image>
{{#if:{{{image|}}}|<tr>
<data source="start"><label>Start</label></data>
<td class="infobox-image" colspan="2">
<data source="end"><label>End</label></data>
{{#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|}}}|
<data source="prerequisites"><label>Prerequisites</label></data>
<div class="infobox-caption">
<data source="level"><label>Level</label></data>
{{{imagecaption|}}}
<data source="location"><label>Location</label></data>
</div>|}}
<data source="rewards"><label>Rewards</label></data>
</td>
<group layout="horizontal">
</tr>|}}
<header>Quest progression</header>
{{#if:{{{start|}}}|<tr>
<data source="previous"><label>Previous</label></data>
<th class="infobox-label" scope="row">
<data source="next"><label>Next</label></data>
Start
</group>
</th>
</infobox><includeonly>[[Category:Quests]]</includeonly><noinclude>{{Documentation}}</noinclude>
<td class="infobox-data">
{{{start|}}}
</td>
</tr>|}}
{{#if:{{{end|}}}|<tr>
<th class="infobox-label" scope="row">
End
</th>
<td class="infobox-data">
{{{end|}}}
</td>
</tr>|}}
{{#if:{{{prerequisites|}}}|<tr>
<th class="infobox-label" scope="row">
Prerequisites
</th>
<td class="infobox-data">
{{{prerequisites|}}}
</td>
</tr>|}}
{{#if:{{{level|}}}|<tr>
<th class="infobox-label" scope="row">
Level
</th>
<td class="infobox-data">
{{{level|}}}
</td>
</tr>|}}
{{#if:{{{location|}}}|<tr>
<th class="infobox-label" scope="row">
Location
</th>
<td class="infobox-data">
{{{location|}}}
</td>
</tr>|}}
{{#if:{{{rewards|}}}|<tr>
<th class="infobox-label" scope="row">
Rewards
</th>
<td class="infobox-data">
{{{rewards|}}}
</td>
</tr>|}}
{{#if:{{{previous|}}}{{{next|}}}|<tr>
<th class="infobox-header" colspan="2">
Quest progression
</th>
</tr>
<tr>
<td class="infobox-full-data" colspan="2">
<table class="infobox-subbox">
<tr>
{{#if:{{{previous|}}}|<th class="infobox-label" scope="col">
Previous
</th>|}}
{{#if:{{{next|}}}|<th class="infobox-label" scope="col">
Next
</th>|}}
</tr>
<tr>
{{#if:{{{previous|}}}|<td class="infobox-data">
{{{previous|}}}
</td>|}}
{{#if:{{{next|}}}|<td class="infobox-data">
{{{next|}}}
</td>|}}
</tr>
</table>
</td>
</tr>|}}
</table>|}}<includeonly>[[Category:Quests]]</includeonly><noinclude>
Native MediaWiki infobox using locally mirrored Wikipedia styles. Image fields accept a bare filename, a <code>File:</code>-prefixed name, or complete <code><nowiki>[[File:…]]</nowiki></code> markup. Fields, defaults, and categories retain the imported template API.
 
{{Documentation}}</noinclude>

Revision as of 17:59, 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.