Jump to content

Template:Zone: Difference between revisions

From Drifters Almanac
m Protected "Template:Zone" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 1: Line 1:
<div class="zone-template">
<includeonly>{{DISPLAYTITLE:{{{zone_name}}}}}</includeonly>
'''{{{zone_name|{{PAGENAME}}}}}'''
{{#if:{{{zone_map|}}}|[[File:{{{zone_map}}}|thumb|{{{zone_name}}}]]|[[File:Image_Placeholder.png|thumb|Map Image Needed]]}}
<!--
<!--
== Usage ==
==========================
 
      OVERVIEW         
{{Zone
==========================
|zone name=
-->{{#if:{{{zone_intro|}}}|
|map image file=
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Overview</div>
|zone scenery image file=
<hr style="border: 0; border-top: 1px solid #555;" />
|description=
<div style="margin-left: 1em;">
|connections=
{{{zone_intro|}}}
|harvest resources=
}}</div><!--
|common mobs=
==========================
|named mobs=
      CONNECTIONS         
|quests=
==========================
-->{{#if:{{{connections|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Connections</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#invoke:ListLinks|fromDelimited|1={{{connections}}}|delimiter=, }}
}}</div><!--
==========================
        QUESTS         
==========================
-->{{#if:{{{quests|}}}|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Quests</div>
<hr style="border: 0; border-top: 1px solid #555;" />
<div style="margin-left: 1em;">
{{#invoke:QuestLinks|fromDelimited|1={{{quests}}}|delimiter=, }}
}}</div><!--
==========================
      RESOURCE NODES     
==========================
-->{{#ifexpr:{{#ask:[[Category:Resource Nodes]][[Location::{{PAGENAME}}]]|format=count}} > 0|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Resource Nodes</div>
<hr style="border: 0; border-top: 1px solid #555;" />
{{#ask:
[[Category:Resource Nodes]]
[[Location::{{PAGENAME}}]]
|format=ul
}}
}}
 
</div>
-->
}}<!--
[[File:{{{map image file}}}|thumb|Map of {{{zone name}}}]]
==========================
{{#if: {{{connections}}}
      NAMED MOBS     
|<h2> Connections </h2>
==========================
{{{connections}}}
-->{{#ifexpr:{{#ask:[[Category:Named Mobs]][[Location::{{PAGENAME}}]]|format=count}} > 0|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Named Mobs</div>
<hr style="border: 0; border-top: 1px solid #555;" />
{{#ask:
[[Category:Named Mobs]]
[[Location::{{PAGENAME}}]]
|format=ul
}}
}}
{{#if: {{{quests}}}
</div>
|<h2> Quests </h2>
}}<!--
{{{quests}}}
==========================
      COMMON MOBS     
==========================
-->{{#ifexpr:{{#ask:[[Category:Mobs|+depth=0]][[Location::{{PAGENAME}}]]|format=count}} > 0|
<div style="font-size: 1.2em; font-weight: bold; margin-top: 1em;">Common Mobs</div>
<hr style="border: 0; border-top: 1px solid #555;" />
{{#ask:
[[Category:Mobs|+depth=0]]
[[Location::{{PAGENAME}}]]
|format=ul
}}
}}
{{#if: {{{harvest resources}}}
</div>
|<h2> Resource Nodes </h2>
}}<!--
{{Div col|colwidth=20em}}
==========================
{{{harvest resources}}}
        CATEGORIES       
{{Div col end}}
==========================
}}
--><includeonly>[[Category:Zones]]</includeonly>
{{#if: {{{named mobs}}}
 
|<h2> Named Mobs </h2>
<includeonly><div style="display:none">
{{Div col|colwidth=20em}}
 
{{{named mobs}}}
<span style="display:none">{{#default_form:Zone}}</span>
{{Div col end}}
</div></includeonly>
}}
{{#if: {{{common mobs}}}
|<h2> Common Mobs </h2>
{{Div col||colwidth=20em}}
{{{common mobs}}}
{{Div col end}}
}}
[[Category:Zones]]

Revision as of 19:01, 26 June 2025

Zone

Map Image Needed