Wiki translation

Deutsch, Français, Português - Please note: the non-English forums are not actively maintained
User avatar
Touriste
Posts: 626
Joined: Mon May 20, 2013 2:20 am
Location: France, Ile de France

Re: Wiki translation

Post by Touriste » Fri May 31, 2013 12:39 pm

Maybe before the article then, because it messes up with images sometimes (example biomes)
Like the main page

User avatar
LFist
Posts: 17
Joined: Wed May 29, 2013 10:42 pm

Re: Wiki translation

Post by LFist » Fri May 31, 2013 12:57 pm

The language linking on the Main Pages doesn't use templates, but HTML code. It would be to difficult to do it that way.

And I actually can't see a problem with the current templates at all.

User avatar
Touriste
Posts: 626
Joined: Mon May 20, 2013 2:20 am
Location: France, Ile de France

Re: Wiki translation

Post by Touriste » Fri May 31, 2013 1:08 pm

If it is translated to 7+ languages, the box will just stack and take a lot of space.
It is just an improvement I think, I will try it on one page, and you will see what I want to do.
http://wiki.reusgame.com/index.php?title=Projects
If you don't like it just undo :>

User avatar
LFist
Posts: 17
Joined: Wed May 29, 2013 10:42 pm

Re: Wiki translation

Post by LFist » Fri May 31, 2013 1:17 pm

I will try something...

User avatar
LFist
Posts: 17
Joined: Wed May 29, 2013 10:42 pm

Re: Wiki translation

Post by LFist » Fri May 31, 2013 2:45 pm

I've created a new multilingual template. You only have to integrate it once per page and it can show all supported languages (already created languages).

The template's syntax is very easy:

Code: Select all

{{MultiLangBar|ENGLISH_PAGENAME|GERMAN_PAGENAME|FRENCH_PAGENAME|PORTUGUESE_PAGENAME|SWEDISH_PAGENAME|DUTCH_PAGENAME}}
Examples:
Integration in "Projects" pages. You can use the same bar on every page:

Code: Select all

{{MultiLangBar|Projects|Projects/de|Projects/fr|||Projects/nl}}
This configuration will show English, German, French and Dutch links on top of the page.

The link to the page, which is opened, won't function on the same page but on other pages.

If there are no translated pages you simply write nothing between two ||:

Code: Select all

{{MultiLangBar|House|House/de|||House/se|}}
This example will show English, German and Swedish links. All other links aren't visible but editable.

User avatar
Touriste
Posts: 626
Joined: Mon May 20, 2013 2:20 am
Location: France, Ile de France

Re: Wiki translation

Post by Touriste » Fri May 31, 2013 2:49 pm

That is really nice ! Can you change the background colour ? It is flashy blue you used ! :D

User avatar
LFist
Posts: 17
Joined: Wed May 29, 2013 10:42 pm

Re: Wiki translation

Post by LFist » Fri May 31, 2013 2:51 pm

changed to non-flashy brown

User avatar
Touriste
Posts: 626
Joined: Mon May 20, 2013 2:20 am
Location: France, Ile de France

Re: Wiki translation

Post by Touriste » Fri May 31, 2013 2:55 pm

Same as main page colour is possible ?
Please :>

User avatar
LFist
Posts: 17
Joined: Wed May 29, 2013 10:42 pm

Re: Wiki translation

Post by LFist » Fri May 31, 2013 3:08 pm

Done

User avatar
Touriste
Posts: 626
Joined: Mon May 20, 2013 2:20 am
Location: France, Ile de France

Re: Wiki translation

Post by Touriste » Fri May 31, 2013 3:09 pm

Love you <3

Post Reply