Template talk:Football kit

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconFootball Template‑class
WikiProject iconThis template is within the scope of WikiProject Football, a collaborative effort to improve the coverage of Association football on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Edit request 9 September 2023[edit]

Description of suggested change: Would like to add preview warning messages to help with debugging non-existant files. Kindly refer to {{Football kit/sandbox}}. Modified the end of the template so that a preview warning message will appear when the file does not exist. Otherwise, it is quite difficult to debug pages found in Category:Pages using football kit with incorrect pattern parameters. It is not obvious which file is causing the error.

Sometimes it is just an uppercase or lowercase letter that is causing the error. A search using {{Search link}} will help to identify that easily.

Modified code:

</div><!-- Preview warning -->{{#if: {{{pattern_la|}}}|{{#ifexist:Media:Kit left arm{{{pattern_la}}}.{{{filetype|png}}} || {{Preview warning|1=pattern_la="{{{pattern_la}}}", filetype="{{{filetype|png}}}" → {{Search link|File:Kit left arm{{{pattern_la}}}.{{{filetype|png}}} }} does not exist.}} }} }}{{#if: {{{pattern_b|}}}|{{#ifexist:Media:Kit body{{{pattern_b}}}.{{{filetype|png}}} || {{Preview warning|1=pattern_b="{{{pattern_b}}}", filetype="{{{filetype|png}}}" → {{Search link|File:Kit body{{{pattern_b}}}.{{{filetype|png}}} }} does not exist.}} }} }}{{#if: {{{pattern_ra|}}}|{{#ifexist:Media:Kit right arm{{{pattern_ra}}}.{{{filetype|png}}} || {{Preview warning|1=pattern_ra="{{{pattern_ra}}}", filetype="{{{filetype|png}}}" → {{Search link|File:Kit right arm{{{pattern_ra}}}.{{{filetype|png}}} }} does not exist.}} }} }}{{#if: {{{pattern_sh|}}}|{{#ifexist:Media:Kit shorts{{{pattern_sh}}}.{{{filetype|png}}} || {{Preview warning|1=pattern_sh="{{{pattern_sh}}}", filetype="{{{filetype|png}}}" → {{Search link|File:Kit shorts{{{pattern_sh}}}.{{{filetype|png}}} }} does not exist.}} }} }}{{#if: {{{pattern_so|}}}|{{#ifexist:Media:Kit socks{{{pattern_so}}}.{{{filetype|png}}} || {{Preview warning|1=pattern_so="{{{pattern_so}}}", filetype="{{{filetype|png}}}" → {{Search link|File:Kit socks{{{pattern_so}}}.{{{filetype|png}}} }} does not exist.}} }} }}<noinclude>

--Tjmj (talk) 17:43, 9 September 2023 (UTC)[reply]

 Done * Pppery * it has begun... 15:57, 10 September 2023 (UTC)[reply]

need new files[edit]

Hello, i have a question. I don't know if this is the right place to ask, but i don't understand how can i create a football kit that isn't already in the files. Specifically, i need the Lugano football kits for the 2023-24 season. Other major Swiss teams have their kits updated, so if anyone could create the files, i would really appreciate it. Thanks EddieFerci (talk) 11:26, 12 November 2023 (UTC)[reply]