Graphical help

Jump to navigation Jump to search

Graphical help

You're the person responsible for the nice WIGO headers we have, right? Can you give me a little help with that kind of thing for here?

I want to make a page that can be safely transcluded but functions perfectly well on it's own, as a WIGO in reverse. I suspect, however, that there's a better way to do that than what I've done.

Also, how do you do the colouring thing that's in the WIGO titles?

Peter Urist for Mod!02:07, 30 December 2011

The WIGO titles are in the common.css file, rather than in the pages as they were originally so if you look at MediaWiki:common.css you should be able to find the styles. They can still be done using divs and styles if you use the __NOTITLE__ magic command to remove the actual header and replace it with one of your own. Just play with some CSS (try searching www.w3schools.com - I do recommend learning it, it's not as hard as you might think), you might not want to replicate the WIGO pages exactly but come up with something else - this, for instance, is a mocked-up potential replacement for the WIGO headers that has some interesting things in you might want to look at.

As for the transclusions, it's probably best to use "onlyinclude" instead so it transcludes what you want (say, the most recent month) rather than playing around telling it to remove half a dozen other pieces.

Scarlet A.pngmoral02:21, 30 December 2011

Mostly I'm off to bed now and might not be able to provide any direct work for a few days, but if you want me to have a stab at something myself, just ask.

Scarlet A.pngsshole02:31, 30 December 2011

Thanks for that. I wholesale copied your gravelbox for a moment, but I've since mutated it almost beyond recognition to avoid prosecution. Is there a better way to move a line to the right/left than repeated nbsp's?

I need to get back to learning CSS there. I wonder where I got up to...?

Peter Urist for Mod!(MW)10:15, 31 December 2011

float:right etc.

-- Nx / talk11:47, 31 December 2011

Float is witchcraft. Does anyone actually understand how it works?

Scarlet A.pngmoral11:58, 31 December 2011

It shoves stuff to the right or left.

It's about the only decent way you can make a layout that doesn't let horizontal space go to waste, but can rearrange itself on smaller screens properly.

-- Nx / talk12:03, 31 December 2011

I think most of the quirks I've seem come from not using it properly. This clears it up pretty well.

Scarlet A.pngd hominem12:15, 31 December 2011