Template:5e Adventure: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<noinclude> <!-- Cargo Table --> {{#cargo_declare: _table = 5e_Adventures |Adventure = List (, ) of String }} </noinclude><includeonly><!-- --Store Data-- -->{{#cargo_store: _table = 5e_Adventures |Creature = {{{creature|}}} |Adventure = {{{adventure|}}} }}</includeonly><noinclude> <!-- Tech note: [ and ] display as [ and ] , respectively, but won't get parsed as wiki links. --> ==Use== Use on adventure pages or publication pages to allow links to adventures. =...")
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#cargo_declare:
{{#cargo_declare:
_table = 5e_Adventures
_table = 5e_Adventures
|Adventure = List (, ) of String
|Adventure = String
|Max_Level = String
|Min_Level = String
|Tier = List (, ) of String
|Summary = Wikitext
}}
}}
</noinclude><includeonly><!--
</noinclude><includeonly>{{#if: {{{nodb|}}}|<!--skip-->|<!--
--Store Data--
--Store Data--
-->{{#cargo_store:
-->{{#cargo_store:
_table = 5e_Adventures
_table = 5e_Adventures
|Creature = {{{creature|}}}
|Adventure = {{Safeapos|{{{adventure|}}}}}
|Adventure = {{{adventure|}}}
|Min_Level = {{{min_level|}}}
}}</includeonly><noinclude>
|Max_Level = {{{max_level|}}}
|Tier = {{{tier|}}}
|Summary = {{{summary|}}}
}}<!--
-- Categories--
-->[[Category:5e Adventures|{{{adventure}}} 5e]]{{#arraymap: {{{tier|}}}|, |xTier|[[Category:5e Tier xTier Adventures]]|\s}}|}}<!--end nodb--><!--
-- Display --
-->{{#if: {{{noshow|}}}|<!--skip display-->|{{{!}} class="zebra small" style="border:solid 1px gainsboro; border-radius:0.5em;">
!colspan="2" style="padding:0.5em;"{{!}}{{{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 21: Line 43:
<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 28: Line 59:
<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=true
}}




[[Category:5e Templates]]</noinclude>
[[Category:5e Templates]]</noinclude>

Latest revision as of 18:19, 26 August 2024

This template defines the table "5e_Adventures". View table.

Use

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

Syntax

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

Optional Entries

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

Example

{{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

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.