Template talk:Fix
From Wikipedia, the free encyclopedia
Contents |
[edit] Deprecated
This template, while clever, is complex, fails to support date parameters properly, uses old cats that have long since gone, and is onl used by one or at most two articles.
I have therefore deprecated it.
Rich Farmbrough, 17:21 2 April 2007 (GMT).
- It seems to have come back, and is being worked on. Carcharoth 14:59, 14 June 2007 (UTC)
- Indeed! In its overhauled, repurposed form, it is the basis for all (well, not quite all yet) of the inline templates. — SMcCandlish [talk] [cont] ‹(-¿-)› 17:42, 25 July 2007 (UTC)
[edit] Dox fix
{{Editprotected}}
Needs its documentation moved to a /doc file, with the proper template documentation templates, as with Template:Verify credibility and Template:Verify credibility/doc, so that [[Category:Inline templates]] can be added, and the documentation otherwise edited as needed without having to use pointless {{Editprotected}}s. — SMcCandlish [talk] [cont] ‹(-¿-)› 17:42, 25 July 2007 (UTC)
- Done - I moved the template documentation to an unprotected /doc subpage. Nihiltres(t.l) 18:59, 25 July 2007 (UTC)
[edit] Mouseover popup tooltip failing
It's been reported at Template talk:Vague that the mouseover code is not working. This can be confirmed with the example in that template's documentation. — SMcCandlish [talk] [cont] ‹(-¿-)› 19:47, 26 July 2007 (UTC)
- Responded at that talk page. --CBD 00:06, 27 July 2007 (UTC)
[edit] Catchall category
The catchall category "all pages needing cleanup" is not really correct.
In the worst case there can be three different names for the categories:
- A catchall, typically "All pages needing...
- An undated category typically "Pages needing....
- A set of dated cats, typically ... from <date>" or ... since <date>"
Having said this one purpose of the catchall was to allow Dragons Flight Cat tracker to keep track, since this is no longer working, perhaps these cats need to go anyway. Rich Farmbrough, 14:23 2 October 2007 (GMT).
[edit] From vs since
I have added a "from" parameter since some dated cats use "from" and other "since". (See User:Rich_Farmbrough/list_of_dated_categories.) Ideally they should all use the same, but changing over is quite a task. Rich Farmbrough, 12:15 10 December 2007 (GMT).
[edit] Spaced out?
I just discovered something odd about this template. Not really a bug, but more like an unintentional feature:
When templates like {{fact}} that are based on this template are placed after a word and there is a space between them in the page code, then that space disappears in the rendered text. But that only happens when in articles, not in the other namespaces. It happens in all browsers since the space is missing in the XHTML rendered by MediaWiki.
So this code on this page:
Word {{fix|text=fix}} word {{fix|text=fix}} word {{fix|text=fix}}
As expected it renders with a space after the word on this talk page:
Word [fix] word [fix] word [fix]
But if you try the same code in an article it would look like this:
It took me some testing to figure out what is going on. It is the category tags that are placed in front of the text that causes it. That is, MediaWiki strips away any spaces that come before category tags. And since this template only uses those category tags when on article pages, then it is only visible there.
This is not really a problem, its probably a good thing for this template. But since I code templates it triggered my curiosity. And I wanted to share my findings here since perhaps others will wonder about this in the future.
--David Göthberg (talk) 22:04, 22 March 2008 (UTC)
[edit] Italics breaks linewrapping
This is odd. If you have a template that uses fix is placed in italics, it breaks line wrapping:
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo [disambiguation needed] foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo [disambiguation needed] foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo[citation needed] foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
--— Gadget850 (Ed) talk - 13:26, 2 May 2008 (UTC)
- This edit seems to fix the problem in a local copy I made in my sandbox:
foo foo foo foo[Anomie's sandbox] foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
- It looks like the wikimarkup italics inside the template were confusing the parser, and then HTML Tidy ended up putting the rest of the line inside the template's nowrap. Anomie⚔ 23:40, 2 May 2008 (UTC)
[edit] Fix at end of paragraph
When a fix template such as {{fact}} is placed at the end of a paragraph, it kills paragraph breaks. Normally I would give an example here, or copy the affected text to illustrate the problem, but the problem does not occur when the text is copied.
Examples:
- Belmont Stakes: Under Broadcasting History, "CBS Sports 1960-1985[citation needed]" is the end of a paragraph.
- Copa del Rey: Under controversies, "However LFP and RFEF official statistics do not include this as an Athletic win.[citation needed]" is the end of a paragraph.
--—— Gadget850 (Ed) talk - 14:05, 27 May 2008 (UTC)