Template:TableQuestLine: Difference between revisions

From HorizonXI Wiki
mNo edit summary
(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===
===Example===
<!-- template that uses a dpl table to generate all quests linking to valkurm dunes -->
<!--{{Zone/Quests|{{PAGENAME}}}}-->
{{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