Template talk:Country in the Eurovision Song Contest

(Redirected from Template talk:Country in the Eurovision Song Contest/doc)
Latest comment: 4 months ago by Grk1011 in topic Name change

Template-protected edit request on 21 December 2018

edit

Since the Eurovision Choir of the Year has been renamed to "Eurovision Choir", please change the following:

  • "| altlink = in the {{#switch: " to "| altlink = in {{#switch: "
  • "| JESC = Junior Eurovision Song Contest" to "| JESC = the Junior Eurovision Song Contest"
  • "| EDC = Eurovision Dance Contest" to "| EDC = the Eurovision Dance Contest"
  • "| EYM = Eurovision Young Musicians" to "| EYM = the Eurovision Young Musicians"
  • "| EYD = Eurovision Young Dancers" to "| EYD = the Eurovision Young Dancers"
  • "| Choir = Eurovision Choir of the Year" to "| Choir = Eurovision Choir"
  • "| Asia = Eurovision Asia Song Contest" to "| Asia = the Eurovision Asia Song Contest"
  • "| TV = ABU TV Song Festival" to "| TV = the ABU TV Song Festival"
  • "| Radio = ABU Radio Song Festival" to "| Radio = the ABU Radio Song Festival"
  • "| TSC = Turkvision Song Contest" to "| TSC = the Turkvision Song Contest"
  • "| Bala = Bala Turkvision Song Contest" to "| Bala = the Bala Turkvision Song Contest"
  • "| Eurovision Song Contest" to "| the Eurovision Song Contest"

. (Source) Thanks —Dimsar01 Talk ⌚→ 22:18, 21 December 2018 (UTC)Reply

  DoneJonesey95 (talk) 23:23, 21 December 2018 (UTC)Reply

Make sure the template checks if a page for the specified year exists

edit

Very often for future contests, the main page for the edition has been created but not all country pages exist yet. For example, for 2021,   Romania exists but   Netherlands doesn't. But currently, every time a new country page gets created, several different pages have to be edited just to add the "y=" for the links. I believe that this would become a lot easier if this template checks if the page exists, and if it doesn't, it shouldn't add the year to the link. I hope you get what I mean. ―JochemvanHees (talk) 13:34, 8 September 2020 (UTC)Reply

@JochemvanHees: I think I know what you mean, if the page exists = link to the page "X in the Eurovision Song Contest 2021", if it doesn't it just links to "X in the Eurovision Song Contest", yes? -- AxG /   14:10, 8 September 2020 (UTC)Reply
@AxG: Yeah, exactly.
I think this is a good idea in principle. In this scenario would it only work for the "contest by year" articles, and not anywhere else? Also possible slight issue is that a lot of "country by year" articles have been created but simply redirect to a different article, either the main country article or the year article, so I feel a clean-up of these articles would be required for the full technical solution to be properly achieved. Sims2aholic8 (talk) 09:15, 10 September 2020 (UTC)Reply

Template-protected edit request on 8 July 2021 (1)

edit

In the switch statement for the contest (second parameter, starting on line 7), add some single-letter abbreviations for the contests, similar to what I did here at the similar template {{Esccnty}}. The purpose of this template (and especially Template:Escyr) is to make these links take up less space in the wikitext, so making the contest codes single-letter should make that even more the case.

Letter Contest
J Junior Eurovision Song Contest
M Eurovision Young Musicians
C Eurovision Choir
A Eurovision Asia Song Contest

(This leaves out the two dance contests, because the only sensible letter for them would be D and that would be ambiguous between the two.)

Jochem van Hees (talk) 20:47, 8 July 2021 (UTC)Reply

@Jochem van Hees: could you please implement this in the template sandbox first? Elli (talk | contribs) 09:19, 10 July 2021 (UTC)Reply
Done for Template:Esc/sandbox and Template:Escyr/sandbox, and I also created testcases. ―Jochem van Hees (talk) 09:47, 10 July 2021 (UTC)Reply
  Done Elli (talk | contribs) 18:50, 10 July 2021 (UTC)Reply

Template-protected edit request on 8 July 2021 (2)

edit

On line 7, change {{#switch: {{{2|}}} to {{#switch: {{lc:{{{2|}}}}}, and make all the switch cases lowercase. This is for consistency with Template:Escyr and Template:Esccnty. I do not know if case insensitivity would be useful for anyone, but I guess it's one less thing to keep in mind while editing. ―Jochem van Hees (talk) 20:48, 8 July 2021 (UTC)Reply

  Done Elli (talk | contribs) 22:46, 8 July 2021 (UTC)Reply

Name change

edit

@Primefac: Could you explain the rationale for the renaming of this template? The longer name somewhat defeats the purpose of the template, which is first and foremost a way to reduce the amount needed to be typed for tables and whatnot. Grk1011 (talk) 16:50, 16 June 2024 (UTC)Reply

It makes the name more clear as to what the template does. {{esc}} is still perfectly acceptable for use in articles. Primefac (talk) 17:05, 16 June 2024 (UTC)Reply
Ok, as long as 'esc' is continues to be the standard way of using the template. Grk1011 (talk) 11:43, 19 June 2024 (UTC)Reply