Community Wishlist Survey 2020/Wiktionary/Wikicode variables usable in and between templates
Appearance
Wikicode variables usable in and between templates
- Problem: Wiktionaries organize their pages using a section for each language. However, in each template of each language section, we must add the language code, which leads to errors and a lot of repetitions
- Who would benefit: All projects needing to define a value and to use it several times. Also it would make contribution for beginners much easier.
- Proposed solution: Be able to define variables, to assign and reassign values and to use them in templates.
- More comments:
- As an example, here's what I thought for French Wiktionary:
- Define and assign the language code to the variable
lang
at the beginning of the section. - For each template which needs the language code, use the variable
lang
in the template's source code.
- Define and assign the language code to the variable
- The templates of the French Wiktionary which would benefit from this proposition are:
- the pronunciation templates
pron
,phon
andphono
- the stub templates such as
ébauche
,ébauche-étym
,ébauche-exe
, etc... - the domain and lexicon templates such as
poissons
,apiculture
,mathématiques
, etc...
- the pronunciation templates
- As an example, here's what I thought for French Wiktionary:
- Phabricator tickets:
- Proposer: Lepticed7 (talk) 15:15, 10 November 2019 (UTC)
Discussion
- Having this kind of variable or being able to identify a section of a page as describing a specific language could help a lot to deal with multilinguism. The challenge here is to not include the whole in a template as it will make it more difficult to edit, but to tag a segment where a language code is valid. It could clarify the wikicode a lot. Noé (talk) 15:39, 10 November 2019 (UTC)
Voting
Support Noé (talk) 21:45, 20 November 2019 (UTC)
Support Lepticed7 (talk) 12:32, 21 November 2019 (UTC)
Support Lyokoï (talk) 12:35, 21 November 2019 (UTC)
Support Darmo117 (talk) 14:12, 21 November 2019 (UTC)
Support Otourly (talk) 16:13, 21 November 2019 (UTC)
Support Pamputt (talk) 21:32, 21 November 2019 (UTC)
Support Wargo (talk) 23:18, 21 November 2019 (UTC)
Support Libcub (talk) 08:56, 22 November 2019 (UTC)
Support Jpgibert (talk) 14:53, 23 November 2019 (UTC)
Support JogiAsad (talk) 12:58, 25 November 2019 (UTC)
Support Tohaomg (talk) 15:08, 25 November 2019 (UTC)
Support Liuxinyu970226 (talk) 15:48, 25 November 2019 (UTC)
Support 游魂 17:07, 25 November 2019 (UTC)
Support Waddie96 (talk) 18:47, 25 November 2019 (UTC)
Support Peter Gröbner (talk) 10:25, 26 November 2019 (UTC)
Support Thibaut120094 (talk) 16:45, 26 November 2019 (UTC)
Support MarcoSwart (talk) 16:27, 29 November 2019 (UTC)
Support The Editor's Apprentice (talk) 18:58, 29 November 2019 (UTC)
Support Romainbehar (talk) 12:53, 30 November 2019 (UTC)
Support Curious (talk) 21:47, 30 November 2019 (UTC)
Support Sebleouf (talk) 18:39, 1 December 2019 (UTC)
Support Novak Watchmen (talk) 17:46, 2 December 2019 (UTC)