Template:Minichar
From NexusWiki
|- style="background:#FFFFFF;"
||
|style="text-align:right;"|1
|style="width:24px; text-align:center;"|?
||{{{name}}}
||
[edit] Documentation
This is a set of templates based on code originally used by Odette. It gives a rough overview of a person's characters, much shorter than that given by the UberCharacter template.
[edit] That's nice. How do you use it?
Have an example.
{|{{minichar/h}}
{{minichar|cl=Myrmidon|l=14|g=boy|name=Hinoa|id=25833
|faction=[http://www.nexuswar.com/factions/view.do?factionID=2465 Uncyclopedian Forces]|bg=#DDD}}
{{minichar|cl=Shepherd|l=14|g=girl|name=Karin|id=108630|faction=[[Doctors Without Borders]]}}
{{minichar|cl=Pariah|l=17|name="Fausty"|id=108634|bg=#DDD}}
|}
renders as this:
| 14 | Hinoa | Uncyclopedian Forces | ||
| 14 | Karin | Doctors Without Borders | ||
| 17 | ? | "Fausty" |
[edit] What do all those parameters mean?
Take a look.
cl: The character's current class. Make sure to capitalize (ie. "Myrmidon" rather than "myrmidon").l: The character's current level.g: The character's gender. It can be eitherboyorgirl. If this is left out, a big question mark will be shown.name: Your character's name.id: Your character's ID number in-game.faction: A link to your character's faction. It can be to the in-game page (like Hinoa above), to the wiki page (like Karin above), or can even be left blank (like Fausty above).bg: The background color of the table's row. Defaults to white. You can use this to make alternating rows different colors. Accepts hex values as well as HTML color names.
[edit] Okay, so what's the deal with that other template you use?
That's so we can make this template work with as many characters as you want. If you keep repeating templates as long as they're before the final |} bit, you can have as many (or as few) characters in this list as you want. Unfortunately, that's the only way I know of for that to happen, so apologies for how complex the template looks.
