Template talk:Subpages7

From Citizendium
Revision as of 23:20, 9 July 2007 by imported>Chris Day (→‎Active tabs)
Jump to navigation Jump to search

Colors

Fixed to gray, wiki doesn't like #xxx shorthand. User:Robert W King|Robert W King]] 16:16, 9 July 2007 (CDT)

Strange it does not like the shorthand, it works fine in my browser (here we go again!) Chris Day (talk) 16:29, 9 July 2007 (CDT)
Also, what I couldn't figure out is how to change the background color of the tab if that particular subpage doesn't exist, and disable the wikilink.--Robert W King 16:19, 9 July 2007 (CDT)
If you use the code used in the other subpages the text will disappear. That might be enough. Will think about if the colours can be changed using an if statement, it should be possible. Chris Day (talk) 16:27, 9 July 2007 (CDT)

This looks very sharp!  —Stephen Ewen (Talk) 21:28, 9 July 2007 (CDT)

Not sure if there is a reason to make the background light gray (#f9f9f9) bit I made it plain white (#ffffff) to make it invisible. Not sure if there was a reason for making it gray I don't know about, though.  —Stephen Ewen (Talk) 22:03, 9 July 2007 (CDT)
It depends on the skin that is used. And I borrowed the template but had not bothered to fine tune until i had the tabs in place. Is this the sort of thing you are interested in? Chris Day (talk) 22:08, 9 July 2007 (CDT)
I agree with Stephen. This is A-Class work!--Robert W King 23:56, 9 July 2007 (CDT)

Active tabs

If you want to see where i am heading with the recent edits go to Anthropology/Links and toggle between Related articles/Bibliography/External Links. Chris Day (talk) 23:49, 9 July 2007 (CDT)

That is very sharp! Meanwhile, I am trying to figure out where/how in Mediawiki it might be placed as in this example, for all articles by default, i.e., just below the title and above the line. I am again in over my head, of course, but I think the thing that controls the placement of the title into the article is in includes\Article.php.  —Stephen Ewen (Talk) 00:07, 10 July 2007 (CDT)
You're on your own there I do not know how to solve that problem. I just figured out how to have the optional tabs a much lighter shade than the active tags. This will be helpful so as not to distract readers to non existant subpages. On the other hand it may encourage people to create the missing subpages. Obviously we can work out the shape, size and colour of these elements once we have the guts of the template worked out. Chris Day (talk) 00:20, 10 July 2007 (CDT)

Ignore

<style type="text/css">
body{padding: 20px;background-color: #FFF;}
p{margin: 0 10px}
p{padding-bottom:1em}
div#nifty{ margin: 0 10%;background: #9BD1FA}
b.rtop, b.rbottom{display:block;background: #FFF}
b.rtop b, b.rbottom b{display:block;height: 1px;
    overflow: hidden; background: #9BD1FA}
b.r1{margin: 0 5px}
b.r2{margin: 0 3px}
b.r3{margin: 0 2px}
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
</style>
</head>
<body>
<div id="nifty">
<b class="rtop">
<b class="r1"></b>
<b class="r2"></b>
<b class="r3"></b>
<b class="r4"></b>
</b>
Nifty Corners
Rounded corners without images
<b class="rbottom">
<b class="r4"></b>
<b class="r3"></b>
<b class="r2"></b>
<b class="r1"></b>
</b>
</div>