Forum:New Infobox

Hello,

for my Wiki ( http://thethreekingdoms.wikia.com ) I would like to have two new infoboxes. One that will be used for character articles and one that will be used for battle articles. I would like them to look like these:

Character:

http://en.wikipedia.org/wiki/Sima_Yi

Battle:

http://en.wikipedia.org/wiki/Battle_of_Xiapi

Can someone explain to me how I can do this? I'm especially interested in those titlebars/headers and the columns you see in the battle box.

-- Zantam03 19:36, February 28, 2010 (UTC)


 * Check the page code for the used infoboxe templates (Their names typically begin with {{Infobox ***...) by starting to edit the pages and put the template names into a wikipedia url to call up the according template (en.wikipedia.org/wiki/Template:***) and now you will be able to look at the actual used source code for the infoboxes.


 * In these cases, the according template for the Character is here while the Battle Template is here. From what I see, these templates are also specifically designed to ignore any unused lines of information, just as a note.


 *  ( C rynsos {{sup| Talk }} 14:18, March 1, 2010 (UTC)

Ok, but what about the headers you see in the infoboxes? I don't see them in the source, yet I would like to add/remove/edit them... -- Zantam03 11:30, March 2, 2010 (UTC)


 * If you talk about the headers like the "King of Wei", "Names", etc as shown on the Character infobox, they are created by this code.

!style="background-color:#EDEDED; font-size:115%" colspan="2"|Names


 * Of course you don't need to use all of that code (like the font size increase), but at the very least the below noted code is required to build such a header, the rest is just styling. This header only works within a table, one of which is started right at the top of the template, the "X" tells the header how many columns the whole table has.


 * colspan="X" | Header


 *  ( C rynsos {{sup| Talk }} 12:43, March 2, 2010 (UTC)

ok thank you. I'll try it out later -- Zantam03 12:44, March 2, 2010 (UTC)