imported>Dawning
(by SublimeText.Mediawiker)
the mass documenting
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{portal|}}}|[[File:{{{portal|}}}Text.png|{{{size|42px}}}|link={{{link|{{{1|}}}}}}|class=responsive-image]]}}{{#if:{{{portal|}}}|[[File:{{{portal|}}}.png|{{{size|42px}}}|link={{{link|{{{1|}}}}}}|class=responsive-image]]}}</includeonly>
<includeonly>{{#if:{{{portal|}}}|[[File:{{{portal|}}}Text.png|{{{size|42px}}}|link={{{link|{{{1|}}}}}}]]}}{{#if:{{{portal|}}}|[[File:{{{portal|}}}.png|{{{size|42px}}}|link={{{link|{{{1|}}}}}}]]}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 11:55, 20 June 2026

Documentation Edit this documentation at Template:Dungeon_Link/doc.
(edithistorypurge)

{{Dungeon Link}} shows a dungeon's portal thumbnail (its name-plate image stacked on its portal image) as a clickable link. It is used on the Dungeons index and on biome pages.

Overview

Given a portal base name, the template renders two stacked images — <portal>Text.png (the name plate) and <portal>.png (the portal art) — both linking to the dungeon's page. It is the building block of the dungeon grids.

Parameters

Parameter Required? What it does Example
portal Required Portal file base name without .png. The template appends Text.png and .png itself. Portal-SkullCavern
size Optional Image width. Defaults to 42px. Dungeon grids use 180px; biome grids use 256px. 180px
link / 1 (first positional) Optional Page the images link to. If link is omitted it falls back to the first positional argument. Skull Cavern

How to use

Pass the portal base name and the dungeon page name:


Here Skull Cavern is the first positional arg (used as the link target), and portal=Portal-SkullCavern builds Portal-SkullCavernText.png + Portal-SkullCavern.png. Make sure both image files exist.

Copy this

{{Dungeon Link||portal=|size=180px}}

Example

{{Dungeon Link|Tomb Of Shadows|portal=Portal-TombOfShadows|size=180px}}

Tips & notes

  • portal takes no .png — the template adds Text.png and .png for you.
  • Both the name plate and the portal image must exist as files (e.g. Portal-TombOfShadowsText.png and Portal-TombOfShadows.png).
  • Used inside {{Dungeon Navbox}} grids and biome pages.