Template talk:Welcome-foreign

Latest comment: 2 months ago by Anomalocaris in topic Multi colon escape

Section header treatment

edit

The template currently generates two section headings, one above the English text, and a second one above the foreign text. The former is contained in the template code, and the foreign header is in the individual language-specific subpage. These languages subpages normally contain a level three heading in the foreign language, aside from a couple of subpages that have no heading.

Currently, use of the template adds two section headers to the page, one in English (typically, "Welcome!") at the top, and one in the user language (e.g., French: "Bienvenue!") above the foreign text, both of them at level 3 (subsection headers). Having just one section header would be more consistent with most of the other welcome templates. A combination of the two expressions might be nice, such as: Welcome! — Bienvenue! for French, Welcome! — ¡Bienvenido! for Spanish, and so on, but would be more involved to implement.

The section headings should be standardized to level two, at least for the top heading. The Spanish welcome template, {{subst:welcome-foreign|es}}, for example, currently generates the Spanish heading === Bienvenido! === with the Spanish text, because that's what is found in the Spanish subpage as of this moment. This handling also makes it easy to have exceptions to the rule, in case some language should have different section header treatment from the others.

An alternative would be to keep two separate headings, with "Welcome!" at the top as an H2 header over the English text, followed by the foreign heading as an H3 header over the foreign text. That would be my preference, both for user esthetics, as well as the fact that it is easier to implement. Mathglot (talk) 20:19, 7 June 2021 (UTC)Reply

Multi colon escape

edit

This template works fine and doesn't generate lint errors when transcluded. However, the template itself has a multi-colon escape, and I wonder if there is a way to fix it within the template, without messing up how it works. Specifically:

did you know there is a [[:{{{lang|{{{1|fr}}}}}}:|Wikipedia in {{ {{{|safesubst:}}}#language:{{{lang|{{{1|fr}}}}}}|en}}]]?

expands to

did you know there is a [[::|Wikipedia in English]]?

Anomalocaris (talk) 07:47, 19 August 2024 (UTC)Reply