Magic Language Navigation

counter stats


With a template which includes an included page and passing (manually) the newpage name as a parameter, you can create a magic-language-navigation.
to be rewritten in good English, please

include:languages

[[=]]
[[[de:{$pagename}|Deutsch]]], [[[en:{$pagename}|English]]], [[[es:{$pagename}|Español]]], [[[fr:{$pagename}|Français]]], [[[pl:{$pagename}|Polish]]]
[[/=]]

The result can be seen above.
The $pagename parameter will be passed with the include command…

template:languages

[[include include:languages pagename=NewPageNameHerePlease]]
----

This template should be the new default template.

module NewPage

[[module NewPage category="fr" template="template:languages" size="15" button="créer une page"]]

post editing of existing pages?

This include sentence can be inserted even after the creation of the newpage.

tags

module TagCLoud must specify xy: language category and the landing xy:page-tags (instead of system:page-tags)
xy:tagcloud pages use the same principle

new languages ?

Only the include:languages page has to be changed with the new language, … unused languages might be removed if you don't find Wiki translators.

attention please

  • pagenames MUST be the same whatever the language of the actual page
  • en: pages MUST follow the same rules (i.d. belong to a language category)

credits

I found this trick after having seen http://siliconcity.wikidot.com/template:herocharacter


gerdamigerdami


page_revision: 1, last_edited: 1199727991|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License