You are not logged in.

#1 2007-03-15 11:53:51

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

HintBox and WarningBox templates

I have created two new templates for ArchWiki writers. Those are HintBox and WarningBox templates. The usage is simple.

For hint box:

{{HintBox|Your hint text}}
{{WarningBox|Your warning text}}

HintBox and WarningBox create a grey box around the text with yellow and red borders respectively.

If you have suggestions about the style of these boxes, please post them here.

Offline

#2 2007-03-15 12:11:01

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: HintBox and WarningBox templates

I like the boxes, but it seems like the HintBox is somehow wider (on the right side) than the other boxes or the WarningBox.
The yellow border of the HintBox is too agressive, too fat... IMO
Example Page


Haven't been here in a while. Still rocking Arch. smile

Offline

#3 2007-03-15 12:54:40

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: HintBox and WarningBox templates

I have just modifed it. Just now. So, the two boxes should be equal width now. However, one reason for the boxes to be 80% width instead of 100% is to make them stand out.

The underlying markup is as follows:

<div style="border: 1px #F99 solid; background: #EEE; padding: 5px; width: 80%; margin: 15px 0;">{{{1}}}</div>

EDIT:

BTW, I have created the boxes in order to translate the official Instalation Guide. The guide makes extensive (if not excessive) use of such boxes. But I made the boxes look a little bit different and closer to ArchWiki theme.

Last edited by foxbunny (2007-03-15 12:59:50)

Offline

#4 2007-03-15 12:58:31

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: HintBox and WarningBox templates

Thats a lot better now! (You also made the grey of the HintBox background brighter, didn't you? Looks good!)
Nice work foxbunny!

edit: I just saw you changed it to the same brightness level of the other boxes, I think they could be as dark as before but I don't mind.

Last edited by Sigi (2007-03-15 13:01:09)


Haven't been here in a while. Still rocking Arch. smile

Offline

#5 2007-03-15 13:02:18

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: HintBox and WarningBox templates

Thanks. But be warned. There is a bug. I don't think it's the template, but probably the wiki software itself.

Look at one of the pages. Instead of the actual content of the box, the variable holder ("{{{1}}}") is displayed. If anyone finds out why this is happening, or better yet, a way around this, please tell us.

Offline

#6 2007-03-15 13:39:01

foxbunny
Member
From: Serbia
Registered: 2006-10-31
Posts: 759
Website

Re: HintBox and WarningBox templates

Sigi wrote:

edit: I just saw you changed it to the same brightness level of the other boxes, I think they could be as dark as before but I don't mind.

You are right. I changed it back to what it was. tongue

Offline

Board footer

Powered by FluxBB