Jump to content

Template:NPC: Difference between revisions

From greyhawk
mNo edit summary
mNo edit summary
Tag: Reverted
Line 4: Line 4:
</noinclude>
</noinclude>


<div style="border: 1px solid #aaa; padding: 1em; background-color: #f9f9f9;">
<div style="border: 1px solid #ccc; padding: 10px; background-color: #f8f8f8; font-family: sans-serif; line-height: 1.6;">


<div style="float: right; margin-left: 1em; max-width: 200px;">{{{image|[[File:|200px|right]]}}}</div>
<div style="float: right; margin-left: 15px; max-width: 200px; border: 1px solid #ddd; padding: 5px; background-color: white;">{{{image|[[File:|200px|center]]}}}</div>


== {{{title|NPC Name}}} ==
<h2 style="margin-top: 0; margin-bottom: 10px; font-size: 1.5em; border-bottom: 1px solid #eee;">{{{title|NPC Name}}}</h2>
 
<div style="margin-bottom: 10px;">
    <strong>Name:</strong> {{{name|}}}<br>
    <strong>Campaign:</strong> {{{campaign|}}}<br>
    <strong>Alignment:</strong> {{{alignment|}}}<br>
    <strong>Appearance:</strong> {{{appearance|}}}<br>
    <strong>Voice/Mannerisms:</strong> {{{voice_mannerisms|}}}<br>
    <strong>Ideal:</strong> {{{ideal|}}}<br>
    <strong>Flaw:</strong> {{{flaw|}}}<br>
    <strong>Bond:</strong> {{{bond|}}}<br>
    <strong>Info:</strong> {{{info|}}}
</div>
 
<hr style="border: none; border-top: 1px solid #eee; margin: 15px 0;">
 
<div style="margin-bottom: 10px;">
    <strong>Ability Scores:</strong> {{{ability_scores|}}}<br>
    <strong>Skills:</strong> {{{skills|}}}<br>
    <strong>Condition Immunities:</strong> {{{condition_immunities|}}}<br>
    <strong>Damage Immunities:</strong> {{{damage_immunities|None}}}<br>
    <strong>Challenge Rating:</strong> {{{cr|}}}<br>
    <strong>Senses:</strong> {{{senses|}}}<br>
    <strong>Languages:</strong> {{{languages|Common}}}<br>
    <strong>Equipment:</strong> {{{equipment|}}}
</div>
 
<div style="clear: both;"></div>


'''Name:''' {{{name|}}}<br>
'''Campaign:''' {{{campaign|}}}<br>
'''Alignment:''' {{{alignment|}}}<br>
'''Appearance:''' {{{appearance|}}}<br>
'''Voice/Mannerisms:''' {{{voice_mannerisms|}}}<br>
'''Ideal:''' {{{ideal|}}}<br>
'''Flaw:''' {{{flaw|}}}<br>
'''Bond:''' {{{bond|}}}<br>
'''Info:''' {{{info|}}}<br>
<hr>
'''Ability Scores:''' {{{ability_scores|}}}<br>
'''Skills:''' {{{skills|}}}<br>
'''Condition Immunities:''' {{{condition_immunities|}}}<br>
'''Damage Immunities:''' {{{damage_immunities|None}}}<br>
'''Challenge Rating:''' {{{cr|}}}<br>
'''Senses:''' {{{senses|}}}<br>
'''Languages:''' {{{languages|Common}}}<br>
'''Equipment:''' {{{equipment|}}}<br>
</div>
</div>


Line 58: Line 67:


