Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
Tag: Reverted
Line 1: Line 1:
[[Category:Location]]
[Category:Location]]
[[Category:DM Info]]
[[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.
<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}}}}
{{Special:Whatlinkshere/{{BASEPAGENAME}}}}
[[Category:CAMPAIGN NAME]]
[[Category:Corsairs Campaign]]


* 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.
== Location Template Usage ==
 
This template replicates the style of a 5th Edition D&D adventure module.
From this point forward simply use the {{Location}} template with the parameters identified below for each portion of text you want to read aloud.
* Use one `{{Location}}` call per room or area.
</pre>
* **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 = Location Name
 
| dialog = Description to be read to players...
| name   =  
| notes = Notes for the Dungeon Master...
| 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|}}}|
<h4 style="margin: 10px 10px 5px 10px; color: #333;">
    <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}}}
</h4>
    </div>
}}
  }}


{{#if:{{{dialog|}}}|
  {{#if:{{{dialog|}}}|
<div style="border: 1px solid #ddd; padding: 15px; margin: 0 10px 10px 10px; background-color: #f9f9f9; color: #333; line-height: 1.4em;">
    <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;">
<p>{{{dialog}}}</p>
      {{{dialog}}}
</div>
    </div>
}}
  }}


{{#if:{{{notes|}}}|
  {{#if:{{{notes|}}}|
<div style="margin: 0 10px 10px 10px; padding-top: 10px; color: #333;">
    <div class="dnd-notes" style="padding: 12px 15px; background: white; border-top: 1px solid #ddd;">
<p style="font-weight: bold; margin-bottom: 5px;">Notes:</p>
      <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>
<p style="line-height: 1.4em;">{{{notes}}}</p>
      <div style="line-height: 1.6em; color: #222;">
</div>
{{{notes}}}
}}
      </div>
    </div>
  }}
</div>
</div>


Line 48: Line 51:
<templatedata>
<templatedata>
{
{
    "params": {
"params": {
        "name": {
"name": {
            "label": "Location Name",
"label": "Location Name",
            "type": "string",
"type": "string",
            "description": "The name of the location.",
"description": "The title of the room or area."
            "required": false
},
        },
"dialog": {
        "dialog": {
"label": "Dialog",
            "label": "Dialog",
"type": "string",
            "type": "string",
"description": "Text to be read aloud to players.",
            "description": "The description to be read to the players.",
"required": true
            "required": true
},
        },
"notes": {
        "notes": {
"label": "Notes",
            "label": "Notes",
"type": "string",
            "type": "string",
"description": "DM-specific information, traps, or loot. Supports Wiki formatting."
            "description": "Notes for the Dungeon Master.",
},
            "required": false
"color": {
        }
"label": "Box Color",
    },
"type": "string",
    "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."
"description": "Optional: Override the default parchment background hex color."
}
},
"description": "Replicates 5E D&D module styling for campaign wikis."
}
}
</templatedata>
</templatedata>
<p style="font-size: smaller;">Font information sourced from: 5th Edition D&D core rulebooks and official publications.</p>
</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>