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)