Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
Line 26: Line 26:


{{#if:{{{name|}}}|
{{#if:{{{name|}}}|
<div style="font-family: Avant Garde, Helvetica, sans-serif; margin: 10px 10px 0px 10px; text-transform: uppercase; font-weight: bold; font-size: 1.2em;">
<div style="font-family: Avant Garde, Helvetica, sans-serif; margin: 0 10px 5px 10px; text-transform: uppercase; font-weight: bold; font-size: 1.2em;">
{{{name}}}
{{{name}}}
</div>
</div>
Line 32: Line 32:


{{#if:{{{dialog|}}}|
{{#if:{{{dialog|}}}|
<div style="font-family: Futura, Helvetica, sans-serif; border: 3px double #000; padding: 20px; margin: 0 10px 10px 10px; background-color: #fefefe;">
<div style="font-family: Futura, Helvetica, sans-serif; border: 3px double #000; padding: 10px; margin: 0 10px 10px 10px; background-color: #fefefe;">
<p>{{{dialog}}}</p>
<p>{{{dialog}}}</p>
</div>
</div>
Line 44: Line 44:
}}
}}


<includeonly>
== Example ==
[[Category:Location]]
[[Category:DM Info]]
 
 
 
{{#if:A dark room|
<div style="font-family: Avant Garde, Helvetica, sans-serif; margin: 10px 10px 0px 10px; text-transform: uppercase; font-weight: bold; font-size: 1.2em;">
A dark room
</div>
}}
 
{{#if:You find yourselves in a dimly lit chamber, the air thick with the scent of damp stone.|
<div style="font-family: Futura, Helvetica, sans-serif; border: 3px double #000; padding: 20px; margin: 0 10px 10px 10px; background-color: #fefefe;">
<p>You find yourselves in a dimly lit chamber, the air thick with the scent of damp stone.</p>
</div>
}}
 
{{#if:A secret passage is hidden behind a loose stone in the western wall.|
<div style="margin: 0 10px 10px 10px; padding-top: 10px;">
<h3 style="font-family: Avant Garde, Helvetica, sans-serif; margin-bottom: 5px;">Notes:</h3>
<p style="font-family: Futura, Helvetica, sans-serif;">A secret passage is hidden behind a loose stone in the western wall.</p>
</div>
}}
 
 
== Example ==
== Example ==
{{Location
{{Location
Line 51: Line 76:
| notes = A secret passage is hidden behind a loose stone in the western wall.
| notes = A secret passage is hidden behind a loose stone in the western wall.
}}
}}
</includeonly>
 
 
 


<noinclude>
<noinclude>

Revision as of 00:13, 25 March 2025


This template replicates the style of an AD&D 1e adventure module, with separate sections for dialogue and notes.

Usage

Include just once at the top of the page the following two lines:

{{Special:Whatlinkshere/{{BASEPAGENAME}}}}
[[Category:CAMPAIGN NAME]]

* Note that if you dont you'll see the what links here repeated for every {{Location}} instead of just once for the page as desired.

From this point forward simply use the {{Location}} template with the parameters identified below for each portion of text you want to read aloud.
{{Location
| name = Location Name
| dialog = Description to be read to players...
| notes = Notes for the Dungeon Master...
}}





Example


A dark room

You find yourselves in a dimly lit chamber, the air thick with the scent of damp stone.

Notes:

A secret passage is hidden behind a loose stone in the western wall.


Example


Example Room

You find yourselves in a dimly lit chamber, the air thick with the scent of damp stone.

Notes:

A secret passage is hidden behind a loose stone in the western wall.

Example


A dark room

You find yourselves in a dimly lit chamber, the air thick with the scent of damp stone.

Notes:

A secret passage is hidden behind a loose stone in the western wall.


Example

Template loop detected: Template:Location






<templatedata> {

   "params": {
       "name": {
           "label": "Location Name",
           "type": "string",
           "description": "The name of the location.",
           "required": false
       },
       "dialog": {
           "label": "Dialog",
           "type": "string",
           "description": "The description to be read to the players.",
           "required": true
       },
       "notes": {
           "label": "Notes",
           "type": "string",
           "description": "Notes for the Dungeon Master.",
           "required": false
       }
   },
   "description": "Template to replicate the style of an AD&D 1e adventure module, with separate sections for dialogue and notes, including an optional location name."

} </templatedata>

Font information sourced from: discussions on RPG forums and the TSR & WotC Font FAQ, specifically noting the frequent use of Futura, Helvetica, and Avant Garde in AD&D 1st Edition publications. While exact fonts may vary, these are strongly associated with the era's aesthetic.