Template talk:Welcome-foreign

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

Automatically change depending on gender

edit

Some languages have words that change depending on the gender of the noun in question, and I was wondering if we could change the {{Welcome-foreign}} templates (the ones that would require it, anyway) to automatically change contents depending on if the user has set their preferred gender in their preferences. Here's what I think we should do, using Portuguese as an example:

Olá, {{BASEPAGENAME}}, [[Wikipedia:Welcoming_committee/Welcome_to_Wikipedia|bem-vindo(a) à Wikipédia]]! Apesar de esforços para melhorar a Wikipédia serem sempre bem recebidos, infelizmente suas contribuições não foram escritas em um nível de inglês bom o suficiente para ser útil. Você parece ser mais familiarizado(a) com o Português; sabia que existe uma [[:pt:|Wikipédia em português]]? Talvez você prefira contribuir lá em vez de aqui. De qualquer forma, bem-vindo(a) ao projeto e obrigado(a) por seus esforços! Se precisar de ajuda, por favor, sinta-se livre para me comunicar em minha página de discussão.
+
Olá, {{BASEPAGENAME}}, [[Wikipedia:Welcoming committee/Welcome to Wikipedia|bem-vind{{gender:{{BASEPAGENAME}}|o|a|o(a)}} à Wikipédia]]! Apesar de esforços para melhorar a Wikipédia serem sempre bem recebidos, infelizmente suas contribuições não foram escritas em um nível de inglês bom o suficiente para ser útil. Você parece ser mais familiarizad{{gender:{{BASEPAGENAME}}|o|a|o(a)}} com o Português; sabia que existe uma [[:pt:|Wikipédia em português]]? Talvez você prefira contribuir lá em vez de aqui. De qualquer forma, bem-vind{{gender:{{BASEPAGENAME}}|o|a|o(a)}} ao projeto e obrigado(a) por seus esforços! Se precisar de ajuda, por favor, sinta-se livre para me comunicar em minha página de discussão.</nowiki>

Output when used on a user who has their preferred gender set to "female" -- notice the feminine forms applied automatically: Olá, (user), bem-vinda à Wikipédia! Apesar de esforços para melhorar a Wikipédia serem sempre bem recebidos, infelizmente suas contribuições não foram escritas em um nível de inglês bom o suficiente para ser útil. Você parece ser mais familiarizada com o Português; sabia que existe uma Wikipédia em português? Talvez você prefira contribuir lá em vez de aqui. De qualquer forma, bem-vinda ao projeto e obrigado(a) por seus esforços! Se precisar de ajuda, por favor, sinta-se livre para me comunicar em minha página de discussão.

Thoughts? Gommeh 🎮 20:53, 5 July 2025 (UTC)Reply