Template:TableQuestLine: Difference between revisions

From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus
mNo edit summary
imported>Aramachus
made code a little more flexible and added map parameter to specify the map of the tooltip
Line 1: Line 1:
<includeonly><onlyinclude>|- BGCOLOR="{{{color|#F2E6CE}}}" class="{{{cssclasses}}}"
<includeonly><onlyinclude>|- BGCOLOR="{{{color|#F2E6CE}}}" class="{{{cssclasses}}}"
|style="padding-left:1ex;"|[[{{{Name|}}}]]
|style="padding-left:1ex;"|{{Link|{{{Name|}}}}}
|align="center"|{{{Type|}}}
|align="center"|{{{Type|}}}
|align="center"|{{{Starter|}}}
|align="center"|{{#ifeq:{{{Starter|}}}|---|---|{{Link|{{{Starter|}}}}}}}
| {{#if:{{{Zone|}}}|{{#ifeq:{{{Zone}}}|---|align="center"{{!}}---|{{Location|{{#sub:{{{Zone}}}|2|-2}}|{{{Coordinates}}}}}}}|align="center"{{!}}---}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]
| {{#if:{{{Zone|}}}|{{#ifeq:{{{Zone}}}|---|align="center"{{!}}---|<!-- cant use the {{Link|...}} template here since it needs to display a tooltip rather than only a link
-->{{#ifeq:{{#sub:{{{Zone}}}|0|1}}<!--
-->|[<!--
-->|{{Location|{{#sub:{{{Zone}}}|2|-2}}|{{{Coordinates}}}|map={{{map|}}}}}<!--
-->|{{Location|{{{Zone}}}|{{{Coordinates}}}|map={{{map|}}}}}<!--
-->}}<!--
-->}}|align="center"{{!}}---}}</onlyinclude></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>
==Documentation==
==Documentation==
===Example===
<!-- template that uses a dpl table to generate all quests linking to valkurm dunes -->
<!--{{Zone/Quests|{{PAGENAME}}}}-->


===Example===
{{TableQuestHeader}}
{{TableQuestHeader}}


Line 31: Line 35:


{{TableQuestLine |Name=Yomi Okuri| Type=[[:category:Artifact Armor|AF]] (SAM)| Starter=[[Gilgamesh]]| Zone=[[Norg]]| Coordinates=L-8}}
{{TableQuestLine |Name=Yomi Okuri| Type=[[:category:Artifact Armor|AF]] (SAM)| Starter=[[Gilgamesh]]| Zone=[[Norg]]| Coordinates=L-8}}

{{TableQuestLine |Name=Stardust| Type=General| Starter=[[Baldric]]| Zone=Metalworks| Coordinates=G-9}}

{{TableQuestLine |Name=A Hard Day's Knight| Type=General| Starter=Quelveuiat| Zone=Tavnazian Safehold| map=Map 2| Coordinates=I-10}}
<!--
<!--
{{TableMissionHeader}}
{{TableMissionHeader}}

Revision as of 14:57, 25 June 2025


Documentation

Example

Quest Type Starter Location
An Empty Vessel Job (BLU) [[Waoud]] [[Aht Urhgan Whitegate]] ([[Aht Urhgan Whitegate/Maps]])
An Explorer's Footsteps Map [[Abelard]] [[Selbina]] ([[Selbina/Maps]])
Bite the Dust General [[Yazan]] [[Port Bastok]] ([[Port Bastok/Maps]])
Valkurm Dunes/Expeditionary Force Expeditionary Force --- ---
Valkurm Dunes/Garrison Garrison --- ---
Messenger from Beyond AF (WHM) [[Narcheral]] [[Northern San d'Oria]] ([[Northern San d'Oria/Maps]])
Pirate's Chart Quest Side Quest [[Zaldon]] [[Selbina]] ([[Selbina/Maps]])
Stardust General [[Baldric]] [[Metalworks]] ([[Metalworks/Maps]])
Path of the Bard Job (BRD) [[Mertaire]] [[Lower Jeuno]] ([[Lower Jeuno/Maps]])
Yomi Okuri AF (SAM) [[Gilgamesh]] [[Norg]] ([[Norg/Maps]])
Stardust General [[Baldric]] Metalworks (G-9
A Hard Day's Knight General Quelveuiat Tavnazian Safehold, Map 2 (I-10