To be entered by supporters. I imagine something like this: let all wikilinking be based on {{l}}
as far as possible so that the target language of the link is always specified. --Dan Polansky (talk) 08:20, 6 July 2016 (UTC)
I have a separate proposal. Create a new template, possibly named Template:def, and use it around the whole text (except the "#") of each definition that is not {{n-g}}
or {{form of}}
. The template {{def}}
should work exactly the same as {{l|en}}
. See the code below, and note that in the end result, the links are anchored to the English section, without the cumbersome addition of "{{l|en|...}}" in every link:
Rationale:
I like that the code below is anchored diretly to the English section, but I dislike that the "{{l|en|...}}" makes the code more cumbersome to read.
I dislike that the code below is not anchored diretly to the English section, but I like that the code is easier to read.
The {{def}}
I proposed above has both items I like and none of the things I dislike. --Daniel Carrero (talk) 10:52, 6 July 2016 (UTC)
{{d}}
as a shortcut rather than {{def}}
. See Wiktionary:Grease pit/2012/June#A template for linking English terms to their definitions. —CodeCat 14:40, 6 July 2016 (UTC)
{{d}}
would look good in definitions as you suggested IMO, but it is currently a shortcut to {{delete}}
. Apparently people are already used to using {{d}}
to ask for quick deletion of entries, and would have to change their habits if {{d}}
became a definition template. With that in mind, I consider {{def}}
to be the second best choice at the moment, and I'd be happy to use it. --Daniel Carrero (talk) 09:11, 7 July 2016 (UTC)
{{d}}
is used as a deletion tag on almost all Wikimedia projects, so I would be loath to change it here. —Aɴɢʀ (talk) 09:45, 7 July 2016 (UTC)
{{d}}
is highly desirable. It would be used much more often than {{delete}}
. —CodeCat 20:45, 10 July 2016 (UTC)
{{def}}
is way better since anyone can understand what it stands for. — Dakdada 08:51, 11 July 2016 (UTC){{def}}
is better than {{d}}
. --WikiTiki89 15:14, 11 July 2016 (UTC)I believe it's not possible to do it in the first place, but if it were possible, I'd prefer doing this: creating two new templates, {{def-top}}
and {{def-bottom}}
, and placing them above and below every definition list. The point is, they should be able to automatically turn all ]
links into {{l|en|...}}
links.
{{def-top}} # A ] used in ]s. # A ] ] ]. {{def-bottom}}
P.S.: The example word is bat, and I realize I placed two senses from different etymologies together.
--Daniel Carrero (talk) 15:21, 11 July 2016 (UTC)
{{def| # A ] used in ]s. # A ] ] ]. }}
{{def}}
template proposed on the talk page can be implemented." Naturally, this was before {{def}}
was created. Once {{def}}
was created, he withdrew his support and cast an oppose vote.{{def}}
. --Daniel Carrero (talk) 01:24, 27 July 2016 (UTC)
{{def}}
I think it would be better to use that instead in the long run. —CodeCat 01:28, 27 July 2016 (UTC)
{{def}}
for the whole set of definitions, as shown by @Wikitiki89 above? --Daniel Carrero (talk) 01:49, 27 July 2016 (UTC)
{{def}}
can be used across multiple definitions as in Wikitiki's example, but it leaves extra blank space above it. I'm sure that's easy to fix, though. —Aɴɢʀ (talk) 08:04, 27 July 2016 (UTC)At the moment, if we remove the space between the headword line and the definitions, {{def}}
seems to work perfectly, without leaving the extra blank space you mentioned. The code would be like this: (but I'd prefer not having to do it this way; I hope the module can be fixed)
===Noun=== {{en-noun}} {{def| # A ] used in ]s. # A ] ] ]. }}
--Daniel Carrero (talk) 08:10, 27 July 2016 (UTC)
I think it is a bad idea to use a template for the whole list of definitions. I actually think that it is the perfect opportunity to unify the various sense templates into a better structure, i.e.: {{senseid}}
, {{label}}
, and of course {{l}}
(and maybe others). For example:
=== Noun === {{en-noun}} # {{def| A ] used in ]s. | label = sports | senseid = sport_tool }} # {{def| A ] ] ]. | label = zoology, mammal | senseid = flying_mammal }}
If the def is used for non-English word, there would be a lang parameter too (not used for the links in the def of course). Note the label part which avoids the use of | for the more natural comma (yet easily parsable). — Dakdada 10:58, 27 July 2016 (UTC)
{{lb}}
currently lumps together, e.g. subject=zoology
(for zoological technical terms, not for everyday names for animals), register=colloquial
, or dialect=Australia
. —Aɴɢʀ (talk) 18:46, 27 July 2016 (UTC)I'd like to do this using one line per definition.
=== Noun === {{en-noun}} # {{def|sports_tool|sports|A ] used in ]s.}} # {{def|flying_mammal|zoology, mammal|A ] ] ].}}
Or:
=== Noun === {{en-noun}} # {{def|flying_mammal|register=foo|dialect=bar|subject=zoology|A ] ] ].}}
--Daniel Carrero (talk) 19:51, 27 July 2016 (UTC)
If adding the senseid and/or the label (register/subject/etc.) in the {{def}}
makes it messy to read, then I prefer doing as I suggested in the first message of this thread. In my opinion, the whole point of {{def}}
is to provide links to the English section when the language is unspecified. The rest can be done with separate templates.
{{def| # {{senseid|sports_tool}} A ] used in ]s. # {{senseid|flying_mammal}} {{lb|zoology|mammal}} A ] ] ]. }}
Changing {{lb}}
to allow for "register=", etc. is another idea:
{{def| # {{senseid|sports_tool}} A ] used in ]s. # {{senseid|flying_mammal}} {{lb|subject=zoology|whatever=mammal}} A ] ] ]. }}