Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 7: Line 7:


== Location Template Usage ==
== Location Template Usage ==
This template replicates the style of a 5th Edition D&D adventure module.
* '''Dialog:''' Parchment shaded box for player reading.
* Use one `{{Location}}` call per room or area.
* '''Notes:''' Clean white box for DM info. Supports bullets and line breaks.
* **Dialog:** Read this to players. Shaded in parchment color.
* **Notes:** DM-only info. Supports **bullets**, **bolding**, and **paragraph breaks** (double-enter).


=== Code to Copy ===
=== Code to Copy ===
Line 19: Line 17:
| dialog =  
| dialog =  
| notes  =  
| notes  =  
| color  =
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>


<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);">
<div class="dnd-location-block" style="margin-bottom: 15px; font-family: 'Segoe UI', sans-serif; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; box-shadow: 1px 1px 3px 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;">
     <div class="dnd-header" style="background: #58180D; color: white; padding: 4px 12px; font-variant: small-caps; font-weight: bold; font-size: 1.05em; letter-spacing: 0.5px;">
       {{{name}}}
       {{{name}}}
     </div>
     </div>
Line 33: Line 29:


   {{#if:{{{dialog|}}}|
   {{#if:{{{dialog|}}}|
     <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;">
     <div class="dnd-dialog" style="border-left: 5px solid #58180D; padding: 10px 12px; margin: 0; background-color: {{{color|#fdf1dc}}}; color: #333; font-style: italic; line-height: 1.4em; font-family: 'Georgia', serif;">
       {{{dialog}}}
       {{{dialog}}}
     </div>
     </div>
Line 39: Line 35:


   {{#if:{{{notes|}}}|
   {{#if:{{{notes|}}}|
     <div class="dnd-notes" style="padding: 12px 15px; background: white; border-top: 1px solid #ddd;">
     <div class="dnd-notes" style="padding: 8px 12px; 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="font-family: 'Segoe UI', sans-serif; font-weight: bold; color: #58180D; border-bottom: 1px solid #58180D; margin-bottom: 5px; text-transform: uppercase; font-size: 0.75em; letter-spacing: 1px;">Dungeon Master Notes</div>
       <div style="line-height: 1.6em; color: #222;">
       <div style="line-height: 1.5em; color: #222;">
{{{notes}}}
{{{notes}}}
       </div>
       </div>
Line 47: Line 43:
   }}
   }}
</div>
</div>
<noinclude>
<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>
</noinclude>

Revision as of 22:33, 30 April 2026



Location Template Usage

  • Dialog: Parchment shaded box for player reading.
  • Notes: Clean white box for DM info. Supports bullets and line breaks.

Code to Copy

{{Location

| name   = 
| dialog = 
| notes  = 
}}