Template:Quest Links: Difference between revisions

From Drunkapedia
Jump to: navigation, search
imported>Tlosk
No edit summary
imported>Tlosk
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{PAGENAME}}#Walk Through|Guide]] - [[{{PAGENAME}}#Items|Items]]{{#ifeq:{{{No Map}}}|| - [[{{PAGENAME}}#Maps|Maps]]|}} - [[{{PAGENAME}}#Images|Images]] - [[{{PAGENAME}}#Lore & Dialog|Lore]]</includeonly><noinclude>
<includeonly>[[{{PAGENAME}}#Walk Through|Guide]] - [[{{PAGENAME}}#Items|Items]] - [[{{PAGENAME}}#Maps|Maps]] - [[{{PAGENAME}}#Images|Images]] - [[{{PAGENAME}}#Lore & Dialog|Lore]]</includeonly><noinclude>
{{Related|Wiki Templates}}
{{Related|Wiki Templates}}
== Syntax ==
== Syntax ==
'''Standard'''
 
<pre style="width:auto; overflow:auto">
<pre style="width:auto; overflow:auto">
{{Quest Links}}
{{Quest Links}}
</pre>
'''Optional Omissions'''
<pre style="width:auto; overflow:auto">
{{Quest Links|No Guide|No Items|No Maps|No Images|No Lore}}
</pre>
</pre>


Line 16: Line 11:
Provides links to the major sections of a quest writeup that can be inserted into the header of the quest summary table, primary reason is because quest writeups do not normally have a Table of Contents. Note that the template uses relative links <nowiki>{{PAGENAME}}</nowiki>, so will automatically link to the sections for the page it is on (the links in the example below are red because this page does not have these sections).
Provides links to the major sections of a quest writeup that can be inserted into the header of the quest summary table, primary reason is because quest writeups do not normally have a Table of Contents. Note that the template uses relative links <nowiki>{{PAGENAME}}</nowiki>, so will automatically link to the sections for the page it is on (the links in the example below are red because this page does not have these sections).


If the page does not have a particular section, and is unlikely to add the section, you can omit the link by adding a No Link parameter. For example if there will never be a maps section, use {{Quest Links|No Map}}. You can omit more than one section, e.g., {{Quest Links|No Maps|No Images}}.


For example:
For example:
Line 40: Line 34:
|}
|}


{{Quest Links}}
{{Quest Links|No Map}}


[[Category:Wiki Template]]
</noinclude>
</noinclude>

Latest revision as of 11:15, 21 April 2009

Related topics: Wiki Templates

Syntax

{{Quest Links}}

Usage

Provides links to the major sections of a quest writeup that can be inserted into the header of the quest summary table, primary reason is because quest writeups do not normally have a Table of Contents. Note that the template uses relative links {{PAGENAME}}, so will automatically link to the sections for the page it is on (the links in the example below are red because this page does not have these sections).


For example:

{|class=quest-summary
!colspan=2 class=quest-summary-header| Quest Summary<br>{{Quest Links}}
|-
![[Quest Type]]
| [[Solo/Group]]
|-
|}

displays as:

Quest Summary
Guide - Items - Maps - Images - Lore
Quest Type Solo/Group