User talk:Adam78

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Archive: January 2019 – October 2023.

rézen, rezen[edit]

If you want to add a second superessive form to réz and tehén, the correct template is {{hu-decl-ek}}. The old declension used {{hu-decl-ek|tehé|n|et|stem=tehen|sup=tehén}} which displayed the same table as the current {{hu-infl-nom|tehene|e|stem2=tehén}}. Also check out {{hu-decl-ok}} for the documentation of the sup parameter (this documentation should also be added to {{hu-decl-ek}}). The spe_sg line is getting too complex for me to make changes. Panda10 (talk) 21:11, 27 November 2023 (UTC)[reply]

Thank you! I think I managed to expand it. (The parameter "stem" could also be documented, although there is an example for its use below.) Adam78 (talk) 22:18, 27 November 2023 (UTC)[reply]

Suffix definition format[edit]

I'm in the process of updating the suffixes to bring them up to standard. I'm almost done with the conjugational suffixes but since some of them are identical to noun-forming suffixes, I'd like to know what you think about adding {{ngd}} and rephrasing the definition.

Example current format:

(noun-forming suffix) Added to a noun or a verb to form a noun.

Proposed format (with {{ngd}} and rephrasing):

(noun-forming suffix) Forms nouns from nouns and verbs.

Finnish editors use the latter. Another option is to leave it as is, or just adding {{ngd}}. Thanks. Panda10 (talk) 19:24, 10 January 2024 (UTC)[reply]

This might not be a good idea. I'm reading other definitions, such as "Added to a stem to form a verb to indicate repetitive action. No longer productive.", or "Added to a cardinal number to form a fraction." Not sure how to rephrase these if I wanted to follow the above proposal. Maybe I just should add {{ngd}}. Panda10 (talk) 21:25, 10 January 2024 (UTC)[reply]

Hi - please don't blindly copy templates from Wikipedia. Theknightwho (talk) 19:16, 17 March 2024 (UTC)[reply]

Okay. Could you please adjust it so it can work? Adam78 (talk) 19:17, 17 March 2024 (UTC)[reply]
@Adam78 The correct template is Template:str rightmost. In future, please ask at the WT:Grease pit if you don't know, because copying templates from Wikipedia leads to a lot of duplication and creates a maintenance headache for those of us who maintain templates and modules. Theknightwho (talk) 19:19, 17 March 2024 (UTC)[reply]

@Theknightwho I'm afraid you overlooked something. "Crop" was meant to remove the last N characters, while rightmost results in the rightmost N characters. I need the former function, so {{crop|abcd|1}} should yield "abc", rather than "d" (the result of str rightmost). So what is the recommended procedure now? Adam78 (talk) 19:27, 17 March 2024 (UTC)[reply]

@Adam78 {{#invoke:string|sub|[your string]|1|-2}} will crop the final character. Theknightwho (talk) 19:35, 17 March 2024 (UTC)[reply]
Thank you! I thought I'd have to resort to #expr and str len, but this solution is nicer.
You might as well consider creating an appropriate "str crop" though, since it exists on Wikipedia, so users can rightfully expect it to exist on Wiktionary as well, which is specialized in manipulating words. Adam78 (talk) 19:42, 17 March 2024 (UTC)[reply]
@Adam78 The issue with templates like that is that they don't have very intuitive names, whereas the functions in Module:string are generally more powerful which means they can be applied in a wider set of circumstances. That makes code easier to understand, compared to having {{str right}}, {{str rightmost}}, {{str left}}, {{str crop}} etc. all doing similar but slightly different things. Theknightwho (talk) 19:51, 17 March 2024 (UTC)[reply]