Template:Location: Difference between revisions
Adventurer (talk | contribs) mNo edit summary |
Adventurer (talk | contribs) mNo edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
[Category:Location]] | |||
[[Category:DM Info]] | [[Category:DM Info]] | ||
<noinclude> | <noinclude> | ||
{{Special:Whatlinkshere/{{BASEPAGENAME}}}} | {{Special:Whatlinkshere/{{BASEPAGENAME}}}} | ||
[[Category: | [[Category:Corsairs Campaign]] | ||
* | == Location Template Usage == | ||
This template replicates the style of a 5th Edition D&D adventure module. | |||
* Use one `{{Location}}` call per room or area. | |||
* **Dialog:** Read this to players. Shaded in parchment color. | |||
* **Notes:** DM-only info. Supports **bullets**, **bolding**, and **paragraph breaks** (double-enter). | |||
=== Code to Copy === | |||
<pre> | <pre> | ||
{{Location | {{Location | ||
| name = | |||
| dialog = | | name = | ||
| notes = | | dialog = | ||
| notes = | |||
| color = | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
<div> | <div class="dnd-location-block" style="margin-bottom: 25px; font-family: 'Segoe UI', sans-serif; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);"> | ||
{{#if:{{{name|}}}| | {{#if:{{{name|}}}| | ||
< | <div class="dnd-header" style="background: #58180D; color: white; padding: 8px 15px; font-variant: small-caps; font-weight: bold; font-size: 1.2em; letter-spacing: 1px;"> | ||
{{{name}}} | {{{name}}} | ||
</ | </div> | ||
}} | }} | ||
{{#if:{{{dialog|}}}| | {{#if:{{{dialog|}}}| | ||
<div style="border: | <div class="dnd-dialog" style="border-left: 6px solid #58180D; padding: 15px; margin: 0; background-color: {{{color|#fdf1dc}}}; color: #333; font-style: italic; line-height: 1.5em; font-family: 'Georgia', serif;"> | ||
{{{dialog}}} | |||
</div> | </div> | ||
}} | }} | ||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
<div style=" | <div class="dnd-notes" style="padding: 12px 15px; background: white; border-top: 1px solid #ddd;"> | ||
< | <div style="font-family: 'Segoe UI', sans-serif; font-weight: bold; color: #58180D; border-bottom: 1px solid #58180D; margin-bottom: 10px; text-transform: uppercase; font-size: 0.8em; letter-spacing: 1.5px;">Dungeon Master Notes</div> | ||
< | <div style="line-height: 1.6em; color: #222;"> | ||
</div> | {{{notes}}} | ||
}} | </div> | ||
</div> | |||
}} | |||
</div> | </div> | ||
| Line 48: | Line 51: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"name": { | |||
"label": "Location Name", | |||
"type": "string", | |||
"description": "The title of the room or area." | |||
}, | |||
"dialog": { | |||
"label": "Dialog", | |||
"type": "string", | |||
"description": "Text to be read aloud to players.", | |||
"required": true | |||
}, | |||
"notes": { | |||
"label": "Notes", | |||
"type": "string", | |||
"description": "DM-specific information, traps, or loot. Supports Wiki formatting." | |||
}, | |||
"color": { | |||
"label": "Box Color", | |||
"type": "string", | |||
"description": "Optional: Override the default parchment background hex color." | |||
} | |||
}, | |||
"description": "Replicates 5E D&D module styling for campaign wikis." | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 22:24, 30 April 2026
[Category:Location]]
Location Template Usage
This template replicates the style of a 5th Edition D&D adventure module.
- Use one `[Category:Location]]
` call per room or area.
- **Dialog:** Read this to players. Shaded in parchment color.
- **Notes:** DM-only info. Supports **bullets**, **bolding**, and **paragraph breaks** (double-enter).
Code to Copy
{{Location
| name =
| dialog =
| notes =
| color =
}}
<templatedata>
{
"params": {
"name": {
"label": "Location Name",
"type": "string",
"description": "The title of the room or area."
},
"dialog": {
"label": "Dialog",
"type": "string",
"description": "Text to be read aloud to players.",
"required": true
},
"notes": {
"label": "Notes",
"type": "string",
"description": "DM-specific information, traps, or loot. Supports Wiki formatting."
},
"color": {
"label": "Box Color",
"type": "string",
"description": "Optional: Override the default parchment background hex color."
}
},
"description": "Replicates 5E D&D module styling for campaign wikis."
}
</templatedata>