Template talk:LL

From OpenStreetMap Wiki
Jump to: navigation, search

Swapping all wiki links?

Is the idea of this template to swap all wiki links from a syntax like [[OpenLayers]] to a syntax like [[{{LL|OpenLayers}}|OpenLayers]]

-- Harry Wood (talk) 13:15, 16 November 2016 (UTC)

This allows simpler translations of English pages by copy pasting and still finding relevant links (English pages are first copy-pasted as is with a new languiage prefix, and translators start updating the text without taking care first of all links and chjecking all of them. This is also interesting for maintenance purpose (note that trailing characters are not supported, and should be part of the target part of the link (trailers do not work correctly with other languages, and translators have problems handling them correctly. But looking at many pages that translators made, they had problems linking to ther other translated version of target pages and were bored checking all links individually, or added prefixes or translated titles in the target, creating many red links everywhere. LL ("Localized Link") solves this problem simply in many pages.
Then these LL links can be tuned if needed per language (if the target has been translated with a new title and one wants to avoid the redirect).
From English pages (without any language prefix in their title), it has no effect, LL will just return its parameter.
Note: LL now works as well with Categories and Templates (a separate "ns=" parameter is no longer needed for the namespace). So {{LLC}} or {{LLT}} are no longer needed for categories and templates if you use {{LL}} with a parameter specifying the namespace: it may clarify the wikitext if we use {{LL}} instead.
There is NO swap: it generates the target link to a page on a wiki, the text after the pipe is the visible text of the link and is freely translatable. — Verdy_p (talk) 18:38, 16 November 2016 (UTC)
Note also: LL is preferable to keeping the link to the English article: the translated articles are frequently created later, but many translated pages forget to be updated later to use the new transalted target pages. This also simplifies the maintenance (once target pages are transalted, you may remove the LL template call by setting statically the language code in the link, but it is also needed to change the English title. Leaving LL in translated pages is the best nasd fastest option for everyone, including experienced translators or editors: readers hate to see linkg pointing to the English page when there's a matching translated page; as much as possible they will remain in their own language while navigating, without necessarily having to locate their prefered language in the languages navbar. — Verdy_p (talk) 19:04, 16 November 2016 (UTC)
OK... but the answer is "yes". You want to go through the whole wiki changing links from the simple form [[OpenLayers]] to a syntax like [[{{LL|OpenLayers}}|OpenLayers]].
There has to be a better way surely.
Maybe we can do a hack to the way our wiki works internally with links, or even not the links but the display of a page. Maybe when a Russian user lands on the "OpenLayers" page it could automatically redirect them (optionally?) to "RU:OpenLayers" if a translated page is available.
-- Harry Wood (talk) 11:51, 10 February 2017 (UTC)