Template talk:Wikisourcelang

Page contents not supported in other languages.
From Simple English Wikipedia, the free encyclopedia

Jury-rigged template to work[change source]

Interwiki Wikisource pages seem to work off shifting to the sister wiki first and then interwiki'ing to the target source. Since there is no Simple.Wikisource, this doesn't work for us. {{Wikisource}} works by searching the English source all well and fine, but it gets screwy when changing languages to do it. I jury-rigged the template to use the external link to get to the correct language, and then search once it gets there. The main problem with this is in how Wiki markup handles external links. The first space it sees it treats as a break between the link and its name. This means the title of the article to be searched for can not have any spaces in it. If it does, the search will only be for the first word of the link and the rest of the page's name will be part of the link name. en|Some page|the pages name would look on the en wikisource for a page named Some and the title of the link would be page the pages name. It must be labeled as Some_page to work properly.

I also used the plainlinks class to remove the external links arrow and make it look like it is an internal link. Since it is a part of a wiki-project, it is internal, even if I had to go external to get there. -- Creol(talk) 16:56, 19 May 2007 (UTC)[reply]