ਫਰਮਾ:Wikipedia languages/core/doc
ਇਹ ਇੱਕ ਫਰਮਾ:Wikipedia languages/core ਲਈ documentation ਉਪ ਸਫ਼ਾ ਹੈ। ਇਸ ਵਿੱਚ ਵਰਤੋਂ ਦੀ ਜਾਣਕਾਰੀ, ਸ਼੍ਰੇਣੀਆਂ ਅਤੇ ਹੋਰ ਸਮੱਗਰੀ ਜੋ ਮੂਲ ਦਾ ਹਿੱਸਾ ਨਹੀਂ ਹੈ, ਸ਼ਾਮਲ ਹੈ। ਫਰਮਾ page. |
This template is used in MediaWiki:Statistics-footer. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please discuss any changes at the talk page before implementing them. |
This is the /core template for {{Wikipedia languages}}, which is the template for the "Wikipedia languages" section on the main page.
The template is used to ensure a consistent formatting of the links, which hasn't always been the case (for some time, the Japanese and Chinese links were within {{Lang}}, which categorized the main page within ਸ਼੍ਰੇਣੀ:Articles containing Japanese-language text and ਸ਼੍ਰੇਣੀ:Articles containing Chinese-language text.
Technical part
ਸੋਧੋThe links of this template show a mouseover, which is the English language name of the language and its IS0 639 code within brackets. To determine the English name, it calls #language parser function. Furthermore, there is a "lang" attribute so that browsers recognize it's a non-English text and treat it properly. The text of the link then uses the parser function {{#language:}}
, which displays the language's native name as it's used by MediaWiki, e.g. within the interwiki links. This is done to ensure consistency with the interwiki links in the sidebar.