Template:Location: Difference between revisions
Appearance
mNo edit summary |
Adventurer (talk | contribs) mNo edit summary |
||
(34 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Location]] | |||
[[Category:DM Info]] | |||
<noinclude> | <noinclude> | ||
This template replicates the style of a 5th Edition D&D adventure module, with separate sections for dialogue and notes. | |||
This template replicates the style of | <p style="font-weight: bold; margin-bottom: 5px;">Usage</p> | ||
= | <pre> | ||
Include just once at the top of the page the following two lines: | |||
{{Special:Whatlinkshere/{{BASEPAGENAME}}}} | |||
[[Category:CAMPAIGN NAME]] | |||
* Note that if you don't 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. | |||
</pre> | |||
<pre> | <pre> | ||
{{ | {{Location | ||
| | | name = Location Name | ||
| dialog = Description to be read to players... | |||
| notes = Notes for the Dungeon Master... | | notes = Notes for the Dungeon Master... | ||
}} | }} | ||
Line 11: | Line 24: | ||
</noinclude> | </noinclude> | ||
{{#if:{{{ | <div> | ||
< | {{#if:{{{name|}}}| | ||
<p>{{{ | <h4 style="margin: 10px 10px 5px 10px; color: #333;"> | ||
{{{name}}} | |||
</h4> | |||
}} | |||
{{#if:{{{dialog|}}}| | |||
<div style="border: 1px solid #ddd; padding: 15px; margin: 0 10px 10px 10px; background-color: #f9f9f9; color: #333; line-height: 1.4em;"> | |||
<p>{{{dialog}}}</p> | |||
</div> | </div> | ||
}} | }} | ||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
<div style="margin | <div style="margin: 0 10px 10px 10px; padding-top: 10px; color: #333;"> | ||
< | <p style="font-weight: bold; margin-bottom: 5px;">Notes:</p> | ||
<p>{{{notes}}}</p> | <p style="line-height: 1.4em;">{{{notes}}}</p> | ||
</div> | </div> | ||
}} | }} | ||
</div> | |||
<noinclude> | <noinclude> | ||
Line 28: | Line 49: | ||
{ | { | ||
"params": { | "params": { | ||
" | "name": { | ||
"label": " | "label": "Location Name", | ||
"type": "string", | |||
"description": "The name of the location.", | |||
"required": false | |||
}, | |||
"dialog": { | |||
"label": "Dialog", | |||
"type": "string", | "type": "string", | ||
"description": "The description to be read to the players.", | "description": "The description to be read to the players.", | ||
Line 41: | Line 68: | ||
} | } | ||
}, | }, | ||
"description": "Template to replicate the style of | "description": "Template to replicate the style of a 5th Edition D&D adventure module, with separate sections for dialogue and notes, including an optional location name." | ||
} | } | ||
</templatedata> | </templatedata> | ||
<p style="font-size: smaller;">Font information sourced from: 5th Edition D&D core rulebooks and official publications.</p> | |||
</noinclude> | </noinclude> |
Latest revision as of 03:02, 30 March 2025
This template replicates the style of a 5th Edition D&D 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 don't 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... }}
<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 a 5th Edition D&D adventure module, with separate sections for dialogue and notes, including an optional location name."
} </templatedata>
Font information sourced from: 5th Edition D&D core rulebooks and official publications.