Difference between revisions of "Template:WikipediaLink"

From Wikispooks
Jump to navigation Jump to search
(Update about problem)
m (Text replacement - "WikiSpooks" to "Wikispooks")
 
Line 3: Line 3:
 
Where the URL includes brackets, it currently performs best when these are included as literal characters, ''not'' as character sequences (%28 etc.) This may be fixed in due course, but needs a urldecode directive, which mediawiki doesn't currently have.<br/><br/>
 
Where the URL includes brackets, it currently performs best when these are included as literal characters, ''not'' as character sequences (%28 etc.) This may be fixed in due course, but needs a urldecode directive, which mediawiki doesn't currently have.<br/><br/>
 
'''Example:''' <nowiki>{{</nowiki>{{PAGENAME}}|http://en.wikipedia.org/wiki/Federal_Reserve_System<nowiki/>|1<nowiki>}}</nowiki>
 
'''Example:''' <nowiki>{{</nowiki>{{PAGENAME}}|http://en.wikipedia.org/wiki/Federal_Reserve_System<nowiki/>|1<nowiki>}}</nowiki>
</noinclude><includeonly>{{#ifeq: {{#sub:{{{1|}}}|0|1}}|*| '''[[WikiSpooks:Problems with Wikipedia/Censorship|{{#ifeq: {{{1|}}}|**|Repeatedly}} Censored]]|{{#if: {{{1|}}}|[[Has wikipediaPage2::{{{1}}}| ]][{{{1}}} {{#urldecode:{{#titleparts: {{{1}}}| | 5 }}}}]{{#ifeq: {{{2|}}}|1|[[Has wikipediaProtection::{{{2}}}| ]]<sup>[[Wikipedia/Protection | (Protected)]]</sup>}}}}}}</includeonly>
+
</noinclude><includeonly>{{#ifeq: {{#sub:{{{1|}}}|0|1}}|*| '''[[Wikispooks:Problems with Wikipedia/Censorship|{{#ifeq: {{{1|}}}|**|Repeatedly}} Censored]]|{{#if: {{{1|}}}|[[Has wikipediaPage2::{{{1}}}| ]][{{{1}}} {{#urldecode:{{#titleparts: {{{1}}}| | 5 }}}}]{{#ifeq: {{{2|}}}|1|[[Has wikipediaProtection::{{{2}}}| ]]<sup>[[Wikipedia/Protection | (Protected)]]</sup>}}}}}}</includeonly>

Latest revision as of 17:11, 14 October 2018

This template makes a conveniently short link out of Wikipedia URL.
To indicate that a wikipedia page used to exist but it was removed, just use the URL "*", which will add it to the list of pages censored by Wikipedia.
Where the URL includes brackets, it currently performs best when these are included as literal characters, not as character sequences (%28 etc.) This may be fixed in due course, but needs a urldecode directive, which mediawiki doesn't currently have.

Example: {{WikipediaLink|http://en.wikipedia.org/wiki/Federal_Reserve_System|1}}