Jump to content

Template:Location: Difference between revisions

From greyhawk
No edit summary
Tag: Reverted
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:


<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]]
 
* 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 ==
From this point forward simply use the {{Location}} template with the parameters identified below for each portion of text you want to read aloud.
* '''Uniform Design:''' All borders set to 1px.
</pre>
* '''Padding:''' Tight 3-5px layout for high density.


=== Code to Copy ===
=== Code to Copy ===
<pre>
<pre>
{{Location
{{Location
| name  =  
| name  =  
| dialog =  
| dialog =  
Line 20: Line 26:
</noinclude>
</noinclude>


<div class="dnd-location-block" style="margin-bottom: 10px; font-family: 'Segoe UI', sans-serif; border: 1px solid #ccc; border-radius: 2px; overflow: hidden;">
<div><!--
  {{#if:{{{name|}}}|
-->{{#if:{{{name|}}}|
    <div class="dnd-header" style="background: #58180D; color: white; padding: 3px 8px; border-bottom: 1px solid #58180D; font-variant: small-caps; font-weight: bold; font-size: 0.95em;">
<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:{{{dialog|}}}|
-->{{#if:{{{notes|}}}|
    <div class="dnd-dialog" style="padding: 5px 8px; margin: 0; background-color: {{{color|#fdf1dc}}}; color: #333; font-style: italic; line-height: 1.3em; font-family: 'Georgia', serif; border-bottom: 1px solid #ccc;">
<div style="margin: 0 10px 10px 10px; padding-top: 10px; color: #333;">
      {{{dialog}}}
<div style="font-weight: bold; margin-bottom: 5px;">Notes:</div>
    </div>
<div style="line-height: 1.4em;">
  }}


  {{#if:{{{notes|}}}|
    <div class="dnd-notes" style="padding: 5px 8px; background: white;">
      <div style="font-family: 'Segoe UI', sans-serif; font-weight: bold; color: #58180D; border-bottom: 1px solid #ccc; margin-bottom: 4px; text-transform: uppercase; font-size: 0.7em; letter-spacing: 0.5px;">DM Notes</div>
      <div style="line-height: 1.3em; color: #222;">
{{{notes}}}
{{{notes}}}
      </div>
    </div>
  }}
</div>
</div>
</div>
}}<!--
--></div>
<noinclude>
<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>
<p style="font-size: smaller;">Font information sourced from: 5th Edition D&D core rulebooks and official publications.</p>
</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.