Template talk:Infobox martial artist

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconInfoboxes
WikiProject iconThis template is within the scope of WikiProject Infoboxes, a collaborative effort to improve the coverage of Infoboxes 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.
WikiProject iconMartial arts Template‑class
WikiProject iconThis template is within the scope of WikiProject Martial arts. Please use these guidelines and suggestions to help improve this article. If you think something is missing, please help us improve them!
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Template-protected edit request on 24 October 2021[edit]

Current state:

| data36      = {{#if:{{{sherdog|}}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{{sherdog|}}} Mixed martial arts record] from [[Sherdog]]}}

Proposed state:

| data36      = {{#if:{{{sherdog|}}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{{sherdog|}}} Mixed martial arts record] from [[Sherdog]]|{{#if:{{#statements:P2818}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{#property:P2818}} Mixed martial arts record] from [[Sherdog]]}}}}
Explanation

The change will import fighters Sherdog ID from wikidata, unless it was hardcoded in the article itself. Here are two example for the functionality of {{#statements:P2818}} for a fighter without a Sherdog ID on Wikidata and another with one.

With Sherdog IDMarvin Vettori
{{#if:{{#statements:P2818|from=Q26509559}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{#property:P2818|from=Q26509559}} Mixed martial arts record] from [[Sherdog]]}}
Mixed martial arts record from Sherdog
Without Sherdog IDAriane Carnelossi
{{#if:{{#statements:P2818|from=Q108911384}}|[http://www.sherdog.com/fightfinder/fightfinder.asp?fighterID={{#property:P2818|from=Q108911384}} Mixed martial arts record] from [[Sherdog]]}}
Mixed martial arts record from Sherdog


Nothing changes in the template and its usage. There is full backwards compatibility to existing articles. The only change is that IF there is, or will be, an article without a hardcoded Sherdog ID, but with the ID apearing on Wikidata, than the information will show on Wikipedia as well. The same format could (and I think, should) be used for BoxRec boxer ID (P1967) and official website (P856), for example. Deancarmeli (talk) 11:51, 24 October 2021 (UTC)[reply]

  • Oppose: Wikidata is not protected as no counter vandalism system in place with small traffic view from readers and if the info is vandalised, no one would notice as not like Wikipedian en. The current system work well from the beginning. Dont change thing that is work and invite the potential of flaw of new changes. Cassiopeia talk 23:35, 24 October 2021 (UTC)[reply]
     Not done Insufficient consensus to implement. Per Wikipedia:Template editor#When to seek discussion for template changes, Per RFC consensus (2013), it's best to seek consensus before adding Wikidata functionality to a template or module. Discussions in 2016 and 2018 have found that using Wikidata in templates, particularly infoboxes, remains relatively contentious * Pppery * it has begun... 01:03, 25 October 2021 (UTC)[reply]

Template-protected edit request on 12 March 2022[edit]

Insert, above MMA professional record, a "UFC Ranking" bar, similar to tennis infoboxes. Would be very easy, and practical. MarioBayo (talk) 11:23, 12 March 2022 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. P.I. Ellsworth - ed. put'r there 22:26, 13 March 2022 (UTC)[reply]

Template-protected edit request on 19 August 2022[edit]

Capitalize the L in "last updated on:". L33tm4n (talk) 20:37, 19 August 2022 (UTC)[reply]

 Done. P.I. Ellsworth , ed. put'r there 01:02, 20 August 2022 (UTC)[reply]

Template-protected edit request on 20 August 2022[edit]

Fix issue outlined in this discussion and add a subheading for the embedded infobox, akin to "Martial arts career", as is custom for embedded infoboxes/modules. Throast {{ping}} me! (talk | contribs) 20:57, 20 August 2022 (UTC)[reply]

 Done. P.I. Ellsworth , ed. put'r there 05:48, 21 August 2022 (UTC)[reply]

Template-protected edit request on 14 October 2022[edit]

Please remove the pointless piping from line data35, as Boxrec.com just redirects back to BoxRec.

data35 = {{#if:{{{boxrec|}}}|[http://boxrec.com/en/boxer/{{{boxrec}}} Boxing record] from [[Boxrec.com|BoxRec]]

data35 = {{#if:{{{boxrec|}}}|[http://boxrec.com/en/boxer/{{{boxrec}}} Boxing record] from [[BoxRec]]
Colonies Chris (talk) 13:52, 14 October 2022 (UTC)[reply]

 DoneJonesey95 (talk) 15:31, 14 October 2022 (UTC)[reply]
Thanks. Colonies Chris (talk) 19:22, 20 October 2022 (UTC)[reply]

Refs breaking the template in certain fields[edit]

Please fix this, where the red text occurs – "Expression error: Unrecognized punctuation character "?"." It's important that refs can be inserted into those fields, to clarify varying sources for results. Mac Dreamstate (talk) 02:15, 19 February 2023 (UTC)[reply]

This is a GIGO issue, but since there isn't anything in the documentation specifically prohibiting refs or otherwise indicating that these values should only be numerical, I have gone ahead and added _ref parameters for each of the boxing terms (in this particular instance, the article in question now uses |box_nc_ref=). Primefac (talk) 07:47, 19 February 2023 (UTC)[reply]
Wonderful, looks good. Mac Dreamstate (talk) 12:24, 19 February 2023 (UTC)[reply]

Please comment at the subject RfC. Lewolka (talk) 15:25, 1 March 2023 (UTC)[reply]

Nickname and Other name[edit]

I noticed that you can't use both the "nickname" and "other name" fields at the same time. Is this intentional?-Killashaw (talk) 01:20, 15 October 2023 (UTC)[reply]

Yes; the code is {{if empty|{{{other_names|}}}|{{{nickname|}}}}}, so using |other_names= will stop |nickname= from showing. Primefac (talk) 09:41, 16 October 2023 (UTC)[reply]
Why do we want to hide nickname if there is an "other name"?--Killashaw (talk) 21:19, 16 October 2023 (UTC)[reply]
No idea, I just know it's not a bug or glitch. Primefac (talk) 08:54, 17 October 2023 (UTC)[reply]
Does anyone object to removing that code so we can have both "nickname" and "other name" fields in the same infobox?--Killashaw (talk) 20:15, 18 October 2023 (UTC)[reply]
It's not about removing code. Currently the two parameters allow one to choose a label between "Other names" & "Nickname(s)". To allow both, you'd have to "push down" labels, data & classes 5 to 37 and create a new label5 & data5. CLalgo (talk) 08:31, 19 October 2023 (UTC)[reply]
Ok, thanks. I'll stop trying to pretend I understand the code. Does anyone object to changing the code so we can have both "nickname" and "other name" fields in the same infobox?--Killashaw (talk) 19:08, 20 October 2023 (UTC)[reply]
No one seems to be complaining, so I have implemented this. Primefac (talk) 09:53, 24 October 2023 (UTC)[reply]