Forum:Is there a way to bring back the site tagline?

That used to be under MediaWiki:Tagline? A .o. N 16:33, March 31, 2011 (UTC)


 * You could add one with JS if you really wanted it, but it wouldn't pull from the MediaWiki page.


 * Yes, I really want it. What's the js for that? A .o. N  17:10, March 31, 2011 (UTC)


 * Depends upon where you want it. This will put it under the categories; just change it to the name of your wiki, and your wiki's url:

 function Tagline { $('#WikiaMainContent').append(' Retrieved from YOURWIKINAME '); }

addOnloadHook(Tagline)
 * That should do it.

And where does this go - in css? A .o. N 19:14, March 31, 2011 (UTC)
 * And where, exactly, does the tagline go? A .o. N  18:04, March 31, 2011 (UTC)
 * The code goes in JS, the tagline should appear under the categories bar.


 * Sorry for the confusion. I mean, where does the tagline go in the above js script? A .o. N  20:04, March 31, 2011 (UTC)


 * Try adding the above code to Special:MyPage/wikia.js and do some experiments. The JS will only affect you and not other users on your wiki. You'll see what it does.
 * When you like how it works, add it to MediaWiki:Wikia.js for it to appear site-wide.
 * Also, we can give you more specific and helpful info if you give a link to your wiki. -- Fandyllic (talk &middot; contr) 31 Mar 2011 5:01 PM Pacific
 * Oh, I just realized what you meant.  is the tagline. The   tag defines a link.

OK, I'm, sadly, still confused. Say the page on my wiki that contained the tagline was Template:Tagline - how would I format that in the  tag? A .o. N 17:53, April 1, 2011 (UTC)
 * You can't, because templates are dealt with by the PHP on the server. You can only use HTML. However, I might be able to convert your template to HTML for you if you link to it.


 * OK, 1) if I were going to use HTML, give me an example of how I would use it, because I know nothing about it. 2) Here is the  template, if you would like to convert it to HTML:

I plan on using the tagline area to display a weekly quote, if there is one. The  template looks like this:

A .o. N 14:57, April 2, 2011 (UTC)
 * That's still a template, unfortunately. HTML can't do templates - if you want to change the quote, you'd have to change it in the JS.


 * So the template thing is undoable, then. Again, though, I would like an example of using a tagline throught the js you gave above. If I understand correctly, the  tag is a link to the page on your wiki which contains the tagline. How, exactly, is that formatted? And I suppose there's no other way to have words appear at the top of every page on the wiki.  A .o. N  17:05, April 2, 2011 (UTC)
 * Ah, I see now. No, the  tag defines a normal hyperlink. Take this hyperlink as an example. The HTML for that link is  . The tagline in the code above is , which would output "Retrieved from Community Central". Sorry if I confused you before, I didn't explain it very well earlier.
 * Well, thank you for breaking that down—and for your patience—but something about that script isn't working for me—no tagline appears when I put that in my Wikia.js—so I give up. :) A .o. N  17:46, April 2, 2011 (UTC)

Tentative solution
 (reset indent)  I love having epiphanies. Monchoman... you ready for this? The only issue is being able to get a template/MediaWiki special page to somehow load as a psuedo-tagline on every page. So, what else loads up on every single page you go to on the wiki? (besides the old tagline and site notices?) MediaWiki:Wiki-navigation! MW:Wiki-navigation is set up to halt after 4 drop-down menus so your site has to either only use 3 normally, or you have to hack it to allow 5 or more. Normally, anything after 4 drop-downs is automatically hidden. See where I am going with this? Now we know of a MW page that loads on every page... so, how do we get the coding that we want displayed into the Wiki-navigation without breaking its functionality?! We add the code to the end (after the content we want to see normally &mdash; using the hack described above). In order to not add extra spacing (from line-wrapping in the drop-down header), we have to add the code or tagline to a sub-menu like so. The # creates a null link in the sub-menu which is going to just be removed anyways. This would work perfectly for static taglines. You can see this in action here. Now, this code will basically LOAD your tagline onto EVERY page you visit in the last drop-down menu. All we have to do now now is move it with JS! Add the code: $(function {   $('.tagline').prependTo('#WikiHeader').css('float','right'); }); and that tagline magically appears above your 'Random Page'/'Wiki Activity' buttons. You can place it other places as well, obviously, like under the H1/H2 $(' ').insertBefore('#WikiaPageHeader details'); $('.tagline').appendTo('#WikiaPageHeader h3');.
 * &amp;nbsp;

The code: $('#WikiHeader > nav > ul > li:last').remove; will remove that last drop-down menu we created now that it's served its usefulness.

My friend C_ee_X came up with a nice idea with the pre-Oasis Tagline using on Burnopedia as seen here which basically had a 'random' tagline for every possible 'second' of a page load. It was a great idea and worked wonderfully. If we can somehow use this same type of wethod, that would take care of the 'random quote/quirky statement' part. The only issue I am having is the time is being saved verbatim in MW:Wiki-navigation. If anyone knows how to trick the time to not save and update when pages are loaded with MW:Wiki-navigation, please enlighten me. I've tried just about everything I can think of. It's far too late for me to find a way now. If you have any questions about placement and/or using this method for a static tagline (or even a psuedo-sitenotice!), please drop them here and I will be glad to help. Fandy, I am tagging this FAQ for you. Rappy 12:16, April 3, 2011 (UTC)


 * That is, to say the least, epic. There's a template somewhere that can disable caching for a page, which should make  change on every page load. The down side is that it would disable caching for your entire wiki (if it works - depends on the processing order of the compiler). I'll see if I can't find it.


 * I assume  would work in place of the #switch/#time thing also? -- Fandyllic  (talk &middot; contr) 5 Apr 2011 8:14 AM Pacific


 * Tagging FAQ. Very cool. -- Fandyllic (talk &middot; contr) 5 Apr 2011 8:11 AM Pacific


 * Reading this again while looking at the ajax RC script (by the way Rappy - I figured out what the  does), I've just realized that it is theoretically possible to load a template on a page the template isn't transcluded on using a form of the ajax RC. It would lag a bit, however, and it might strain the server.


 * Unfortunately, Fandy, choose doesn't seem to work when transcluded. It comes up blank with just in the  . Looking back at this, the #time method works, just not in the manner I wanted it to. It seems it sets the #time for the session. Every page visited during that session will show the same tagline. Refreshing a page beyond the session timeout, will indeed, give you a new tagline. Pre-Oasis, this setup gave you a new tagline every single page/refresh, which was nice. I think this is the best you can do until I, or someone else, has an epiphany on this idea. Rappy 20:10, April 5, 2011 (UTC)


 * It definitely works when transcluded, because I've done it many times, but apparently not in the case of the wiki navigation menu. -- Fandyllic (talk &middot; contr) 5 Apr 2011 7:31 PM Pacific