Template:NPC: Difference between revisions
Template page
More actions
Aurelianus (talk | contribs) Correct NPC image parameter example |
Aurelianus (talk | contribs) Add optional overview slot before embedded quests and dialogue |
||
| Line 16: | Line 16: | ||
<div class="hw-infobox-row"><div class="hw-infobox-label">Dialogue</div><div class="hw-infobox-value">{{{has dialogue|{{{dialogue|Unknown}}}}}}</div></div> | <div class="hw-infobox-row"><div class="hw-infobox-label">Dialogue</div><div class="hw-infobox-value">{{{has dialogue|{{{dialogue|Unknown}}}}}}</div></div> | ||
</div> | </div> | ||
{{{overview|}}} | |||
<div class="hw-npc-embedded-content"> | <div class="hw-npc-embedded-content"> | ||
<div class="hw-npc-content-section hw-npc-content-section--quests" aria-label="Quests offered by {{{name|{{PAGENAME}}}}}"> | <div class="hw-npc-content-section hw-npc-content-section--quests" aria-label="Quests offered by {{{name|{{PAGENAME}}}}}"> | ||
| Line 29: | Line 30: | ||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This template displays an NPC profile | This template displays an NPC profile, an optional Overview that flows beside the infobox, and embedded Quest and Dialogue sections. The <code>quests</code> and <code>dialogues</code> fields accept any number of stacked quest or dialogue templates. | ||
== Usage == | == Usage == | ||
| Line 40: | Line 41: | ||
| follow up quests = Yes | | follow up quests = Yes | ||
| has dialogue = Yes | | has dialogue = Yes | ||
| overview = | |||
== Overview == | |||
Write the NPC overview here. It will flow beside the infobox. | |||
| quests = | | quests = | ||
{{Quest | {{Quest | ||
Revision as of 09:56, 29 July 2026
This template displays an NPC profile, an optional Overview that flows beside the infobox, and embedded Quest and Dialogue sections. The quests and dialogues fields accept any number of stacked quest or dialogue templates.
Usage
{{NPC
| name = Rowan
| image = [[File:Rowan.png|frameless|600px]]
| location = [[Mainland]]
| number of quests = 2
| follow up quests = Yes
| has dialogue = Yes
| overview =
== Overview ==
Write the NPC overview here. It will flow beside the infobox.
| quests =
{{Quest
| name = First Quest
| giver = [[Rowan]]
}}
{{Quest
| name = Second Quest
| giver = [[Rowan]]
}}
| dialogues =
{{Dialogue start|title=Introduction}}
:'''[[Rowan]]:''' Welcome.
{{Dialogue end}}
}}
Use number of quests = 0 and leave the content fields empty when none are documented.
Set | image = File:Example.png to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”.