Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Force boxes to top and bottom on wikis?
Is there any kind of coding that would allow me to force an object to always be on top/bottom in a wiki? I want to create a template that will appear at the top and bottom of a page, without having to post it twice every time (needs to be posted over 150 times, so you can see the annoyance). Something like
-template head-
-article-
-template base-
Any ideas?
Thanks =)
2 Answers
- NihiltresLv 61 decade agoFavorite Answer
If you, or someone else on your wiki, has Windows (or can use Wine on Linux or Mac OS), the simplest solution is probably to just use AutoWikiBrowser (< http://en.wikipedia.org/wiki/Wikipedia:AutoWikiBro... >) to semi-automate the addition of the template at top and bottom, and not bother with special coding.
If you really want a template that appears at both top and bottom of the page, a relatively reliable way to do it on your own wiki would be to add some JavaScript code to your wiki's Common.js page, to move the content of the template by containing the top and bottom parts of the templates in specially marked "div" elements. This relies on JavaScript working properly, so you'll have to be sure about wanting this; and you'll need to know some JavaScript to set it up—but if you know any JavaScript it's not too too hard to figure out how to move a marked element to the right spot on a page.
Alternatively, you can try CSS. Essentially, if you're using the right skin, you can contain your bottom element as follows:
<div style="position: absolute; bottom: 0;"> rest of bottom part of template goes here </div>
to move that section to the bottom, but this is (very) unreliable, and it *will* do annoying things to the content at the bottom of the page unless you make it small enough that it doesn't matter, or specially move things out of the way.
If all this isn't viable, another option is to put the entire page within the template; by using a parameter within the template: e.g. "foobar top content<br />{{{1}}}<br />foobar bottom content", and then containing the whole page within your template. This would probably be a last-ditch option as it's really ugly, in general.
- 1 decade ago
Split a template? I don't think that we can do it. I am not familiar of any coding that would get some content to the bottom.