Forum:I need help with creating infoboxes

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
Forums: Index Help desk I need help with creating infoboxes

Hi, I'm creating my own wiki and I need to know how to create infoboxes and all the templates I try to use don't work for me and I want to edit parts of them and it won't let me, so I was hoping some one could help me —Preceding unsigned comment added by Blakem15192 (talkcontribs)

If you don't like the name I gave you, sign your comments in the future. Thank you.

Now, for your answer, all I gotta say is that that information quite classified, per the Pinkerton investigations in Project Blue Book in the 1960's, which revealed that Britney Spears in fact was NOT a virgin when she married Justin Timberlake, among many other revelations. So, with that knowledge, I can't help you, and I'm pretty sure that if you keep asking questions like this, you're going to get dragged down into the dungeons of Rikeminrakem, a plosive-heavy code name for either a hopeless town in southern Croatia, or an actual name for the deserted Mayan settlement where frozen custard was first invented. Before that, of course, unfrozen custard was invented by accident when Stravinsky was trying to discover a vaccine for polio. All that having been said, try again next year, kid. Tough luck indeed. 13375poolR (talk) 20:10, 8 April 2009 (UTC)

Don't be the guy everyone hates, 13375poolR.

To answer the original question: Could you give an example of what you're trying to do? I've done some infoboxes before over at the Banjo-Kazooie Wiki, so I can help you out. You can post on my talk page if you want. Toomai Glittershine The Table Designer 21:16, 8 April 2009 (UTC)

The infobox i want to make is for my characters for my wiki, Super Stick Bros. and I want it to have obviously there name, a caption, some details like their age, homeworld and stuff but all the templates i've tried don't have the right info in them and i don't know how to change templates or create my own. Blakem15192 (talk) 23:21, 8 April 2009 (UTC)

Okay then. The basic syntax of an infobox's construction is this:

{|class="infobox" style="float:right; width:250px" cellpadding="3"
! colspan="2" style="font-size:110%; text-align:center" | {{{name}}}
{{#if:{{{image<includeonly>|</includeonly>}}} |
{{!}} colspan="2" style="text-align:center" {{!}}{{{image}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
{{#if:{{{universe<includeonly>|</includeonly>}}} |
{{!}} {{!}}'''[[Universe]]'''

If you want to made a simple infobox with no trimmings, this is a good start. The way it currently is, it'll produce this:

Universe {{{universe}}}

The names in the triple-curly brackets will be replaced with whatever's entered when the template is used. In this case, to use the template, you would type in this:

{{Template:Infobox Demo

...and the infobox would put "Demo" instead of {{{name}}}, and so on.

Of course, you'll probably wan to add in other attributes. In that case, simply copy and paste the block that looks like this:

{{#if:{{{thing<includeonly>|</includeonly>}}} |
{{!}} {{!}}'''Thing'''

...and change the three "Thing"s into what you want the new attribute to be called. (Make sure each block like this comes before the final "|}". And capitalization is important; you should try to keep the capitalization as it is.)

In case you're wondering, the tons of braces and the "#if" tell the infobox that, if someone doesn't fill in a part of the infobox, it won't be displayed.

I hope all that helps. If it doesn't, then I could produce the infobox you want for you. I'd like you to try it yourself in a sandbox somewhere first, though. Twiddle with the numbers, try stuff out. It's hard to know what a infobox will look like "in use" unless you actually use it in another page, but in a new wiki I wouldn't think anyone would mind if they saw something under construction. Practice makes perfect as they say. Toomai Glittershine The Stats Guy 00:29, 9 April 2009 (UTC)

Thank you so much, i think i understand it so i'll muck around with it and see how i go but if it isn't working it would be awesome if you helped. By the way do you have msn it would make this a little easier. Blakem15192 (talk) 00:46, 9 April 2009 (UTC)

Here is what I've got so far How do I add colours to the infobox and how do I change the coding from and how do I add a caption underneath the picture.