Template talk:Fake link: Difference between revisions
m (Porplemontage moved page Template talk:Fakelink to Template talk:Fake link) |
Waluigi Time (talk | contribs) m (→Red Link Fake Link: No traction) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
UPDATE: Not much articles as I thought to fix, two of them... still though... {{User:RAP/sig}} [[Special:Contributions/RAP|...Hmmm. ;|]] | UPDATE: Not much articles as I thought to fix, two of them... still though... {{User:RAP/sig}} [[Special:Contributions/RAP|...Hmmm. ;|]] | ||
== Red Link Fake Link == | |||
<code><nowiki>{{#ifeq:{{FULLPAGENAME}}|{{#ifeq:{{FULLPAGENAME}}|Main Page|#|{{PAGENAME}}}}|[[{{{1|Main Page}}}|{{{1|{{{2|default}}}}}}]]|<span title="{{{2|{{{1|}}}}}}" class="{{#ifexist:{{{1}}}|fakelinks|new}}">{{{1|default}}}</span>}}</nowiki></code><br><br> | |||
The code: | |||
<code><nowiki>class="{{#ifexist:{{{1}}}|fakelinks|new}}"</nowiki></code><br><br> | |||
I figured out a way to detect if the page exists so that way a fake red link can be created instead of a regular (blue) link to an otherwise red link. However, can't edit the template and [[MediaWiki:Common.css]] needs to be modified. Class new should inherit fakelinks style. --{{User:Wildgoosespeeder/sig}} 19:56, 29 June 2017 (EDT) |
Latest revision as of 15:40, January 30, 2022
Is it me or is someone abusing this formatting template? I'm seeing these things used in articles (from "What links here" page), not just the Fake News. :( RAP... Another rule required to be set up...? Check? ;o
UPDATE: Not much articles as I thought to fix, two of them... still though... RAP... ...Hmmm. ;|
Red Link Fake Link[edit]
{{#ifeq:{{FULLPAGENAME}}|{{#ifeq:{{FULLPAGENAME}}|Main Page|#|{{PAGENAME}}}}|[[{{{1|Main Page}}}|{{{1|{{{2|default}}}}}}]]|<span title="{{{2|{{{1|}}}}}}" class="{{#ifexist:{{{1}}}|fakelinks|new}}">{{{1|default}}}</span>}}
The code:
class="{{#ifexist:{{{1}}}|fakelinks|new}}"
I figured out a way to detect if the page exists so that way a fake red link can be created instead of a regular (blue) link to an otherwise red link. However, can't edit the template and MediaWiki:Common.css needs to be modified. Class new should inherit fakelinks style. --Wildgoosespeeder (talk) (Stats - Contribs) 19:56, 29 June 2017 (EDT)