Template talk:is-noun

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

Suggested change[edit]

Allow both 1 and g for the gender. I plan on moving the documentation to the documentation subpage, and it would make sense to make any other minor changes as well. For example, use a 'standard' headword foruma ({{Latn|{{{head|{{PAGENAME}}}}}|lang=is|face=head}} ). Mglovesfun (talk) 13:54, 5 April 2011 (UTC)[reply]

It actually has a 1 parameter, but it genuinely only allows feminine, not neuter or masculine. For some reason. There seems to be a lot of redundant code here and I can't figure if it's redundant or just does something clever that I can't work out; i'd just do something like:
{{#switch:{{{g|{{{1}}}}}}|m=...}}

etc. (without writing it all out). Either it doesn't do that because that wouldn't work, or just the person who wrote the template didn't know that this was allowable. Seem to think I found this code in {{es-noun}} and have since used in elsewhere. Mglovesfun (talk) 13:46, 8 April 2011 (UTC)[reply]

Oh even better; the code is {{is-noun|f}} for feminine, but {{is-noun|g=m}} and {{is-noun|g=n}} for neuter, and they're not interchangeable at all! Love it! Mglovesfun (talk) 13:50, 8 April 2011 (UTC)[reply]