Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
Line 1: Line 1:
<templatestyles src="Template:Location/Style.css" />
<noinclude>
<div class="descriptionBox">
[[Category:Templates]]
<div class="descriptionBoxTitle">
This template replicates the style of an AD&D 1e adventure module, with separate sections for dialogue and notes.
{{{title|Location Name}}}
== Usage ==
<pre>
{{AD&D 1e Module Split
| dialogue = Description to be read to players...
| notes = Notes for the Dungeon Master...
}}
</pre>
</noinclude>
 
<div style="font-family: 'Times New Roman', Times, serif; border: 3px double #000; padding: 20px; margin: 10px; background-color: #fefefe;">
 
{{#if:{{{dialogue|}}}|
<div style="margin-bottom: 20px;">
<p>{{{dialogue}}}</p>
</div>
}}
 
{{#if:{{{notes|}}}|
<div style="margin-bottom: 20px; border-top: 1px solid #000; padding-top: 10px;">
<h3 style="margin-bottom: 5px;">Notes:</h3>
<p>{{{notes}}}</p>
</div>
</div>
{{{dialog|The text to read}}}<br>
}}
 
</div>
</div>


<noinclude>
<noinclude>
Include the { dmtext } paramater if you want to details associated with this location just for the DM.
<templatedata>
{
    "params": {
        "dialogue": {
            "label": "Dialogue",
            "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."
}
</templatedata>
</noinclude>
</noinclude>
<div class="DMtext">
{{{dmtext|}}}
</div>
<includeonly>
[[Category:Location]]
</includeonly>

Revision as of 23:53, 20 March 2025

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

Usage

{{AD&D 1e Module Split
| dialogue = Description to be read to players...
| notes = Notes for the Dungeon Master...
}}





<templatedata> {

   "params": {
       "dialogue": {
           "label": "Dialogue",
           "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."

} </templatedata>