Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
Tag: Reverted
mNo edit summary
 
(10 intermediate revisions by 2 users not shown)
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:Corsairs Campaign]]
[[Category:CAMPAIGN NAME]]


== Location Template Usage ==
* 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.
This template replicates the style of a 5th Edition D&D adventure module.
 
* Use one `{{Location}}` call per room or area.
From this point forward simply use the {{Location}} template with the parameters identified below for each portion of text you want to read aloud.
* **Dialog:** Read this to players. Shaded in parchment color.
</pre>
* **Notes:** DM-only info. Supports **bullets**, **bolding**, and **paragraph breaks** (double-enter).


=== Code to Copy ===
=== Code to Copy ===
Line 19: Line 22:
| 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><!--
  {{#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;">
<h4 style="margin: 10px 10px 5px 10px; color: #333;">{{{name}}}</h4>
      {{{name}}}
}}<!--
    </div>
-->{{#if:{{{dialog|}}}|
  }}
<div style="border: 1px solid #ddd; padding: 15px; margin: 0 10px 10px 10px; background-color: #f9f9f9; color: #333; line-height: 1.4em;">{{{dialog}}}</div>
}}<!--
-->{{#if:{{{notes|}}}|
<div style="margin: 0 10px 10px 10px; padding-top: 10px; color: #333;">
<div style="font-weight: bold; margin-bottom: 5px;">Notes:</div>
<div style="line-height: 1.4em;">


  {{#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;">
      {{{dialog}}}
    </div>
  }}
  {{#if:{{{notes|}}}|
    <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;">
{{{notes}}}
{{{notes}}}
      </div>
    </div>
  }}
</div>
</div>
</div>
}}<!--
--></div>


<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
    "params": {
"name": {
        "name": {
"label": "Location Name",
            "label": "Location Name",
"type": "string",
            "type": "string",
"description": "The title of the room or area."
            "description": "The name of the location.",
},
            "required": false
"dialog": {
        },
"label": "Dialog",
        "dialog": {
"type": "string",
            "label": "Dialog",
"description": "Text to be read aloud to players.",
            "type": "string",
"required": true
            "description": "The description to be read to the players.",
},
            "required": true
"notes": {
        },
"label": "Notes",
        "notes": {
"type": "string",
            "label": "Notes",
"description": "DM-specific information, traps, or loot. Supports Wiki formatting."
            "type": "string",
},
            "description": "Notes for the Dungeon Master.",
"color": {
            "required": false
"label": "Box Color",
        }
"type": "string",
    },
"description": "Optional: Override the default parchment background hex color."
    "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": "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>

Latest revision as of 23:01, 30 April 2026


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.

Code to Copy[edit source]

{{Location

| name   = 
| dialog = 
| notes  = 
}}



<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.