Template talk:Fix
![]() | Template:Fix is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
![]() | This template was considered for deletion on 2006 July 22. The result of the discussion was "to keep". |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
![]() Archives (Index) |
Blank output and invisible mistakes
[edit]{{fix|thing}}
has no visible output. When previewing a large edit, it's easy to miss the fact that a tag is missing.
IMO the template should treat the unnamed parameter as text
, or emit an error saying that I didn't provide any of the parameters that would make it non-empty, or emit an error that there's an unexpected unnamed parameter. Jruderman (talk) 22:04, 8 July 2024 (UTC)
- @Jruderman:
{{fix}}
isn't intended for direct use - it's a core template around which other templates like{{citation needed}}
are built. --Redrose64 🌹 (talk) 22:37, 8 July 2024 (UTC)- Right, there's a good set of pre-made tags for "problems", tuned for use in article space. I also use this template in talk pages, to indicate "what needs to be done" within an incomplete example or mini-draft. Jruderman (talk) 23:09, 8 July 2024 (UTC)
- I have clarified the documentation; I hope that helps. – Jonesey95 (talk) 00:38, 9 July 2024 (UTC)
- I see. I appreciate that you're working to make the change I requested even though the way I'm using this template isn't really among the intended uses. Jruderman (talk) 01:14, 9 July 2024 (UTC)
- @Jruderman: We're not working to make the change you requested - we're advising against it. To this end, Jonesey's edit request (below) will put pages exhibiting such misuse into Category:Pages using Template:Fix with unknown parameters. --Redrose64 🌹 (talk) 07:21, 9 July 2024 (UTC)
- I'm happy with the outcome. I asked for the template to treat the positional argument as
text=
or emit an error, and now it emits an error. - Catching pages with the error into a category was a good call too: Jonesey95 and I were able to locate and fix instances in several articles, including one that went all the way back to 2018. Jruderman (talk) 09:18, 9 July 2024 (UTC)
- I'm happy with the outcome. I asked for the template to treat the positional argument as
- @Jruderman: We're not working to make the change you requested - we're advising against it. To this end, Jonesey's edit request (below) will put pages exhibiting such misuse into Category:Pages using Template:Fix with unknown parameters. --Redrose64 🌹 (talk) 07:21, 9 July 2024 (UTC)
- I see. I appreciate that you're working to make the change I requested even though the way I'm using this template isn't really among the intended uses. Jruderman (talk) 01:14, 9 July 2024 (UTC)
- I have clarified the documentation; I hope that helps. – Jonesey95 (talk) 00:38, 9 July 2024 (UTC)
- Right, there's a good set of pre-made tags for "problems", tuned for use in article space. I also use this template in talk pages, to indicate "what needs to be done" within an incomplete example or mini-draft. Jruderman (talk) 23:09, 8 July 2024 (UTC)
Edit request 9 July 2024
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Description of suggested change: Please apply the code in the sandbox (diff here), which is a straightforward addition of the "check for unknown parameters" module that is used in hundreds of templates to categorize pages when a template is used with unsupported parameters. I will be happy to create the appropriate tracking category, or the admin who does this change can create it by copy-pasting the content of Category:Pages using infobox NRHP with unknown parameters and adjusting the template name in the first parameter.
Note that this error-checking module normally applies {{main other}} to limit its tracking to article space. Based on the most recent query on the talk page, it looks like people use this template in other namespaces as well, so I have removed that limit here. It might need to be imposed if I am wrong about this inference. – Jonesey95 (talk) 00:45, 9 July 2024 (UTC)
Done Sigh. * Pppery * it has begun... 02:01, 9 July 2024 (UTC)