Template:On Wikipedia/doc

Usage
For linking to multiple Wikipedia articles and displaying a translated term. Each link is displayed with the visible language code (whose title gives the localized name of the language in a helper tooltip).

This should not be used in place of or in duplication of interwiki links (in the sidebar). In Commons categories, take the local Wikipedia's equivalent categories for the Categories sidebar, and then take the related main articles for this box using interwiki links found in those articles.

The current user language will be listed first, if it has a matching entry specified. All other languages will then be listed in alphabetical order by language code.

Parameters

 * Each language can be specified using a parameter named with the language code of a Wikipedia edition - the value is the article name on that edition
 * - changes the font size (default: non changed)
 * - changes the color of the leading text (default: #696969) - does not alter the color of links
 * - border color (default: #aaa)
 * - background color (default: #f9f9f9)
 * - set equal to yes to remove the logo
 * - set equal to yes to remove the small "+/−" edit link added at end of the list
 * - set an alternate target full page name to edit if it is not the current page.

Examples

 * Basic usage:
 * creates:
 * creates:


 * To display all on one line:
 * creates :
 * creates :


 * To float right or left:
 * creates :
 * creates :

Limitations and possible evolutions

 * Make the list of those alternate languages (except the current user language if it is specified) collapsed by default (unless the user language is not in the list), including if the "inline" parameter is specified (is it useful? should'nt this list be inlined by default ?), or use the language selector.
 * For this collapsable list, the label "Other languages" for opening or collapsing the list should be auto-translated, it should just be next to the default language displayed, on the same line. But if the language selector is used, no collapsing feature is needed and if a language is selected there, only that language will be displayed (if this language is not found in parameters, English should be used by default).
 * For adding more languages a "+/-" label should allow editing the list of languages : generally it is the name of the current page, but in some uses, an optional parameter should allow specifying the included template where this list of languages is editable.
 * It is suggested to use a "standard" subpage containing only the call to this On Wikipedia template for the topic covered by a category page, to allow simple and automatic maintenance of this list (using interwikis found in Wikipedia), instead of parsing the content of a category page containing this call to this template. This subpage would just contain this call but the name of the On Wikipedia could be replaced by using the value of a "call" parameter, allowing other uses of these translations, and allowing to pass another parameter name (such as "param1=lang") and its value (such as "value1=language-code") for example to select one language and returning the associated value, without formatting it into links like done in this template (so this subpage would become usable for autotranslating references to a given English name).
 * This could be used for example to generate the contents of a location template (which also, for now, tries to format a location name into a link, except that it does not prefix it with a visible language code like it is done in this On Wikipedia template), using the same editable list; for example the content of Template:Paris or Template:Germany would just use this common subpage passing it the name of a formatting template generating just this template, using the "call=Template:City" to replace "call=On Wikimedia" given when transcluing this common subpage.
 * For such applications, it will still be useful to translate a location name, even if a Wikipedia page does not exist for this location, so the list of languages could contain an alternate form for the language parameter, e.g. "lad.nowp=Saint-Malo" for indicating that there's no Wikipedia currently defined in Ladino for the city name "Saint-Malo" and that the value specified in English as "en=Saint-Malo" could be used as the target on English Wikipedia : this ".nowp" would not be used in a valid language code recognized by On Wikipedia.