Jump to content

Template:Infobox quest: Difference between revisions

From wiki58
m 1 revision: Updates made for portability
 
m Remove generated paragraph spacing inside infobox cells; retain Wikipedia CSS
 
(One intermediate revision by the same user not shown)
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">{{#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>
<data source="end"><label>End</label></data>
</tr>|}}
<data source="prerequisites"><label>Prerequisites</label></data>
{{#if:{{{start|}}}|<tr>
<data source="level"><label>Level</label></data>
<th class="infobox-label" scope="row">Start</th>
<data source="location"><label>Location</label></data>
<td class="infobox-data">{{{start|}}}</td>
<data source="rewards"><label>Rewards</label></data>
</tr>|}}
<group layout="horizontal">
{{#if:{{{end|}}}|<tr>
<header>Quest progression</header>
<th class="infobox-label" scope="row">End</th>
<data source="previous"><label>Previous</label></data>
<td class="infobox-data">{{{end|}}}</td>
<data source="next"><label>Next</label></data>
</tr>|}}
</group>
{{#if:{{{prerequisites|}}}|<tr>
</infobox><includeonly>[[Category:Quests]]</includeonly><noinclude>{{Documentation}}</noinclude>
<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>

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.