Template:NPC: Difference between revisions
Template page
More actions
m Reverted edit by Zetiar (talk) to last revision by Aurelianus Tag: Rollback |
|||
| (10 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="hw- | <div class="hw-record-banner hw-record-banner--npc"> | ||
<div class="hw-record-code">PERSONNEL RECORD</div> | |||
<div class="hw-record-name">{{{name|{{PAGENAME}}}}}</div> | |||
<div class="hw-record-summary">Known location: {{{location|Unknown}}}</div> | |||
</div> | </div> | ||
<div class="hw-infobox hw-npc-infobox"> | <div class="hw-infobox hw-npc-infobox"> | ||
<div class="hw-infobox-title">{{{name|{{PAGENAME}}}}}</div> | |||
<div class="hw-infobox-image" role="group" aria-label="Image for {{{name|{{PAGENAME}}}}}"> | |||
{{{image|<div class="hw-infobox-image-empty">No Picture Uploaded</div>}}} | |||
</div> | |||
<div class="hw-infobox-heading">Profile</div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Location</div><div class="hw-infobox-value">{{{location|Unknown}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Quests</div><div class="hw-infobox-value">{{{number of quests|0}}}</div></div> | |||
<div class="hw-infobox-row"><div class="hw-infobox-label">Follow-up Quests</div><div class="hw-infobox-value">{{{follow up quests|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> | |||
{{{overview|}}} | |||
<div class="hw-npc-section-clear"></div> | |||
== Quests == | |||
{{{quests|<p class="hw-npc-content-empty">No quests documented.</p>}}} | |||
== Dialogue == | |||
{{{dialogues|<p class="hw-npc-content-empty">No dialogue documented.</p>}}} | |||
</includeonly><noinclude> | |||
This template displays an NPC profile, an optional Overview that flows beside the infobox, and standard collapsible Quest and Dialogue sections. The <code>quests</code> and <code>dialogues</code> fields accept any number of stacked quest or dialogue templates. | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{NPC | {{NPC | ||
| | | name = Rowan | ||
| | | image = [[File:Rowan.png|frameless|600px]] | ||
| | | location = [[Mainland]] | ||
| | | number of quests = 2 | ||
| | | follow up quests = Yes | ||
| Dialogue = | | 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}} | |||
}} | }} | ||
</pre> | </pre> | ||
Use <code>number of quests = 0</code> and leave the content fields empty when none are documented. | |||
Set <code>| image = [[File:Example.png|frameless|600px]]</code> to display an uploaded file in the infobox. Leave it empty to show “No Picture Uploaded”. | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 01:44, 23 August 2026
This template displays an NPC profile, an optional Overview that flows beside the infobox, and standard collapsible 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”.