Jump to content
Wikimedia Meta-Wiki

Talk:www.wiktionary.org template

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Sarri.greek (talk | contribs) at 03:48, 20 December 2021 (→‎Ring with the 6 United Nations languages: new section). It may differ significantly from the current version .

Latest comment: 2 years ago by Sarri.greek in topic Ring with the 6 United Nations languages
www.wiktionary.org — live
www.wiktionary.org template is the raw, live HTML source code of a Wikimedia project portal. Changes made there are seen by millions of people within an hour – sooner to anyone who clears their browser's cache. (Note, some portals use the deployment schedule and there will be a delay until release.) Do not edit this code unless you know what you're doing, and do not edit it by hand – intelligent Scribunto modules are ready to assist you. You can experiment with the template in the sandbox. To change language names, romanizations, etc., edit Module:Project portal/wikis. Then get the attention of a Meta administrator who can deploy your changes: place an {{Edit Protected}} notice at Talk:www.wiktionary.org template or Meta:Requests for help from a sysop or bureaucrat.

Administrators: Always follow the instructions on the edit page of www.wiktionary.org template to a tee.

Documentation

Although the portal templates themselves are permanently protected for security reasons, you are welcome to edit the staging ('/temp') portal. A Meta administrator will review your changes and copy-paste the raw (X)HTML5 code into the live portal. If a few days pass without that happening, post a friendly reminder at Talk:Www.wiktionary.org template.

The Wiktionary multilingual portal consists of four main sections: the Top 10 ring of languages surrounding the English Wiktionary logo; the search box; the stratified list of language editions; and the sister project links at the bottom. The fundamental principle behind the portal's design is quick access to most of Wiktionary's language editions without favoring one language in particular. (Until 2004, www.wiktionary.org redirected to the English Wiktionary's main page, which seemed a little anglocentric, to say the least.)

Unfortunately, designing a usable portal for choosing among hundreds of languages, while keeping the page relatively small and simple, is a hard problem. (Solutions wanted!) The status quo is to sort the languages by number of entries.

Adding a language to the portal

In order to keep the portal from growing out of control, the portal is limited to all language editions that contain 100 or more entries, as determined by the {{NUMBEROFARTICLES}} keyword or Special:Statistics. (Look for articles= at http://xx.wiktionary.org/w/api.php?action=query&meta=siteinfo&siprop=statistics, where xx is the wiki's language code.)

Note that closed wikis may not be listed in the portal.

Once a language edition reaches 100 entries, please add a notice to Wikimedia News and add it to this portal. Search the page for '100+ entries' (or '1,000+' etc.) and add this line to the list that follows:
<a href="//xx.wiktionary.org/" lang="xx">Name</a>&nbsp;
where xx is the wiki's subdomain (typically an ISO 639 code) and Name is the name of the language in that language. Use title case. Place the wiki's listing in alphabetical order by Name.
  • If the language is not written in a Latin-based script, the line should look like this:
    <a href="//xx.wiktionary.org/" lang="xx" title="Romanization">Name</a>&nbsp;
    where Romanization is the standard romanization for Name (also in title case). The romanization will appear as the link's tooltip. Place the wiki's listing in alphabetical order by romanization.
  • If the language is written from right to left, the line should look like this:
    <a href="//xx.wiktionary.org/" lang="xx" title="Romanization"><bdi dir="rtl">Name</bdi></a>&nbsp;
  • If the language is primarily written with more than one script, the line should look like this:
    <a href="//xx.wiktionary.org/" lang="xx"><span lang="xx-Xxx1">Name 1</span> / <span lang="xx-Xxx2">Name 2</span></a>&nbsp;
    where Xxx1 and Xxx2 are the ISO 15924 codes for the language's scripts (for example, 'Latn' for Latin-based alphabets).
    • If the one of the scripts is written from right to left, use a <bdi> tag instead of a <span> tag around the right-to-left text.

Promoting a language

The middle portion of the portal has sections for each power-of-ten number of entries. Once a language edition reaches 1,000 entries (or 10,000 or 100,000), its listing should be moved up a level. That's all you have to do in most cases.

Once the language edition reaches 100,000 entries, currently the second-highest level, some extra steps are necessary to add it to the search box:

  1. Search the page for 'id="language"' and add this line to the list that follows:
    <option value="xx" lang="xx">Name</option>
    
    Place the line in alphabetical order by Name. This adds the language to the dropdown menu.
    • If the language is not written in a Latin-based script, add the romanization to the end of the line, so we know how to alphabetize it:
      <option value="xx" lang="xx">Name</option><!-- Romanization -->
      
    • Do not use the dir="rtl" attribute or <bdi> tag here.
edit
Archive
Archives

Current issues

Lua error in Module:Project_portal at line 99: bad argument #1 to 'log10' (number expected, got nil).

Talk page layout

Latest comment: 9 years ago 3 comments2 people in discussion

I tried to simplify the talk page layout: Any automatically generated edit request as first section, but not before the Table of Contents + Archive. Worked as expected, however, something creates two missing items 1+2 in the ToC before the first section shown as 3rd item. Please fix this, if you have a vague idea what I'm talking about.Be..anyone (talk) 21:51, 16 February 2015 (UTC) Reply

It's coming from the collapsed "Documentation" box. – Minh Nguyễn 💬 09:45, 18 February 2015 (UTC) Reply
LoL, a clear WONTFIX, because there never was a bug, thanks. –Be..anyone (talk) 22:01, 18 February 2015 (UTC) Reply

Norwegian

Latest comment: 5 years ago 5 comments2 people in discussion

Could someone please change "Norsk (Bokmål)" on lines 143 and 230 to "Norsk (bokmål)" and "Norsk (Nynorsk)" on line 283 to "Norsk (nynorsk)"? Thanks. Jon Harald Søby (talk) 11:16, 8 November 2018 (UTC) Reply

@Jon Harald Søby: please see target I adjusted above, this page is derived from another page - is this wrong on every portal or only wiktionary? — xaosflux Talk 14:49, 8 November 2018 (UTC) Reply
@Xaosflux: Aha, I see. I just edited Module:Project portal/wikis, was that the right place? Jon Harald Søby (talk) 14:58, 8 November 2018 (UTC) Reply
@Jon Harald Søby: I just regenerated the page with your update to the module, is it better now? — xaosflux Talk 15:02, 8 November 2018 (UTC) Reply
@Xaosflux: Yes, thank you! Jon Harald Søby (talk) 15:04, 8 November 2018 (UTC) Reply

Ring with the 6 United Nations languages

Latest comment: 2 years ago 1 comment1 person in discussion

Hello, from Sarri.greek@el.wiktionary. Thank you all, and Hasley, for keeping this logo updated.
I did not realise that the members of the upper ring are based on Views. I thought, by number of articles.
Anyway, not seeing (2021.12) the Chinese or Arabic Wiktionary in the Ring, I was wondering if a policy like the following might be considered

«The Ring contains the 6 United Nations Languages (ar.en.es. fr.ru.zh) , plus .......some policy»

Regardless of number of views, or edits, or lemmata.
A policy for dictionaries (of languages) might be governed by different criteria from e.g. wikipedias.
Thank you very much. Sarri.greek (talk) 03:48, 20 December 2021 (UTC) Reply

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