Templates
Templates
I was wondering if you could do me a favour and evaluate this idea. I'm reconstructing the sidebar templates as a standard format. To maintain flexibility I have a header (pussbox/1) and footer (pussbox/4) and then two other templates to stick in the middle, one being content (pussbox/2) and the other being random (pussbox/3). This achieves the flexibility needed; i.e., they don't all have to follow the same format and order of content and random sections. Your thoughts would be appreciated on the workability of this.
http://rationalwiki.org/wiki/User:Armondikov/pussbox
Also: The vte links don't work because the vte template defaults to the template space, so won't follow back and I've changed the border to 1px, which is fitting with Vector's look.
It occurs to me that dpl seems to have issues with transclusions. Would it therefore work best to drop the random section (pussbox/3) and just have it as a normal "content" section with the dpl code in place of the list?
The current version uses the same sub-template and replaces the list content with dpl. I believe with the right documentation this is probably best.
The issue of repeating identical parameters is where I was mostly asking for ideas. Obviously, we can have one template for all, but this way allows us to construct one of any size, with multiple lists. We might even be able to add extra images as is seen on the {{pseudosciencenav}}
template.
Is there a clever way around it so we can have the flexibility and ease? I just can't spot one.
I think you should have a content param in /1, combine /1 and /4, then use /2 to format the content and pass that as a parameter to /1. I hope that's not too confusing.
I have given it a shot and started with {{religion}}
, {{pseudoscience}}
, {{atheism}}
and {{media}}
. The base can be found at {{navsidebar}}
. I imagine you will want to kill me but it all seems to work exactly the same as before - although I have noticed that with the fixed text size the longer titles make the template wider. I'm not too concerned about this, however, as the base can be edited to reduce the size no problem.
Nah, I have a cold, I feel like shit, I'm working on something big-ish already (it's a surprise), and I'm trying to lose my "if you want something done properly, do it yourself" attitude, so if it works, I'm happy. And thanks, of course.
I just trust your judgement with these things. It's there if you want to take a look but I'm sure the problems can be ironed out in the usual fashion.
At a cursory glance it looks fine, I see you've changed it as I suggested above. Nice work.
Also, cheers for the SVG-ifying the last icon. I've only just got around to reinstalling a proper vector graphics program so, in theory, should be able to do that myself next time.
F**kity f**k. When you do the SVGsvgs it normalises to 200x200 and gives it a small border, when I've done it straight out of Illustrator it's gone to the edges so the icons "look" larger for the same technical size. What margins did you put on?
I don't think I have any margins... the document is 200 by 200 pixels, and then I just made the circle so it fits nicely. I don't really remember any more. Let me check the svg source code.
I just figured it was whatever you were using to convert. {{Portal portal}}
shows it up - the creationism and evolutionism ones are what I've just made and you can see them push up to the edge of the box.
I was creating them from scratch in Illustrator rather than using an svg of an existing one. Hence the size and padding change. There was an issue with the drop shadow working properly but I've got it sorted now. Wonga!
I don't think so. Looking at the source, it seems the gradient is being converted to an image by illustrator.
Yes, it seemed to have misinterpreted that when I opened it, and produced this version. Whatever the problem is, I think it at least looks right now.
Ah, I see inkscape saves svg files in a format it calls Inkscape SVG, which uses a bunch of inkscape specific stuff. I'll resave it as Plain SVG