Magic Language Navigation

Con un modello che comprende una pagina "include", in cui è inserito (manualmente) il nome NewPage come parametro, è possibile creare una magic-language-navigation.

include:languages

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

Il risultato può essere visto sopra.

Il parametro pagename $ verrà passato con il comando include …

template:languages

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

Questo modello dovrebbe essere il nuovo modello predefinito.

module NewPage

[[module NewPage category="fr" template="template:languages" size="15" button="crerare una pagina"]]

modifica messaggio di pagine esistenti

Questa frase "include" può essere inserita anche dopo la creazione del NewPage

etichette (tags)

Il modulo TagCLoud deve specificare xy: categoria della lingua e xy:page-tags di lancio (invece di system:page-tags)
xy:pagine tagcloud usano il medesimo principio

nuove lingue? ?

Solo la pagina include:languages deve essere cambiata con la nuova lingua, … le lingue inutilizzate debbono essere rimosse se non trovate un traduttore Wiki.

attenzione!

  • pagenames DEVE rimanere il medesimo qualunque sia la lingua della pagina corrente;
  • le pagine en: devono seguire le stesse regole (icioè appartenere ad una categoria di lingua

riconoscimenti

Si è scoperto questo trucco dopo aver visto http://siliconcity.wikidot.com/template:herocharacter


gerdami gerdami


Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /