Template talk:Fakelink

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Underlining[edit]

One problem with this template - for those without perma-underlined links, this doesn't look like a link, and therefore is not a fake link. ~ Ghelæ talkcontribs 07:41, 15 August 2006 (UTC)

Unfortunately, the only way to emulate exactly what the user's browser does is to make it an actual link, because the preferences css generates:
a { text-decoration: underline; }
            or
a { text-decoration: none; }
            or 
                              /* <- (nothing at all) */
depending on what the user selects (always/never/browser default). No class, just a tag name. If we could use the <a> tag indiscriminately, we could do it by using <a style="style crap here">fake link</a> but we can't. --Splaka 06:02, 16 August 2006 (UTC)
Is there a way in mediawiki to set things such that the default setting for people who don't change their prefs is perma-underline, rather than browser default? --User:Nintendorulez 22:50, 1 December 2006 (UTC)
[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}}} The code here is an alternative to fakelink] which works as a real link but to the same location.                               Puppy's talk page00:40, June 5, 2009 Sunday, 04:37, May 9 2010 UTC
An admin (or someone else who can access it) could go to MediaWiki:Common.css and type:
.fakelinks:hover {
  text-decoration: underline;
}
That would make it so tags with the class "fakelinks" (the one already there) are underlined on rollover.Airhogs777 09:01, December 21, 2010 (UTC)
Too much effort for what can be done with [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}}} this].                               Puppy's talk page00:40, June 5, 2009 Wednesday, 06:13, Dec 22 2010 UTC
Well I think it's a good idea and would do it if I were a sysop.Airhogs777 03:39, January 10, 2011 (UTC)
 Done in a different way. whytheonlyone did the work at Template:Fake link, Llwy-ar-lawr installed the appropriate extension for it to work, and I merged it here. Rather than define the style at MediaWiki:Common.css, which would be served to every visitor; the template uses its own stylesheet, Template:Fakelink/styles.css. It underlines on hover, and is the same shade of blue as real wikilinks. Editing the stylesheet can be done without sysop privileges. Dark Web, White Hat (talk) 06:04, 23 May 2021 (UTC)