Difference between revisions of "Template:5e Adventure"

From Dungeons and Dragons Wiki
Jump to: navigation, search
m
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{adventure|}}}|{{#arraymap: {{{adventure|}}}|,|xAdv|{{#set: Adventures=xAdv}}}}|}}</includeonly><noinclude>
+
<includeonly>{{#if: {{{nodb|}}}|<!--skip-->|<!--
 +
--Store Data--
 +
-->{{#set: Adventure List = {{Safeapos|{{{adventure|}}}}}}}{{#set: Minimum Level={{{min_level|}}}}}{{#set: Maximum Level={{{max_level|}}}}}{{#arraymap: {{{tier|}}}|, |xTier|{{#set: Adventure Tier=xTier}}|\s|}}{{#set: Summary={{{summary|}}}}}<!--
 +
-- Categories--
 +
-->[[Category:5e Adventures|{{{adventure}}} 5e]]{{#arraymap: {{{tier|}}}|, |xTier|[[Category:5e Tier xTier Adventures]]|<nowiki />|}}<!--end arraymap-->|}}<!--end nodb--><!--
 +
-- Display --
 +
-->{{#if: {{{noshow|}}}|<!--skip display-->|{{{!}} class="zebra small" style="border:solid 1px goldenrod; border-radius:0.5em;"
 +
!colspan="2" style="padding:0.5em;  background:#d8cc91; text-align:left;"{{!}}{{{adventure|}}}
 +
{{!}}-
 +
{{!}}Adventurer Levels
 +
{{!}}{{{min_level|}}}{{#if: {{{max_level|}}}|-{{{max_level}}}|}}
 +
{{!}}-
 +
{{!}}Adventure Tier
 +
{{!}}{{{tier|}}}
 +
{{!}}-
 +
{{!}}Summary:
 +
{{!}}{{{summary|}}}
 +
{{!}}}|}}<!--endif noshow--></includeonly><noinclude>{{tocright}}
 
<!-- Tech note:
 
<!-- Tech note:
 
&#91; and &#93; display as [ and ] , respectively, but won't get parsed as wiki links.  
 
&#91; and &#93; display as [ and ] , respectively, but won't get parsed as wiki links.  
Line 9: Line 26:
 
<pre>
 
<pre>
 
{{5e Adventure  
 
{{5e Adventure  
|adventure= <!--list of adventure names-->
+
|adventure=
 +
|min_level=
 +
|max_level=
 +
|tier= <!-- 1-4=1;5-10=2;11-16=3;17+=4-->
 +
|summary=
 
}}
 
}}
 +
</pre>
 +
===Optional Entries===
 +
<pre>
 +
|noshow= <!--blank, true to suppress display-->
 +
|nodb= <!--blank, true to skip data storage & categories-->
 
</pre>
 
</pre>
  
Line 16: Line 42:
 
<pre>
 
<pre>
 
{{5e Adventure  
 
{{5e Adventure  
|adventure=A Foo and His Money are Soon Parted, Expedition to the Bar-rier Reef
+
|adventure=A Foo and His Money are Soon Parted
 +
|level=1-2
 +
|tier=1
 +
|summary=The party is tasked with helping the impulsive {{5ed|Foo}} hold on to enough money to pay his rent.
 
}}
 
}}
 
</pre>
 
</pre>
 
+
===Produces===
 +
{{5e Adventure
 +
|adventure=A Foo and His Money are Soon Parted
 +
|min_level=1
 +
|max_level=6
 +
|tier=1, 2
 +
|summary=The party is tasked with helping the impulsive {{5ed|Foo}} hold on to enough money to pay his rent.
 +
|nodb=
 +
}}
  
 
[[Category:5e Templates]]</noinclude>
 
[[Category:5e Templates]]</noinclude>

Latest revision as of 01:03, 18 July 2024

Use[edit]

Use on adventure pages or publication pages to allow links to adventures.

Syntax[edit]

{{5e Adventure 
|adventure=
|min_level=
|max_level=
|tier= <!-- 1-4=1;5-10=2;11-16=3;17+=4-->
|summary=
}}

Optional Entries[edit]

|noshow= <!--blank, true to suppress display-->
|nodb= <!--blank, true to skip data storage & categories-->

Example[edit]

{{5e Adventure 
|adventure=A Foo and His Money are Soon Parted
|level=1-2
|tier=1
|summary=The party is tasked with helping the impulsive {{5ed|Foo}} hold on to enough money to pay his rent.
}}

Produces[edit]

A Foo and His Money are Soon Parted
Adventurer Levels 1-6
Adventure Tier 1, 2
Summary: The party is tasked with helping the impulsive Foo hold on to enough money to pay his rent.