User:Alfwyn/Sandox/Template:Character infobox

From Guild Wars Wiki
Jump to navigationJump to search

Alfwyn/Sandox/Template:Character infobox



Introduction[edit]

  • While I made this template I found it very hard to create a template that satisfies every user. Since characters are very personal I don't think this is possible. I tried my best. The result is that this template is not as easy to use as my other templates - but still if you read the following paragraphs it should be no problem.
  • If you think something in this template is missing discuss it on the talk page
  • Unlike other infoboxes you are not forced to use this template in any way. You can use it on your userpage if you like to but if you don't want to use it then just don't :D
  • Please note that this template contains some parameters that change very often (like your xp). Please don't change those parameters too often! If you update your xp every 100.000XP that is totally fine! Also you don't have to update your titles on every single change.

Parameters[edit]

float
Optional. If you want the box to appear just exactly where you put the template just leave this empty. If you want to force the box to appear on the left or right side of the screen so that you can write information next to it (like other infoboxes) use left or right here. If you want to force the box to be centered in the middle of the screen use center
name
The name of your character
image_show
Optional. If you fill this with any value, the character image isn't going to be shown. Leave this empty (default) for the image to be shown.
image
Optional. Optional name of the character's image. Not needed in almost every case. Attention: This parameter changed with the new style! You don't have to pass the whole [[Image:Whatsoever.jpg|150px]] tag. Instead, if this parameter contains "foo" the location of your image would be "Image:Yourwikiname Foo.jpg". I made this change because it's much simpler AND it secures that people use the correct image location for their personal images! Please alter your existing pages!
image_ext
Optional. You can choose your character-image-extension here. Default is "jpg". Please pass the extension WITHOUT the prefixed dot, so for example "png" not ".png"
image_size
Optional. The width of your character image in pixel (height is adjusted automatically). Default is 150.
prof
Optional. Profession of your character (n, mo, ...)
guild
Optional. The Name of your guild (without the guild-tag)
gender
Optional. f or m depending on whether your character is male or female
quote
Optional. A short(!) quote your character might would say that describes his/her persona. You should keep this short since your box will get very wide if it's too long
born
Optional. Birthplace of your character. So Tyria, Elona or Cantha
age
Obsolete. Age of your character in months. You can look this up ingame by typing /age into the chat. This parameter is obsolete! Please use created instead!
created
Optional. This parameters is an updated version of "age". It allows the template to automatically calculate how long your character have existed so you don't have to update it. Just pass the date of your characters creation to this parameter in this format: yyyymmdd. So if your character was created on August 29, 2007 you would pass 20070829 to this parameter. That's it. The template will calculate your characters age from now on.
created_show
Optional. If you fill this with any value the date your character created is not shown below the time of existence. If you leave this empty the creation date of your character is shown.
level
Optional. Level of your character
xp
Optional. XP your character has acquired yet
armor
Optional. If you wear the same armor on your whole body use this parameter, otherwise leave it empty. Just write the name of your armor in here. To look the name up visit this page, choose your profession and your armor and copy the complete armor name (example: Necromancer Elite Kurzick armor)
armor_head, armor_chest, armor_arms, armor_legs, armor_feet
Optional. Work just like the armor-parameter, but you can use these 5 parameters if you wear different types of armor on your body. If you don't use the armor parameter and leave this 5 empty.
weapon
Optional. You can specify the weapon you are wearing. Please specify just one (your most important) weapon. If it is a green item please write [[Weapon Name]] to link to the weapon's page and add (Unique) behind the name. If you are wielding a shield or focus with your weapon you can write that down, but you should separate weapon and off-hand item via <br />. If you are a little confused please take a look at the examples on the bottom of this page
titles
Optional. Your titles. It uses the Template:Title list to show your obtained titles. You do not have to pass the whole template-code to this parameter, you just pass the titles separated by {{pipe}}. A list of all possible parameters can be seen on the template page. Take a look at this list and then on the examples below and you will understand how to use this parameter
build1..5
You have the possibility to show your characters' builds here. Just write down the name of the skills in your build separated by {{pipe}}. See example below for better understanding.
builds_size
Can be small, medium, large, xlarge and determines the size of the skill-icons of your builds
mini1..15
You can show your characters miniatures here. Just write down the name of a miniature here. See example below. Please note that you have to start with mini1 and go on with mini2, mini3 and so on ... . Also note that the image "Miniature Miniaturename.png" (for example "Miniature Gwen.png") has to exist, otherwise it will not work. If you encounter any non-existing miniature image, please upload one!
mini_size
Determines the size of the shown miniature-icons. Can contain the same values as builds_size
todo
A ToDo-List. Write down your first point and then start every new point with a newline and and *. See example below for better understanding.

