Talk:www.wiktionary.org template

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search
Project portals www.wiktionary.org portal — live Staging area
www.wiktionary.org template contains the actual, raw HTML code that is displayed at http://www.wiktionary.org/. It is protected to prevent the insertion of malicious scripts or objects. Changes to the template will be displayed to visitors within one hour, but you can usually see them immediately once you clear your browser's cache.

Though www.wiktionary.org template is protected, the staging area is not: anyone can propose changes and updates there (detailed instructions).

Administrators: Always make your changes to www.wiktionary.org template/temp before copying them to www.wiktionary.org template, to keep the two pages in sync.
Archive
Archives

Contents

[edit] 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.

[edit] 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" dir="rtl" title="Romanization"><bdi>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.

[edit] 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 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.
  2. Search the page for 'for="searchInput"' and add this line to the list that follows:
    <span lang="xx">Search</span>&nbsp;
    where Search is the content of the page at 'MediaWiki:Search' at that wiki. Place the line in descending order by number of entries. This adds 'search' to the search box's label.
    • Use the dir="rtl" and title="Romanization" attributes and <bdi> tag as necessary.
  3. Edit the JavaScript code at Www.wiktionary.org template/js:
    1. Search the page for 'var langs =' and add xx, to the list that follows, where xx is the wiki's subdomain, in alphabetical order by the language's name for itself (Name in the steps above). (Note that this list must end with a comma.) Hit Save.
    2. Copy the entire code block in the 'Development version' section and paste it into the /packer/ tool. Check 'Shrink variables' and hit Pack. Copy the resulting code.
    3. In the 'Released version' section, replace the big chunk of gobbledygook between <source lang="javascript"> and </source> with the code you just copied from /packer/. Hit Save.
  4. Back to the /temp page: search for 'Www.wiktionary.org_template/js' in the code there. Replace the big chunk of gobbledygook between that line and // end js with the code you copied from /packer/. All this to choose the language automatically in the search box if the user speaks the language.

[edit] Discussion

[edit] Kannada Wiktionary is now 100,000 +

Kannada Wiktionary is now 1,00,000+ Please update the www.wiktionary.org page to reflect the same and also the search box on the main page www.wiktionary.org - Vivek Shankar The preceding unsigned comment was added by ವಿವೇಕ್ ಶಂಕರ್ (talk • contribs) 09:57, 4 April 2011 (CET).

Yes check.svg Done, I've added Kannada to the search field as well, it would be great if you could confirm that everything is all right - Hoo man (talk) 14:49, 4 April 2011 (UTC)

I have checked and everything seems all right. Thanks for the updation - Vivek Shankar

[edit] ml.wikt - 100,000+ entries

{{editprotected}} Please move Malayalam (മലയാളം) wiktionary (ml.wikt) to the 100,000 definition category. Thanks ! --Jacob (talk) 18:59, 24 March 2012 (UTC)

Symbol wait.svg Doing... -Barras talk 12:46, 25 March 2012 (UTC)
And Yes check.svg Done. -Barras talk 13:02, 25 March 2012 (UTC)

[edit]

Maybe it's time has already come to replace "English-centric" logo to new version? --Kaganer (talk) 09:46, 4 April 2012 (UTC)

That's actually the "old" new logo. The new logo is this. --Yair rand (talk) 12:08, 4 April 2012 (UTC)
The different language versions use different logos - perhaps it would be best to get some form of consistency between the logos usage on each of the Wiktionary sites first, then we can decide which one it best to use for the main page? The Helpful One 12:14, 4 April 2012 (UTC)
Anyway, there is no representative consensus. The failure history. --Kaganer (talk) 13:51, 4 April 2012 (UTC)

[edit] Update required

Li.wikt reached 100.000 articles today with wikt:li:vach. --OosWesThoesBes (talk) 12:43, 19 May 2012 (UTC)

Personal tools

Variants
Actions
Navigation
Community
Beyond the Web
Print/export
Toolbox