Template talk:superlative of

From Wiktionary, the free dictionary
Latest comment: 1 year ago by Benwing2 in topic Documentation and code do not match
Jump to navigation Jump to search

to keep superlative in line with inflection etc please add to handling of an optional tranlation parameter for use with foriegn language superlative entries. via: {{#if: {{{tr|}}}| (“{{{tr}}}”)}} OrenBochman 20:26, 4 June 2011 (UTC)Reply

That's not quite right; tr= is always for transliteration, not translation. For example, the tr= of כן is ken, not “yes”. —RuakhTALK 21:15, 4 June 2011 (UTC)Reply
an example use case is available on legtöbb. I have recently used the templates {{hu-inflection of|ír|nom|p|tr=writings}} and {{hu-conjugation of|ír|1|s|indic|present|indef|tr=I write a ...}} which have use tr as a translation.
  • I would like to avoid a debate on the best parameter name - tt, trans or whatever you think is best.
  • lets try to find remedy for adding translation into what are sematicly empty morphological definitions which are usesless to non linguists. OrenBochman 21:37, 4 June 2011 (UTC)Reply

RFM[edit]

The following discussion has been moved from Wiktionary:Requests for moves, mergers and splits.

This discussion is no longer live and is left here as an archive. Please do not modify this conversation, but feel free to discuss its conclusions.


Split off English versions of Template:comparative of and Template:superlative of[edit]

These templates currently contain code that displays additional information in the definition when the language is English. I don't think that a general, language-independent template like this should contain code that caters to a specific language in this way, so I propose splitting off all English uses of these templates to {{en-comparative of}} and {{en-superlative of}}. —CodeCat 19:43, 22 April 2013 (UTC)Reply

Support per nomination. Mglovesfun (talk) 11:16, 23 April 2013 (UTC)Reply
Weak support. - -sche (discuss) 20:33, 1 May 2013 (UTC)Reply


Documentation and code do not match[edit]

The documentation says using "adv" as the POS argument will result in it being converted to "adverb". This is not the case: see vaakst for an example.

A rather clumsy solution is to change

{{pluralize|{{#if:{{{p|}}}|{{{p|}}}|{{#if:{{{POS|}}}{{{POS|}}}|adjective}}}}}}

into

{{pluralize|{{#ifeq:{{#if:{{{p|}}}|{{{p|}}}|{{#if:{{{POS|}}}{{{POS|}}}|adjective}}}}|adv|adverb|{{#if:{{{p|}}}|{{{p|}}}|{{#if:{{{POS|}}}{{{POS|}}}|adjective}}}}}}}}

It basically checks if the argument to pluralize is "adv". If it is, change it to "adverb". Otherwise, keep the argument as it is. Perhaps there's a better way, but I believe this works.

Alternatively, the documentation and vaakst can be changed to remove the false advertising. PetraMagna (talk) 02:13, 16 May 2023 (UTC)Reply

@Benwing2 Since you dealt with the inconsistency between the code and the doc before, could you try to resolve this one as well? Thanks! PetraMagna (talk) 02:15, 16 May 2023 (UTC)Reply
@PetraMagna I'm not quite sure why I put the thing about adv working. I think it's best to just require the full part of speech, since that is how it is elsewhere; I fixed the doc appropriately. Benwing2 (talk) 02:24, 16 May 2023 (UTC)Reply