User talk:Yair rand/newentrywiz.js

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Start a new discussion

Contents

Thread titleRepliesLast modified
New entry creator fails for uncountable nouns in Portuguese004:47, 5 August 2023
Vietnamese Wiktionary006:28, 13 February 2022
Link for blank Entry Creator100:08, 29 December 2021
Edit request: add Lithuanian forms014:24, 22 September 2021
μέλιτος001:05, 23 August 2020
Proverb heading is missing423:30, 8 October 2019
Add customization of default lang419:36, 25 September 2019
Wikifying definitions with only one word automatically011:58, 22 September 2019
Need to support Tagalog000:22, 20 October 2018
Appendix article016:30, 17 July 2017
Words with several parts of speech002:32, 19 April 2017
Ancient Greek018:56, 7 March 2016
Hindi?802:50, 30 October 2015
nomask4WEBSITEquote002:43, 17 June 2015
pl.confer w/zh-editrs006:29, 14 June 2015
greatfnctn,ta!!023:29, 13 June 2015
Proposal for feature617:03, 13 May 2015
Polish participles000:56, 22 December 2014
Russian adverbs210:23, 21 November 2014
Documentation117:48, 27 June 2014
First pagePrevious pageNext pageLast page

New entry creator fails for uncountable nouns in Portuguese

Edited by another user.
Last edit: 04:47, 5 August 2023

Hi there! First of all, superb work with the entry creation form — it's super convenient and very well done!

I did find a small bug, though. When creating a Portuguese noun, if I pick the "uncountable" option, it generates {{pt-noun|f|pl=-}}, which results in an error from Module:pt-headword, saying that the pl parameter is not recognized. The correct syntax appears to be as an anonymous parameter, i.e. {{pt-noun|f|-}}.

--Waldyrious (talk)08:16, 23 April 2023

Vietnamese Wiktionary

Edited by another user.
Last edit: 12:04, 25 December 2013

FYI, back in October, I developed a new entry wizard for the Vietnamese Wiktionary. (The gadget is on by default for all users.) I took a different approach with this wizard: you answer a set of questions, then press Next, at which point you get a chance to preview the wikitext and make corrections. Some of the highlights:

  • Automatically links key words in your definitions (using the API to search for compound words)
  • Sorts languages in the translations section
  • Pre-fills the regular inflection forms for English words
  • Provides a search bar for language dropdown menus
  • Provides access to the regular edit form the same way VisualEditor does: with a separate "Edit source" tab

The big giant caveat is that it only handles basic information at the moment. It'll take time for this gadget to mature, as I'm sure it has for the New Entry Creator.

I don't think the gadget would be directly portable to this wiki, due to major syntactic differences – the Vietnamese Wiktionary is very template-heavy thanks to early influence from Dutch Wiktionarians – but perhaps the workflow and jQuery UI code could be of use.

Here's the source code and a writeup in English. Go ahead and take it for a spin. The steps are:

  • Ngôn ngữ — language (required)
  • Từ loại — part of speech (required)
  • Biến cách — inflection (for the time being, only nouns, adjectives, and adverbs in English and Spanish)
  • Ngữ nghĩa — definitions (required)
  • Từ đồng nghĩa – synonyms
  • Bản dịch – translations (only shown for Vietnamese entries)

The wizard is intended to be used in conjunction with an autolinking gadget, a table of contents gadget, and a support library for mapping language codes to language names. Those components may be more reusable.

If you'd like further explanation/translation to better understand these gadgets, please let me know!

Minh Nguyễn (talk, contribs)11:46, 25 December 2013

Link for blank Entry Creator

Hi! I think it would be SUPER useful if there could be a link for a blank page of the Entry Creator so one can easily enter any word without having to search it in the wiktionary search bar first.

Frumerfuchs (talk)09:50, 24 December 2021

@Frumerfuchs you can use this code to create a box with NEC:

Here is a demo:


Balyozxane (talk)00:08, 29 December 2021
 

Edit request: add Lithuanian forms

I have tested this and believe it to be correct.

70.175.192.21706:39, 22 September 2021

μέλιτος

