User:C-3P0/InterWiki

On this page you can find my proposal for a new format of interwiki links as discussed at Forum:CT:Foreign language link issues. It consists of two parts: a new template for interwikis and a change of the JavaScript/CSS to improve the design.

= Template:Interwiki =

Code
in other languages 



Usage
To add interwikis, simply insert the article title at the respective parameter of the language code. Template:FA will work as well to mark interwiki links as featured articles.

Old format: Anakin Anakin Anakin Anakin (täsmennyssivu)

New format:

Output
in other languages  Dansk Deutsch Español Suomi 

=InterWiki list design=

Global CSS
This code, once added to  [[MediaWiki:Common.css ]] , will format the interwiki list so it looks a little bit nicer in the Wikia skin. However, there are many ways to format the list and this is only a simple proposal but at least it is better than the current design of the interwiki list in the Wikia skin. .WikiaArticle #p-lang {background-color: #ddd; border: 1px solid #aaa;} .WikiaArticle #p-lang h5 {margin:0; padding: 4px; background-color:#aaa; font-weight: bold;}

Output
in other languages  <li class="interwiki-da plainlinks">Dansk</li> <li class="interwiki-de plainlinks FA">Deutsch</li> <li class="interwiki-es plainlinks FA">Español</li> <li class="interwiki-fi plainlinks">Suomi</li> </ul>

Monobook skin
For registered users that prefer the monobook skin:

Custom JavaScript
Add this code to your personal JavaScript at  User:USERNAME/monobook.js </tt> to move the interwiki links to the menu on the left side in the monobook skin. They then look like normal interwiki links. $(document).ready(function{ if (skin=="monobook") { var tempele=document.getElementById("p-lang"); document.getElementById("column-one").appendChild(tempele); tempele.parentNode.removeChild(tempele); } });