User talk:Yair rand/newentrywiz.js
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
New entry creator fails for uncountable nouns in Portuguese | 0 | 04:47, 5 August 2023 |
Vietnamese Wiktionary | 0 | 06:28, 13 February 2022 |
Link for blank Entry Creator | 1 | 00:08, 29 December 2021 |
Edit request: add Lithuanian forms | 0 | 14:24, 22 September 2021 |
μέλιτος | 0 | 01:05, 23 August 2020 |
Proverb heading is missing | 4 | 23:30, 8 October 2019 |
Add customization of default lang | 4 | 19:36, 25 September 2019 |
Wikifying definitions with only one word automatically | 0 | 11:58, 22 September 2019 |
Need to support Tagalog | 0 | 00:22, 20 October 2018 |
Appendix article | 0 | 16:30, 17 July 2017 |
Words with several parts of speech | 0 | 02:32, 19 April 2017 |
Ancient Greek | 0 | 18:56, 7 March 2016 |
Hindi? | 8 | 02:50, 30 October 2015 |
nomask4WEBSITEquote | 0 | 02:43, 17 June 2015 |
pl.confer w/zh-editrs | 0 | 06:29, 14 June 2015 |
greatfnctn,ta!! | 0 | 23:29, 13 June 2015 |
Proposal for feature | 6 | 17:03, 13 May 2015 |
Polish participles | 0 | 00:56, 22 December 2014 |
Russian adverbs | 2 | 10:23, 21 November 2014 |
Documentation | 1 | 17:48, 27 June 2014 |
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|-}}
.
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!
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 you can use this code to create a box with NEC:
Here is a demo:
I have tested this and believe it to be correct.
lt: {
noun: ['{{lt-noun', '}}',
['Gender', '', [
['unknown', ''],
['masculine', '|m'],
['feminine', '|f'],
['masculine plural', '|m-p'],
['feminine plural', '|f-p']
]],
['Stress-marked form', '', [
['none', ''],
['input', ' ', '|head=']
]],
['Plural', '', [
['none', ''],
['input', ' ', '|2=']
]],
['Stress pattern', '', [
['none', ''],
['input', ' ', '|3=']
]],
['Female equivalent', '', [
['none', ''],
['input', ' ', '|f=']
]],
['Male equivalent', '', [
['none', ''],
['input', ' ', '|m=']
]],
],
propernoun: ['{{lt-proper noun', '}}',
['Gender', '', [
['unknown', ''],
['masculine', '|m'],
['feminine', '|f'],
['masculine plural', '|m-p'],
['feminine plural', '|f-p']
]],
['Stress-marked form', '', [
['none', ''],
['input', ' ', '|head=']
]],
['Plural', '', [
['none', ''],
['input', ' ', '|pl=']
]],
['Stress pattern', '', [
['none', ''],
['input', ' ', '|2=']
]],
],
adjective: ['{{lt-adj', '}}',
['Masculine form', '', [
['none', ''],
['input', ' ', '|m=']
]],
['Feminine form', '', [
['none', ''],
['input', ' ', '|f=']
]],
['Neuter form', '', [
['none', ''],
['input', ' ', '|n=']
]],
['Stress pattern', '', [
['unknown', ''],
['input', ' ', '|3=']
]],
],
verb: ['{{lt-verb', '}}',
['Stress-marked version', '', [
['none', ''],
['input', ' ', '|head=']
]],
['Third-person present', '', [
['none', ''],
['input', ' ', '|1=']
]],
['Third-person past', '', [
['none', ''],
['input', ' ', '|2=']
]],
['Reflexive?', '', [
['no/unknown', ''],
['yes', '|3=r']
]],
],
adverb: ['{{lt-adv', '}}',
['Stress-marked version', '', [
['none', ''],
['input', ' ', '|head=']
]],
['Comparative (stem without -iau)', '', [
['unknown', ''],
['not comparable', '|1=-'],
['input', ' ', '|1=']
]],
],
},
|
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!
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'];
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";
}
I did something like that in this script and it works fine. User:So9q/TranslationAdder-InputFiller.js
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', '}}']
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.
Can this section be added: User:Aryamanarora/Hindi editor.js
It should work for Hindi.
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.
That's confusing, it looked just like a talk page message to me. I'll unwatch this page...
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.
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.
+'dAFTRKLIKINdacursor autoapearI/DAmaskPL?1.163.104.51 02:42, 17 June 2015 (UTC)
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.)
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".
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.
@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.
(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.
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.