Template:NPC infobox: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{page warning|message=This template is in draft.}}</noinclude><templatestyles src="NPC infobox/styles.css" />
<noinclude>{{page warning|message=This template is in draft.}}</noinclude><includeonly><templatestyles src="NPC infobox/styles.css" />
<div class="infobox">
<div class="infobox">
<p class="heading">{{{name}}}</p>
<p class="heading">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</p>
<div class="wrapper">
<div class="wrapper">
<p class="image_wrapper">[[File:{{{image}}}|200px|center]]</p>
<p class="image_wrapper">[[File:{{{image}}}|200px|center]]</p>
;Race
;Race
:{{{race}}}
:{{{race}}}
{{#if:{{{level|}}}|
;Level
:{{{level}}}}}
{{#if:{{{boss|}}}|
;Rank
:Boss}}
</div>
</div>
;{{{location-text1}}}
{{#if: {{{gallery1|}}} |
:{{{location1}}}
{{{!}} style="width:100%"
;{{{location-text2}}}
{{!}} '''Image(s)'''
:{{{location2}}}
{{!}}- style="text-align:center;"
;{{{location-text3}}}
{{!}}
:{{{location3}}}
{{#if:{{{gallery1|}}}|[[File:{{{gallery1}}}|200px]]
</div>
<p style="font-size:.9em;">{{{gallery-text1|Click to enlarge.}}}</p>}}{{#if:{{{gallery2|}}}|[[File:{{{gallery2}}}|200px]]
 
<p style="font-size:.9em;">{{{gallery-text2|Click to enlarge.}}}</p>}}{{#if:{{{gallery3|}}}|[[File:{{{gallery3}}}|200px]]
<noinclude>
<p style="font-size:.9em;">{{{gallery-text3|Click to enlarge.}}}</p>}}{{#if:{{{gallery4|}}}|[[File:{{{gallery4}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text4|Click to enlarge.}}}</p>}}{{#if:{{{gallery5|}}}|[[File:{{{gallery5}}}|200px]]
<p style="font-size:.9em;">{{{gallery-text5|Click to enlarge.}}}</p>}}
{{!}}}
| {{clear}} }}
</div></includeonly><noinclude>
== Description ==
== Description ==
This is the '''{{PAGENAME}}''' template.
This is the '''{{PAGENAME}}''' template.
Line 25: Line 36:
|race=
|race=
|level=
|level=
|location1...location5=
|gallery1...gallery5=
|location-text1...location-text5=
|gallery-text1...gallery-text5=
}}
}}
</pre>
</pre>
== Parameters ==
; name : Optional. Only include if the name of the NPC differs from the article name. Defaults to the name of the article: <code><nowiki>{{PAGENAME}}</nowiki></code>
; image : Required. Image of the NPC.
; race : Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list.
; level : Optional. The level or levels of the NPC.
; boss : Optional. Yes/no if NPC is a boss monster.
; gallery1...gallery5 : Optional. Images related to the NPC.
; gallery-text1...gallery-text5 : Optional. Image description.
== Example ==
== Example ==
{{NPC infobox
{{NPC infobox
Line 34: Line 54:
|image=Boss-labark.png
|image=Boss-labark.png
|race=Wolf
|race=Wolf
|level=61<sup>?</sup>
|level=31
|location1=PVP
|boss=yes
|location-text1=Level 61
|gallery1=Depthless_Orifice-labark.png
|location2=PVP
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
|location-text2=Level 61
|location3=PVP
|location-text3=Level 61
}}
}}
<pre>
<pre>
Line 47: Line 64:
|image=Boss-labark.png
|image=Boss-labark.png
|race=Wolf
|race=Wolf
|level=61<sup>?</sup>
|level=31
|location1=PVP
|boss=yes
|location-text1=Level 61
|gallery1=Depthless_Orifice-labark.png
|location2=PVP
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
|location-text2=Level 61
|location3=PVP
|location-text3=Level 61
}}
}}
</pre>
</pre>

Revision as of 04:42, 27 June 2024

Warning:
This template is in draft.

Description

This is the NPC infobox template. It should be transcluded in the following format:

{{NPC infobox
|name=
|image=
|race=
|level=
|gallery1...gallery5=
|gallery-text1...gallery-text5=
}}

Parameters

name
Optional. Only include if the name of the NPC differs from the article name. Defaults to the name of the article: {{PAGENAME}}
image
Required. Image of the NPC.
race
Required. The race of the NPC. Race here should be capitalized. If this NPC could be multiple races, either list them all, comma-separated, or use "Various" instead of a huge list.
level
Optional. The level or levels of the NPC.
boss
Optional. Yes/no if NPC is a boss monster.
gallery1...gallery5
Optional. Images related to the NPC.
gallery-text1...gallery-text5
Optional. Image description.

Example

Page Template:NPC infobox/styles.css has no content.

La Bark

Race
Wolf
Level
31
Rank
Boss
Image(s)

Location in Depthless Orifice (all-PVP zone)

{{NPC infobox
|name=La Bark
|image=Boss-labark.png
|race=Wolf
|level=31
|boss=yes
|gallery1=Depthless_Orifice-labark.png
|gallery-text1=Location in Depthless Orifice (all-PVP zone)
}}