This is the talk page for discussing improvements to the MediaWiki:View Source/code.js page.
- Please sign and date your posts by typing four tildes (
~~~~
). - Put new text under old text. Click here to start a new topic.
- If you're new to the wiki, please take a look at the talk page help.
- Be polite
- Assume good faith
- Be welcoming
Spanish and Catalan translations[]
es: { viewSource: 'Ver código fuente', viewArticle: 'Ver artículo' },
ca: { viewSource: 'Veure codi font', viewArticle: 'Veure l'article' },
Regards!
German[]
In German, two nouns like "Quelltext" and "Ansicht" are connected with a hyphen:
de: { viewSource: 'Quelltext-Ansicht', viewArticle: 'Artikel-Ansicht' },
AmonFatalis 17:50, July 21, 2014 (UTC)
- I would add that change in, but I have a feeling Pecoes was german himself, or possibly dutch. Are you sure you're correct in the context of where those messages are used? cqm 22:57, 21 Jul 2014 (UTC)
- Yes, I'm sure. The error is called "Deppenleerzeichen" (The idiots' space) and isn't rare.
- Thank you for adding.^^
- AmonFatalis 14:22, July 22, 2014 (UTC)
Dutch translation[]
Here is the Dutch translation:
nl: { viewSource: 'Brontekst bekijken', viewArticle: 'Artikel bekijken' },
--Ohmystars (talk) 12:09, June 17, 2015 (UTC)
Link "undefined"[]
There is a small bug. When a wikilink has no title, it displays the link like this: [[Linkundefined]]
instead of [[Link]]
. To fix this, I think you could do this:
function replaceWikiLink (all, link, title) { if (title) { return '[[<a href="' + createHref(link) + '">' + link + '</a>'+ title + ']]'; } else { return '[[<a href="' + createHref(link) + '">' + link + '</a>]]'; } }