Template talk:FA: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (→‎Location: It's not there anymore.)
Line 41: Line 41:


==Location==
==Location==
{{talk}}
<s>Why is the star located farther to the left than usual? Shouldn't it be in the far-right corner? </s>{{User:Fawfulfury65/sig}}
Why is the star located farther to the left than usual? Shouldn't it be in the far-right corner? {{User:Fawfulfury65/sig}}

Revision as of 10:16, February 27, 2011

Making the FA Star link to the Featured Articles page

So I was looking at a few of the Featured Articles, and I noticed the little star indicator up there in the title. I figured out what this meant because I already knew I was looking at a Featured Articles, however, I was thinking, how is the average viewer supposed to know what the star means? I figure the best way would be a link to the Featured Articles page, but I don't think we want any text added. So I was wondering if you guys wanted to change the star image in the FA template to a LinkedImage pointing the Featured Articles page?

I checked and the LinkedImages extension is already installed, so it could be easily implemented by changing the current code to this:

<div id="title-Featured" class="plainlinks firstHeading" style="font-size:188%; padding-top:2.2em; padding-bottom:0.09em; float:right; position:absolute; right:0.5em; top:0em; white-space:nowrap"><table style="float:right; padding:0px"><div class="right" id="right"><linkedimage>
wikipage=MarioWiki:Featured_Articles
tooltip=MarioWiki Featured Article
img_src=Image:Star.PNG
img_width=23px
img_height=23px
</div><includeonly>[[Category:Featured Articles]]</includeonly>

The only problem is when the star image gets resized by LinkedImages it doesn't look nearly as good as when it gets resized by the wiki's normal methods. An easy way to fix this would be to create a 23x23px star image and use that directly, so it does not need to be resized. This I've taken the liberty of creating, and uploaded it here. So the final code would look like this:

<div id="title-Featured" class="plainlinks firstHeading" style="font-size:188%; padding-top:2.2em; padding-bottom:0.09em; float:right; position:absolute; right:0.5em; top:0em; white-space:nowrap"><table style="float:right; padding:0px"><div class="right" id="right"><linkedimage>
wikipage=MarioWiki:Featured_Articles
tooltip=MarioWiki Featured Article
img_src=Image:Star_23x23.PNG
</div><includeonly>[[Category:Featured Articles]]</includeonly>

A nice looking star in the title, that brings you to the MarioWiki:Featured Articles page when you click, and says "MarioWiki Featured Article" in the tooltip when you hover over it with the mouse.

What do you guys think? -- DarkInsanity (talk) 12:18, 2 December 2007 (EST)

Done. I think I meant to do a LinkedImage thing also, but the shrinked image came out a bit odd-looking. Thanks for uploading a good size! Wa Yoshihead.png TC@Y 19:00, 2 December 2007 (EST)
Yeah, I'm kind of surprised it's not used more often. Seems like it'd be pretty useful. Actually, it is pretty useful. It's just not used often. More. ...yep. -- DarkInsanity (talk) 22:17, 2 December 2007 (EST)

Using a modified version for own userpage

how i can modify it to change the star to this

and redirect to a link when clicked??? Larry.gifAndré, Do your homework !!! 15:14, 17 February 2008 (EST)

Leading section edit glitch

V1O75.png
I have this problem!

I'm using "Show [edit] for leading section" script on my user js, that star is just messes it up. I know that only me having this problem, but can we move that star a bit lower? (behind line?) SWFlashSWFlash.svg

Also why is there "plainlinks" class? Please delete it. SWFlashSWFlash.svg

Location

Why is the star located farther to the left than usual? Shouldn't it be in the far-right corner? Fawfulfury65