Template talk:sv-decl-noun
Inflection, conjugation, and declension template names
edit[[:Category:Inflection templates]] are used immediately after the POS header to show the headword and a brief summary of its key forms. Most are named with the language code, a dash, the part of speech, and the inflection class (e.g. {{en-noun-reg}}
)), but some also include "infl" (e.g. {{en-infl-reg-other-e}}
).
Most Category:Conjugation and declension templates contain "-conj-" or "-decl-" in their names and are used in a separate section to show a table of the headword's various forms.
Unfortunately, some templates (e.g. {{nl-noun}}
, {{sv-noun}}
, and {{fr-infl-adj}}
) blur the separation of the two template types by having inflection-template-like names but displaying as a declension table.
For consistency, I propose the following naming conventions for inflection, conjugation, and declension templates:
- Inflection templates are named with the language code, followed by a dash and the part of speech, followed optionally by a dash and the inflection class.
- Examples:
{{en-noun-reg}}
,{{fr-adj}}
- Examples:
- Conjugation templates are named with the language code, followed by "-conj-", followed by the conjugation class.
- Examples:
{{la-conj-1st}}
and{{es-conj-ar}}
- Examples:
- Declension templates are named with the language code, followed by "-decl-", followed by the declension class.
- Examples:
{{de-decl-noun}}
and{{la-decl-3rd}}
after their language code.
- Examples:
For yet more consistency, I hope we can decide whether the inflection line should consistently display as a table (like {{en-noun2}}
) or like a traditional dictionary inflection line (like {{en-noun-reg}}
). I expect that issue has been discussed at length to no resolution. If we have agreed to disagree regarding the traditional/table style for inflection lines, I propose we use CSS magic to allow users to choose whether they want to see tables. How does that sound? Rod (A. Smith) 19:33, 27 May 2006 (UTC)
- Fine, but
{{nl-noun}}
is an inflection template, for usage on the inflection line. —Vildricianus 19:51, 27 May 2006 (UTC)
- Great. I was confused because it displays a declension table. I suggest moving the declension table from it into
{{nl-decl-noun}}
, which would display in its own "Declension" section to match the format of languages with large declension and conjugation tables. I'd be quite happy to do the work, but I think I need approval before I start splitting up templates like that. Does that sound OK to you? Rod (A. Smith) 20:51, 27 May 2006 (UTC)- I see you're meaning to introduce more uniformity across languages. I can only encourage that :-). I thought the table to the right of the inflection line was pretty nice, but it's probably equally nice in its own section. —Vildricianus 00:13, 28 May 2006 (UTC)
- Great. I was confused because it displays a declension table. I suggest moving the declension table from it into
{{{genus}}}
editWhy does this template say {{{genus}}} at the top? What significance does that line have? If none, can it be removed? Cheers! bd2412 T 04:02, 2 September 2006 (UTC)
- It was a failed attempt to modernize the design - the corresponding template on sv.wikt was imported without translating anything. \Mike 15:52, 2 September 2006 (UTC)
- Thanks for fixing it. bd2412 T 18:01, 2 September 2006 (UTC)
Some words are long
edit- Moved here from User talk:CodeCat'
Cases like massförstörelsevapen and vapenstilleståndsförhandling call for a widening of {{sv-decl-noun}}
. What width is appropriate? Should it be made floating instead of fixed? --LA2 17:39, 17 November 2010 (UTC)
- I'm not sure. I guess you should just try and see what works. —CodeCat 17:40, 17 November 2010 (UTC)
- Maybe 100%, like
{{de-conj}}
. That way, it will automatically adapt to the screen width. -- Prince Kassad 17:40, 17 November 2010 (UTC)
- I removed the width=50em from the surrounding frame, so the table now expands to 100%. I'm not happy with the looks for short words, but it is an improvement for longer words. --LA2 18:08, 17 November 2010 (UTC)
- It's a shame the template can't automatically change the size based on the length of the word. We'd need string length and number comparisons for that to work. —CodeCat 22:45, 18 November 2010 (UTC)
- The table will adjust if the 100% is removed, but i don't know how to make the outer div frame follow the table. --LA2 03:23, 19 November 2010 (UTC)
Design
editThe design should be switched to this:
Declension of {{{lemma}}}{{{info}}} | ||||
---|---|---|---|---|
Singular | Plural | |||
Indefinite | Definite | Indefinite | Definite | |
Nominative | {{{indf_nom_sg}}} | {{{defn_nom_sg}}} | {{{indf_nom_pl}}} | {{{defn_nom_pl}}} |
Genitive | {{{indf_gen_sg}}} | {{{defn_gen_sg}}} | {{{indf_gen_pl}}} | {{{defn_gen_pl}}} |
--Per utramque cavernam (talk) 23:36, 24 December 2017 (UTC)
- @Per utramque cavernam: done. In any case, any edit to Module:sv-nouns should also be applied here. [ˌiˑvã̠n̪ˑˈs̪kr̺ud͡ʒʔˌn̺ovã̠n̪ˑˈt̪ɔ̟t̪ːo] (parla con me) 19:11, 30 May 2018 (UTC)
- The parameter {{{definitions|}}} disappeared in the changes in May 2018. As a result, spann#Swedish now has three declension tables without any mark-up of which belongs to which of the five definitions. --LA2 (talk) 14:45, 9 December 2018 (UTC)
{{{1}}} is a link when it shouldn't
edit{{{1}}} represents the base form, yet it's still made as a link even though it's linking to the page you're looking at. Best example is recept#Swedish where the first declension table uses a template that uses this template; which makes the base for a link. But the second declension table uses an invoke function, and the base for is not a link, like it should be. Liggliluff (talk) 11:40, 15 August 2021 (UTC)