Template talk:Update span

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.
Inline Templates
This template is within the scope of WikiProject Inline Templates, a collaborative effort to improve and manage Wikipedia's inline footnote, cleanup and dispute templates. If you would like to participate, you can visit the project page, where you can join the project and see a list of open tasks.
Some discussion of this template may take place at the project's talk page, rather than here.

Template-protected edit request on 5 February 2020

Content:

| content = {{{text|{{{1|}}}}}}

Needs to be replaced with:

| content = {{{text|{{{1|<includeonly>{{error|This template '''must''' be used with non-empty {{para|text}} parameter!}}</includeonly><noinclude>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</noinclude>}}}}}}

as in {{

Synthesis inline span}}. Both to show the example of the usage on the template page and to show the error when it's used without text. · • SUM1 • · (talk) 12:38, 5 February 2020 (UTC)[reply
]

 Not done: This would break transclusions of {{Update after}}, which does not require |text=. You can't just say that a parameter is required in the documentation and then try to enforce that requirement. Please fix the documentation. – Jonesey95 (talk) 14:14, 5 February 2020 (UTC)[reply]
@
Synthesis inline span}} and {{Clarify span}} already were (with the text "required"). I'm not sure what {{Update after}} has to do with it yet, they seem to be entirely independent templates to me, but do explain. · • SUM1 • · (talk) 20:31, 5 February 2020 (UTC)[reply
]
Please look again at your edit to the Template Data, which changed "suggested" to "required". If you do not know how {{Update after}} is related to this template, that is fine, as we all proceed along a learning curve, but editing template programming code requires a deeper understanding of how changes to that code can manifest in articles and in other templates. That understanding is gained through experimentation (in sandboxes and with testcases pages) and small changes, along with exploration of the links available to you from template pages.
In this case, I clicked on "What links here", changed the namespace to Template, and hid links and redirects, and saw that {{Update after}} transcludes this template. If you look at the documentation for that template (and for this one), you will see that there is no requirement that the |text= parameter be populated. You can look at the monthly error report for {{Update after}} and see that |text= is used only 80 times, out of 1,988 articles where that template is used. Your proposed code change to this template would have placed incorrect big red error messages on about 1,900 articles. – Jonesey95 (talk) 20:44, 5 February 2020 (UTC)[reply]
@
Update inline span}} should be. So, what I'm gathering is the deal was about how it was being used and how it would've been presented to users, not that I was breaking something. · • SUM1 • · (talk) 21:22, 5 February 2020 (UTC)[reply
]
Wikipedia editors are endlessly creative, and will do things with templates that you don't expect. Unfortunately, that means that when you want to change how a template works, you have to do research to determine if there will be consequences that you would not normally expect. If your research uncovers conditions that you do not expect, you need to adjust your plan accordingly. A good programmer looks both ways before crossing a one-way street. (attribution: paraphrasing Doug Linder) – Jonesey95 (talk) 21:40, 5 February 2020 (UTC)[reply]
@Jonesey95: Thank you for that. I'm going to go and test some other edits in the sandboxes of various cleanup templates, but I've no idea how easy it will be given that I'm editing the documentation, which does not have a sandbox version, and not the template itself. · • SUM1 • · (talk) 22:01, 5 February 2020 (UTC)[reply]
@
update inline span}} are normal maintenance tags, that take a |date= and display the tag like any other. {{update after}} is something rather different. Read its documentation for details. Anomie 00:58, 6 February 2020 (UTC)[reply
]
@
Update inline span}} (and preventing it from being marked as required for its only purpose, highlighting text, hence why I did so) rather than having its own span coding? · • SUM1 • · (talk) 01:25, 6 February 2020 (UTC)[reply
]
As the template's documentation indicates, it displays the maintenance indicator only after a specified date passes. When it does display the indicator, it should display the same indicator that {{
update inline span}} instead of by duplicating the code. As for why it has an optional span, you'd have to ask the person who added that in Special:Diff/606603461. Anomie 11:53, 6 February 2020 (UTC)[reply
]
@
Update inline span}} template to {{Update after}}'s code in May 2018. Do you think, considering this information that {{Update inline span}} may be better off being reserved as requiring text, that {{Update after}} could go back to using its own code? I don't see any reason at all why it should be using {{Update inline span}}'s code given this. Any changes between the two are entirely negligible, since it has an entirely different purpose that doesn't require span functionality most of the time, so in fact it has an explicit reason to be different. I just went through and fixed the 6/15 {{Update inline span}} instances that weren't including text (on Translation lookaside buffer, Brock (Pokémon), Bobby Murcer, Turkey, Immigration to China, Moisie River Aquatic Reserve), so no ugly errors will show up. · • SUM1 • · (talk) 14:36, 7 February 2020 (UTC)[reply
]
I think you may be on the right track, but some cleanup might need to happen. This report shows 45 articles with {{update after}} using |text=. I haven't looked at them. – Jonesey95 (talk) 15:30, 7 February 2020 (UTC)[reply]
@
update inline span}} out of {{update after}} specifically to allow for tagging of statements in situations where "update after" was not appropriate, in conjunction with Wikipedia:Redirects for discussion/Log/2018 June 3#Template:Update needed (although all the redirects wound up not using the "span" variant). The span logic was added earlier by someone else, as I linked. Anomie 15:46, 7 February 2020 (UTC)[reply
]
@
Synthesis inline span}} rightfully requiring text, to de-transclude this template and let it function as a standalone counterpart to {{Update inline}} corresponding to those other two templates? · • SUM1 • · (talk) 16:29, 7 February 2020 (UTC)[reply
]
No, I wouldn't agree to that, on the grounds of code duplication. Anomie 17:44, 7 February 2020 (UTC)[reply]
@
Update inline span}} does.· • SUM1 • · (talk) 16:29, 7 February 2020 (UTC)[reply
]