Examples[edit]

I just list some examples here so you understand how this works. I won't show the results of those examples here but if you need to know just copy them into the Sandbox. All examples are fictional. First a simple one:

{{Character infobox
| name = My Cool Character
| prof = w
| gender = m
| quote = Fight at my side, and together we shall be victorious!
| born = Tyria
| level = 20
| xp = 1.500.000
| armor = Warrior Elite Platemail armor
| weapon = Sundering Fellblade of Fortitude
| titles = TyrianCartographer = 100
| build1 = "Watch Yourself!" {{pipe}} Sever Artery {{pipe}} Resurrection Signet
| builds_size = large
| todo = Gain Olias
* Defeat Mallyx
* Get a new haircut
}}

Next, let's use the other armor parameters and get more complicated on the weapon. We also use the "created" parameter now.

{{Character infobox
| name = My Cool Character
| prof = w
| gender = m
| quote = Fight at my side, and together we shall be victorious!
| born = Tyria
| created = 20050529
| level = 20
| xp = 1.500.000
| armor_head = Warrior Elite Platemail armor
| armor_chest = Warrior Elite Platemail armor
| armor_arms = Warrior Elite Platemail armor
| armor_legs = Warrior Elite Kurzick armor
| armor_feet = Warrior Elite Kurzick armor
| weapon = [[Mallyx's Edge]] (Unique)<br />[[Victo's Bulwark]] (Unique)
| titles = TyrianCartographer = 100
| build1 = "Watch Yourself!" {{pipe}} Sever Artery {{pipe}} Resurrection Signet
| builds_size = large
| todo = Gain Olias
* Defeat Mallyx
* Get a new haircut
}}

Finally let's expand the titles, force the box to be centered and add all the other nice parameters. Also we disable the picture so we don't need any of the other image-parameters except for "image_show" (why define a image name for an image that isn't shown?):

{{Character infobox
| float = center
| name = My Cool Character
| image_show = no
| prof = w
| guild = Guildwiki Previewguild
| gender = m
| quote = Fight at my side, and together we shall be victorious!
| born = Tyria
| created = 20050529
| level = 20
| xp = 1.500.000
| armor_head = Warrior Elite Platemail armor
| armor_chest = Warrior Elite Platemail armor
| armor_arms = Warrior Elite Platemail armor
| armor_legs = Warrior Elite Kurzick armor
| armor_feet = Warrior Elite Kurzick armor
| weapon = [[Mallyx's Edge]] (Unique)<br />[[Victo's Bulwark]] (Unique)
| titles = TyrianCartographer = 100 {{pipe}} Drunkard = 1000 {{pipe}} CanthanCartographer = 100 {{pipe}} Lightbringer = 32000
| build1 = "Watch Yourself!" {{pipe}} Sever Artery {{pipe}} Resurrection Signet
| build2 = "Charge!" {{pipe}} Counter Blow {{pipe}} Healing Signet {{pipe}} Resurrection Signet 
| builds_size = large
| mini1 = Jade Armor
| mini2 = Shiro Tagachi
| mini3 = Gwen
| mini4 = Aatxe
| mini5 = Bone Dragon
| mini6 = Wind Rider
| mini7 = Varesh
| mini8 = Lich
| mini_size = large
| todo = Gain Olias
* Defeat Mallyx
* Get a new haircut
}}

And finally let's see this last example in action so you know how your box might look like:

My Cool Character
"Fight at my side, and together we shall be victorious!"

Gender Male.png Male
Born in Tyria
Age 18 year(s),10 month(s)
Created: 29 May, 2005
Profession Warrior Warrior
Level 20 1.500.000 XP
Guild Guildwiki Previewguild
Armor Head: Warrior Elite Platemail armor
Chest: Warrior Elite Platemail armor
Arms: Warrior Elite Platemail armor
Legs: Warrior Elite Kurzick armor
Feet: Warrior Elite Kurzick armor
Weapon Mallyx's Edge (Unique)
Victo's Bulwark (Unique)
Titles Drunkard = 1000 | CanthanCartographer = 100 | Lightbringer = 32000
Miniatures Jade Armor Shiro Tagachi Gwen Aatxe Bone Dragon
Wind Rider Varesh Lich
Todo-List
  • Gain Olias
  • Defeat Mallyx
  • Get a new haircut