Template talk:NPC infobox

From Project: Gorgon Wiki
Jump to: navigation, search

Categories

How about automatically adding categories for Zone, Beast Speak, Vendor, and Skill Trainer? I don't think there's a downside, just saves editors a few seconds. --Extractum11 (talk) 22:04, 18 January 2016 (CST)

Errors

{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#44a6d8;color:#ffffff;" | {{{name|{{PAGENAME}}}}}
|-
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.jpg{{pipe}}250px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div> 
|- valign="top"
! style="background:#eee; width:100px;" align="center" | Zone:
| {{{zone|-}}}
|-
! style="background:#eee; width:100px;"  align="center" | Location:
| {{{location|-}}}
|-
{{ #if:{{{beastspeak|}}} |
{{pipe}}-
! style="background:#f4e6d4; width:100px;"  align="center" {{pipe}} Beast Speak:
{{pipe}} {{{beastspeak}}}
}}
{{ #if:{{{skilltrainer|}}} |
{{pipe}}-
! style="background:#f5e0c7; width:100px;"  align="center" {{pipe}} Skill Trainer:
{{pipe}} {{{skilltrainer}}}
}}
{{ #if:{{{vendor|}}} |
{{pipe}}-
! style="background:#f2cda0; width:250px;" colspan="2" align="center" {{pipe}} Vendor
{{pipe}}
}}
|}

So, there are two errors I notices when applying the infobox to pages.

  • When the vendor tag is applied it creates a small white space, a gap between the border and the labels, on the right side of the box
  • When beastspeech is the only category applied it takes up several lines of space

I am not sure why the beastspeech problem is happening, it is a litteral copy/paste of the skilltrainer function's lines and it works just fine. The only thing diffrent is that it has 'beastspeech' instead of 'skilltrainer' and that it is applied/considered first(atleast I'm fairly certain the wikimedia/html is read top-to-bottom) with skilltrainer directly after it. I pasted the infobox code above, for it to be seen easily. If anyone can comment on how to fix the problems it would be appreciated. Note: I'm no expert in wikimedia, and am learning by reading the wikimedia help pages and the source of other pages made on the wiki. So if the problem is obvious sorry! Fury (talk) 00:04, 26 October 2015 (CDT)