* `title`: The NPC's title or role (e.g., "Mayor," "Captain," "Bandit Leader"). Defaults to "NPC Name".
* `title`: The NPC's title or role (e.g., "Mayor," "Captain," "Bandit Leader"). Defaults to "NPC Name".
* `image`: The NPC's image (e.g., `[[File:Example.jpg|200px|right]]`). Defaults to a generic placeholder.
* `image`: The NPC's image (e.g., `[[File:Example.jpg|200px|center]]`). Defaults to a generic placeholder.
* `name`: The NPC's name. Required.
* `name`: The NPC's name. Required.
* `campaign`: The campaign this NPC is in.
* `campaign`: The campaign this NPC is in.
Line 135: Line 144:
         "image": {
         "image": {
             "type": "string",
             "type": "string",
             "default": "[[File:|200px|right]]"
             "default": "[[File:|200px|center]]"
         },
         },
         "info": {
         "info": {

Revision as of 02:28, 20 March 2025


[[File:|200px|center]]

NPC Name

   Name: 
Campaign:
Alignment:
Appearance:
Voice/Mannerisms:
Ideal:
Flaw:
Bond:
Info:

   Ability Scores: 
Skills:
Condition Immunities:
Damage Immunities: None
Challenge Rating:
Senses:
Languages: Common
Equipment:


Usage

To use this template, copy and paste the following code onto the NPC's page and fill in the appropriate parameters:

{{NPC
| title =
| image =
| name =
| campaign =
| alignment =
| appearance =
| voice_mannerisms =
| ideal =
| flaw =
| bond =
| info =
| ability_scores =
| skills =
| condition_immunities =
| damage_immunities =
| cr =
| senses =
| languages =
| equipment =
}}
  • `title`: The NPC's title or role (e.g., "Mayor," "Captain," "Bandit Leader"). Defaults to "NPC Name".
  • `image`: The NPC's image (e.g., `
    File:Example.jpg
    `). Defaults to a generic placeholder.
  • `name`: The NPC's name. Required.
  • `campaign`: The campaign this NPC is in.
  • `alignment`: The NPC's alignment (e.g., "Lawful Good," "Chaotic Evil").
  • `appearance`: A description of the NPC's physical appearance.
  • `voice_mannerisms`: A description of the NPC's voice and mannerisms.
  • `ideal`: The NPC's ideal or guiding principle.
  • `flaw`: The NPC's flaw or weakness.
  • `bond`: The NPC's bond or connection to something or someone.
  • `info`: A one-sentence summary of the NPC's motivations or interests.
  • `ability_scores`: The NPC's ability scores (e.g., "STR 15, DEX 12, CON 14, INT 10, WIS 8, CHA 16").
  • `skills`: The NPC's skills.
  • `condition_immunities`: The NPC's condition immunities.
  • `damage_immunities`: The NPC's damage immunities. Defaults to "None".
  • `cr`: The NPC's challenge rating.
  • `senses`: The NPC's senses.
  • `languages`: The languages the NPC speaks. Defaults to "Common".
  • `equipment`: The NPC's equipment.


<templatedata> {

   "params": {
       "title": {
           "type": "string",
           "suggested": true,
           "label": "NPC title",
           "example": "Leader of the dwarves",
           "suggestedvalues": [
               "king",
               "duke"
           ],
           "default": "NPC Name"
       },
       "name": {
           "type": "wiki-page-name",
           "required": true
       },
       "campaign": {
           "type": "string",
           "label": "Campaign",
           "description": "The campaign this NPC appears in",
           "required": false
       },
       "alignment": {
           "suggestedvalues": [
               "Lawful Good",
               "Neutral Good",
               "Chaotic Good",
               "Lawful Neutral",
               "Neutral",
               "Chaotic Neutral",
               "Lawful Evil",
               "Neutral Evil",
               "Chaotic Evil"
           ],
           "suggested": true
       },
       "appearance": {},
       "voice_mannerisms": {
           "suggested": true
       },
       "ideal": {
           "type": "string",
           "suggested": true
       },
       "flaw": {
           "type": "string",
           "suggested": true
       },
       "bond": {
           "type": "string",
           "suggested": true
       },
       "image": {
           "type": "string",
           "default": "[[File:|200px|center]]"
       },
       "info": {
           "description": "One sentence highlight about the NPC's interest, motivations, etc",
           "type": "string",
           "suggested": true
       },
       "ability_scores": {
           "type": "string",
           "label": "Ability Scores",
           "description": "The NPC's ability scores (e.g., STR 15, DEX 12, CON 14, INT 10, WIS 8, CHA 16)."
       },
       "skills": {},
       "condition_immunities": {},
       "damage_immunities": {
           "type": "string",
           "suggestedvalues": [
               "Poison"
           ],
           "default": "None"
       },
       "cr": {},
       "senses": {},
       "languages": {
           "suggestedvalues": [
               "Common"
           ],
           "default": "Common"
       },
       "equipment": {}
   },
   "description": "Non Player Character (NPC) information sheet",
   "paramOrder": [
       "title",
       "image",
       "info",
       "name",
       "campaign",
       "alignment",
       "appearance",
       "voice_mannerisms",
       "ideal",
       "flaw",
       "bond",
       "ability_scores",
       "skills",
       "condition_immunities",
       "damage_immunities",
       "cr",
       "senses",
       "languages",
       "equipment"
   ]

} </templatedata>