Template:Infobox MP-NPC: Difference between revisions

From Lotro-Wiki.com
Jump to navigation Jump to search
m (forcing some upper case (especially for creep/freep))
(use same image behaviour as in {{creature}})
Line 1: Line 1:
__NOTOC__
__NOTOC__ <includeonly>{{#ifexist: File:{{#if: {{{image|}}}
    | {{{image|}}}
    | {{{name|}}}
    }}.jpg
  | <!-- do nothing -->
  | {{Stub/Image}}
}}</includeonly>
{| class="altRowsMP" style="margin: 0 0 0.5em 1em; border:1px solid silver; float:right; text-align:left; font-size:90%;" cellpadding="5"
{| class="altRowsMP" style="margin: 0 0 0.5em 1em; border:1px solid silver; float:right; text-align:left; font-size:90%;" cellpadding="5"
! colspan="2" style="font-size:110%; text-align:left; padding: 10px" | {{#switch: {{{faction|}}}
! colspan="2" style="font-size:110%; text-align:left; padding: 10px" | {{#switch: {{{faction|}}}
Line 7: Line 13:
}} {{{name|{{s<includeonly></includeonly>ubst:PAGENAME}}}}}
}} {{{name|{{s<includeonly></includeonly>ubst:PAGENAME}}}}}
|-
|-
| colspan="2" align="center" | {{{image|[[File:{{s<includeonly></includeonly>ubst:PAGENAME}}.jpg{{!}}150px]]}}}
| colspan="2" align="center" | [[Image: {{#if: {{{image|}}} | {{{image|}}} | {{{name|}}} }}.jpg |150px]]
|- valign="top"
|- valign="top"
{{ #if: {{{faction|}}} | {{!}}{{!}} Faction
{{ #if: {{{faction|}}} | {{!}}{{!}} Faction
Line 55: Line 61:
{{Infobox MP-NPC
{{Infobox MP-NPC
  | name        = {{subst:PAGENAME}}
  | name        = {{subst:PAGENAME}}
  | image        = [[File:{{subst:PAGENAME}}.jpg|150px]]
  | image        =  
  | faction      =  
  | faction      =  
  | location    =  
  | location    =  
Line 84: Line 90:
;faction : which faction this NPC belongs to as in <tt>freep</tt> or <tt>creep</tt>
;faction : which faction this NPC belongs to as in <tt>freep</tt> or <tt>creep</tt>
;factionicon : an optional override for faction's icon in case a different icon is needed -- leave blank for most uses.
;factionicon : an optional override for faction's icon in case a different icon is needed -- leave blank for most uses.
;image : Optional, defaults to (<code><nowiki>{{subst:PAGENAME}}.png</nowiki></code>), 150 pixels wide. Do '''not''' use an empty value for this parameter. Try to get an as clear as possible shot of the NPC. See also the image use policy. You will need to manually specify the size of the image. The default and recommended width is 150px.  
;image : Optional, defaults to (<code><nowiki>{{{name|}}}</nowiki></code>), 150 pixels wide. Try to get an as clear as possible shot of the NPC. See also the image use policy.
;location : place name and map eg <nowiki>[[Ettenmoors]], [[Gramsfoot]]</nowiki>
;location : place name and map eg <nowiki>[[Ettenmoors]], [[Gramsfoot]]</nowiki>
;mapref : as given by ;loc  Use the <nowiki> {{Tooltip Coords}}</nowiki> template as in: <nowiki>{{Tooltip Coords|Ettenmoors|12.1S|21.5W}}</nowiki>
;mapref : as given by ;loc  Use the <nowiki> {{Tooltip Coords}}</nowiki> template as in: <nowiki>{{Tooltip Coords|Ettenmoors|12.1S|21.5W}}</nowiki>
Line 103: Line 109:
{{Infobox MP-NPC
{{Infobox MP-NPC
  | name        = {{subst:PAGENAME}}
  | name        = {{subst:PAGENAME}}
  | image        = [[File:{{subst:PAGENAME}}.jpg|150px]]
  | image        =  
  | faction      = creep
  | faction      = creep
  | factionicon  =  
  | factionicon  =  

Revision as of 07:19, 2 July 2011

{{subst:PAGENAME}}
File:.jpg

Description

Sells

Vendor Title:

Quests

Quests started

Involved in quests

Quotes


Usage

{{Infobox MP-NPC
 | name         = {{subst:PAGENAME}}
 | image        = 
 | faction      = 
 | location     = 
 | mapref       = 
 | race         = 
 | type         = 
 | creaturetype = 
 | level        = 
 | morale       = 
 | power        = 
}}
== Description ==

== Sells ==
Vendor Title:

== Quests ==
===Quests started===

=== Involved in quests ===

== Quotes ==

Parameters

name
Optional, defaults to ({{subst:PAGENAME}}). Do not use an empty value for this parameter.
faction
which faction this NPC belongs to as in freep or creep
factionicon
an optional override for faction's icon in case a different icon is needed -- leave blank for most uses.
image
Optional, defaults to ({{{name|}}}), 150 pixels wide. Try to get an as clear as possible shot of the NPC. See also the image use policy.
location
place name and map eg [[Ettenmoors]], [[Gramsfoot]]
mapref
as given by ;loc Use the {{Tooltip Coords}} template as in: {{Tooltip Coords|Ettenmoors|12.1S|21.5W}}
race
Man/Elf/Dwarf/Human/Orc/Uruk/Spider/Warg/Troll. could also be Eagle etc
type
Quest/Vendor/Trader/Corruption Trader or leave blank
creaturetype
Normal/Signature/Elite/Master Elite/Defender etc... or leave blank.
level
The level(s) of this NPC if any.
morale
The morale this NPC has.
power
The power this NPC has.
Description
brief description or remove
Sells
brief description eg lvl 10 swords (remove if not vendor). Place under vendor title.
Vendor title
title (remove if not vendor)
Quests started/involved in
guess!
Quotes
include verbal, chat & floating text

Example

{{Infobox MP-NPC
 | name         = {{subst:PAGENAME}}
 | image        = 
 | faction      = creep
 | factionicon  = 
 | location     = [[Gramsfoot]], [[Ettenmoors]]
 | mapref       = {{Tooltip Coords | Ettenmoors | 12.2S | 20.9W}}
 | race         = Uruk
 | type         = Quest
 | creaturetype = Arch-nemesis
 | level        = 53
 | morale       = 147,552
 | power        = 22,894
}}