Jump to content

Template:Location: Difference between revisions

From greyhawk
mNo edit summary
Tag: Reverted
mNo edit summary
 
(39 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Location]]
[[Category:DM Info]]
<noinclude>
<noinclude>
[[Category:Templates]]
This template replicates the style of a 5th Edition D&D adventure module, with separate sections for dialogue and notes.
This template replicates the style of an AD&D 1e adventure module, with separate sections for dialogue and notes.
<p style="font-weight: bold; margin-bottom: 5px;">Usage</p>
== Usage ==
<pre>
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.
</pre>
 
=== Code to Copy ===
<pre>
<pre>
{{AD&D 1e Location
{{Location
| name = Location Name
 
| dialogue = Description to be read to players...
| name   =  
| notes = Notes for the Dungeon Master...
| dialog =  
| texture = parchment.jpg (Optional: Image file name for texture)
| notes =  
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>


<div style="
<div><!--
    {{#if:{{{texture|}}}|background-image: url('{{{texture}}}'); background-repeat: repeat;}}
-->{{#if:{{{name|}}}|
    font-family: Futura, Helvetica, sans-serif;
<h4 style="margin: 10px 10px 5px 10px; color: #333;">{{{name}}}</h4>
    border: 3px double #000;
}}<!--
    padding: 20px;
-->{{#if:{{{dialog|}}}|
    margin: 10px;
<div style="border: 1px solid #ddd; padding: 15px; margin: 0 10px 10px 10px; background-color: #f9f9f9; color: #333; line-height: 1.4em;">{{{dialog}}}</div>
    line-height: 1.4;
}}<!--
    text-align: justify;
-->{{#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:{{{name|}}}|
{{{notes}}}
<div style="
    font-family: Avant Garde, Helvetica, sans-serif;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.3em;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
">
{{{name}}}
</div>
</div>
}}
{{#if:{{{dialogue|}}}|
<p>{{{dialogue}}}</p>
}}
{{#if:{{{notes|}}}|
<h3 style="font-family: Avant Garde, Helvetica, sans-serif; margin-top: 15px; margin-bottom: 5px; border-bottom: 1px solid #000; padding-bottom: 3px;">Notes:</h3>
<p>{{{notes}}}</p>
}}
</div>
</div>
}}<!--
--></div>


<noinclude>
<noinclude>
Line 58: Line 54:
             "required": false
             "required": false
         },
         },
         "dialogue": {
         "dialog": {
             "label": "Dialogue",
             "label": "Dialog",
             "type": "string",
             "type": "string",
             "description": "The description to be read to the players.",
             "description": "The description to be read to the players.",
Line 68: Line 64:
             "type": "string",
             "type": "string",
             "description": "Notes for the Dungeon Master.",
             "description": "Notes for the Dungeon Master.",
            "required": false
        },
        "texture":{
            "label": "Background Texture",
            "type": "string",
            "description": "Optional: Image file name for a parchment or aged paper texture.",
             "required": false
             "required": false
         }
         }
     },
     },
     "description": "Template to replicate the style of an AD&D 1e adventure module, with separate sections for dialogue and notes, including an optional location name and background texture."
     "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>
</templatedata>
<p style="font-size: smaller;">Font information sourced from: discussions on RPG forums and the TSR & WotC Font FAQ, specifically noting the frequent use of Futura, Helvetica, and Avant Garde in AD&D 1st Edition publications. While exact fonts may vary, these are strongly associated with the era's aesthetic.</p>
<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.