There is no entry for μέλιτος, which is a genitive form of the word, μέλι in Attic Greek. I am no expert at creating an entry so I thought I would put that to the community. My interest is in the root of diabetes mellitus, which is current in the medical literature regarding Sars-Cov-2. I have traced it to διαβήτης μέλιτος. διαβήτης means passing through (https://en.wiktionary.org/wiki/%CE%B4%CE%B9%CE%B1%CE%B2%CE%AE%CF%84%CE%B7%CF%82#Ancient_Greek), and μέλιτος is the genitive noun form meaning "of honey", so interestingly, it means "passing through of honey", a probable occurrence in Ancient Greece by some people if they suffered from diabetes. There seems to be no Latin root to diabetes; it is directly imported into English from Greek, unlike many Greek words which were used by the Romans in Latin. I have not checked other Internet or book sources, only Wiktionary for my information. I'm eager for what the community might find!

Ogobeone (talk)01:05, 23 August 2020

Proverb heading is missing

Please add it to the dropdown list.

So9q (talk)11:59, 22 September 2019
Edited by another user.
Last edit: 23:30, 8 October 2019

This should be very straight forward. Add to these lists:

//insert at line 111
proverb: ['{{en-proverb', '}}'],

// add proverb in this list and please sort it also a-z
var necposlist = ['Noun', 'Verb', 'Adjective', 'Adverb', 'Pronoun', 'Conjunction', 'Interjection', 'Preposition', 'Proper noun', 'Article', 'Prepositional phrase', 'Contraction', 'Prefix', 'Suffix', 'Symbol', 'Letter', 'Idiom', 'Phrase'];
So9q (talk)19:53, 25 September 2019

Done.

Eru·tuon03:40, 7 October 2019

Unfortunately your edit broke the NEC. It no longer reacts to changes in noun-verb, etc

So9q (talk)07:03, 7 October 2019

I finally noticed your response and undid my edit. I don't really understand the gadget, so won't attempt a fix.

Eru·tuon23:28, 8 October 2019
 
 
 
 

Add customization of default lang

Hi, could someone with edit rights let the langcode be set by something like this:

	if (typeof window.CustomNECDefaultLanguage == 'undefined') {
    // window.CustomNECDefaultLanguage is not defined, set to defaults
    window.CustomNECDefaultLanguage = 
    "en";
	}
So9q (talk)11:55, 22 September 2019

I do not see how that sole if statement is going to add support of customization.

Dixtosa (talk)13:50, 22 September 2019

I did something like that in this script and it works fine. User:So9q/TranslationAdder-InputFiller.js

So9q (talk)14:34, 22 September 2019

But this script has to use this CustomNECDefaultLanguage somehow.

Dixtosa (talk)18:22, 25 September 2019

Yes of course.

What about this:

	if (typeof window.CustomNECDefaultLanguage == 'undefined') {
    // window.CustomNECDefaultLanguage is not defined, set to defaults
    window.CustomNECDefaultLanguage = 
    "en";
	}
    var neccode = window.CustomNECDefaultLanguage; // this replaces line 21
So9q (talk)19:36, 25 September 2019
 
 
 
 

Wikifying definitions with only one word automatically

Could that be added? Alternatively to wikify all words in the definition? If you want you can add a checkbox to turn it off and leave it on by default.

So9q (talk)11:58, 22 September 2019

Need to support Tagalog

May you add this code to support Tagalog headword-line templates? I just added further support for basic verb inflections in Tagalog verbs, and labelling for Tagalog noun and verb roots to the Tagalog headword module Module:tl-headword, but all the basic Tagalog headword templates deployed using that module is not yet supported in New Entry Creator.

	tl: {
		noun: ['{' + '{tl-noun', '}}'],
		verb: ['{' + '{tl-verb', '}}'],
		adjective: ['{' + '{tl-adj', '}}'],
		adverb: ['{' + '{tl-adv', '}}'],
		propernoun: ['{' + '{tl-proper noun', '}}']
TagaSanPedroAko (talk)00:22, 20 October 2018

Appendix article

How to create an appendix article using the new entry creator?

Mihxal (talk)16:30, 17 July 2017

Words with several parts of speech

Using this script one can create entries with different meanings provided they have the same part of speech. Would it be possible to add the possibility to add meanings with different parts of speech? For example like in this entry.

MuDavid (talk)02:32, 19 April 2017

Ancient Greek

Could you make a few things automatically generate for Ancient Greek (grc) entries? Etymology, pronunciation, headword templates, inflection (for nouns, adjectives, pronouns). I've been using the entry creator and it would make things easier (less typing).

Eru·tuon18:56, 7 March 2016

Can this section be added: User:Aryamanarora/Hindi editor.js

It should work for Hindi.

Aryamanarora (talk)23:48, 28 October 2015

I have no idea what that is.

CodeCat00:24, 29 October 2015

Uh, Codecat, this conversation is taking place on User talk:Yair rand/newentrywiz.js. I'm just asking someone to add Hindi to the entry creator.

Aryamanarora (talk)01:06, 29 October 2015

That's confusing, it looked just like a talk page message to me. I'll unwatch this page...

CodeCat01:14, 29 October 2015

That's the problem with liquid threads. I don't know why people use them in their talk pages. The changes appear in "New Messages" in the top right corner if you're watching a page, doesn't matter if it's a message to you or someone else. If you want the messages there only for yourself, then you have to unwatch all others.

Anatoli T. (обсудить/вклад)00:09, 30 October 2015

So...do you happen to have editing rights to this entry creator? I'd really like the following code added if you do: User:Aryamanarora/Hindi editor.js.

Aryamanarora (talk)02:10, 30 October 2015
 
 
 
 
 

nomask4WEBSITEquote

+'dAFTRKLIKINdacursor autoapearI/DAmaskPL?1.163.104.51 02:42, 17 June 2015 (UTC)

1.163.104.5102:43, 17 June 2015

pl.confer w/zh-editrs

theywantweaxi=sur..

36.231.97.15006:29, 14 June 2015

greatfnctn,ta!!

pl.ad'refs'sctntho

36.231.97.15023:29, 13 June 2015

Proposal for feature

Veeery nice addition to the page. What's in there works very well. What might enhance it even more is a section for qualifiers, potentially with a dropdown of the standard ones. (The ones which link to our glossary.)

Korn (talk)09:43, 13 May 2015

I'm not sure what addition you mean, can you elaborate?

CodeCat10:13, 13 May 2015

As it is now, qualifiers have to be added in the standard text field. I thought of adding a line for it to the tool like there is for "part of speech".

Korn (talk)10:22, 13 May 2015

I still don't understand. What tool are you referring to?

CodeCat12:50, 13 May 2015

The entry creator.

Korn (talk)12:56, 13 May 2015

CodeCat, I think you got a mixup with your liquid threads somewhere. This conversation is taking place at User_talk:Yair_rand/newentrywiz.js. (Either that or you need to stop hanging out in the coffee shop.)

Korn (talk)13:00, 13 May 2015
 
 
 
 
 

Polish participles

There is a new Template:pl-participle for Polish participles. It takes one positional parameter which specifies the type of the participle:

  • aadj or actv-adj: active adjectival
  • padj or pasv-adj: passive adjectival
  • aadv or antr-adv: anterior adverbial
  • cadv or cont-adv: contemporary adverbial

Would be useful to add this to the NEC.

Also it would save some time if the pronunciation section for Polish entries was pre-populated with * {{pl-IPA}} when adding it.

Tweenk (talk)00:56, 22 December 2014

Russian adverbs

@Kephir Could you add an optional (for qualitative adverbs only) comparative form to adverbs as a second unnamed parameter, pls? Example: {{ru-adv|хорошо́|лу́чше}} Also, for any term pronunciation is using {{ru-IPA}} (takes a stressed form) with optional |phon= parameter, e.g. {{ru-IPA|хорошо́}}, {{ru-IPA|экземпля́р|phon=экзэмпля́р}}. It would be great if they are added automatically to new entries.

Anatoli T. (обсудить/вклад)21:52, 20 November 2014

(Pings do not work in LQT. Apparently they never will, though you may ask bugzilla:/phabricator: about it.)

I did the adverbs. Pronunciations would need much more work.

Keφr10:21, 21 November 2014

Thanks for that. :)

Anatoli T. (обсудить/вклад)10:23, 21 November 2014
 
 

Documentation

I would really appreciate it if there could be a User:Yair rand/newentrywiz.js/documentation, which details not just how to use the script, but also how it works and how to make changes to parts of it. That would help with maintainining things a lot, and also make it easier to fix if things get broken.

CodeCat18:51, 8 January 2014

Seconded!

Brainy J (talk)17:48, 27 June 2014
 
First pagePrevious pageNext pageLast page