Thanks again for the help with the heading numbers; it was very useful.
Sadly, when I cut+paste from a mediawiki page, the [edit] link is invisibly preserved and appears in my text. Others on the web have noticed this when exporting pages to some other CMS.
Any ideas would be helpful, but I am afraid that a solution will mean a code hack.
~~John
John van V. wrote:
Thanks again for the help with the heading numbers; it was very useful.
Sadly, when I cut+paste from a mediawiki page, the [edit] link is invisibly preserved and appears in my text. Others on the web have noticed this when exporting pages to some other CMS.
Any ideas would be helpful, but I am afraid that a solution will mean a code hack.
I have this same problem since ever.
Question to developers: wouldn't be better to ensure that everything inside <div id="#bodycontent">...</div> is just plain parsed wikitext, and then add the editlinks using JavaScript?
That would reduce the problems with people who have to copy/paste from the wiki, and also reduce the number of parser cache entries (since 'editsection' option wouldn't create variants anymore.
Juliano F. Ravasi wrote:
Question to developers: wouldn't be better to ensure that everything inside <div id="#bodycontent">...</div> is just plain parsed wikitext, and then add the editlinks using JavaScript?
What about people with javascript disabled?
That would reduce the problems with people who have to copy/paste from the wiki, and also reduce the number of parser cache entries (since 'editsection' option wouldn't create variants anymore.
I don't think there's any variant on the edit section. It is always there, just that sometimes it's hidden with CSS.
Platonides wrote:
What about people with javascript disabled?
This question is so cliché... It has become one of the default excuses when someone doesn't want to bother thinking about a problem.
Then, I argue:
1. How many users, normal users, have javascript disabled? Note that we are power users. The average user doesn't even know the difference between a "computer" and "Windows", and use whatever is installed. Javascript is something beyond their naked-eye visible universe. They don't know it exists, and how to disable it. These users are the majority.
2. How many of these users, who have Javascript disabled, are actually editors of content in Wikipedia and other MediaWiki-based wikis?
3. How many of these editors who have Javascript disabled will actually feel more inconvenient to go up and click the "edit this page" link on the top of the article instead of turning Javascript back on?
4. Note that the many Ad providers rely on Javascript to place their Ads into pages, because they know that Javascript brings flexibility that overwhelms the few percent (perhaps even less than one percent) of users with Javascript disabled.
5. Disabling Javascript completely render so many (badly designed) sites unusable that doing so almost rips you of a leg. Who are really concerned about having Javascript enabled ends up using Opera or the NoScript extension to disable scripts selectively. In this case, the user just needs to enable Javascript for MediaWiki sites. Simple.
6. Adding section edit links via Javascript is not going to render MediaWiki unusable, not even near that. People will still be able to read anything, and *edit* anything, since we are not going to get rid the "edit this page" functionality.
7. MediaWiki already depends on Javascript for many other non-essential stuff. Of course, proper care was taken to not make it unusable, although it sucks using MediaWiki without Javascript. Table sorting, quick watch/unwatch, instant upload filename collision check, search suggestions based on page titles, etc... They are all convenient features added to MediaWiki via Javascript. I don't see any problem in making edit links the same.
8. There is always the option of using <noscript>...</noscript> as a fallback: Use javascript to place edit links for people who have Javascript enabled, and leave <noscript/> fallbacks in place for people who don't. I just tested in Firebug, selecting and copying a text across an invisible <noscript/> tag doesn't copy its contents, so it would fix the problem of the surprise "[Edit]"s that pop up when you copy/paste text from the wiki.
I don't think there's any variant on the edit section. It is always there, just that sometimes it's hidden with CSS.
Yeah, right. I just checked it.
There are setEditSection() and getEditSection() in ParserOptions that affect the parser in Parser::formatHeadings(). I assumed that that came from the user preferences, but now I see that the user preferences only affects CSS styling.
Juliano F. Ravasi wrote:
Platonides wrote:
What about people with javascript disabled?
This question is so cliché... It has become one of the default excuses when someone doesn't want to bother thinking about a problem.
Hey, hey, be quiet. In fact, i would welcome such option. But it's an obvious drawback.
Then, I argue:
- How many users, normal users, have javascript disabled? Note that we
are power users. The average user doesn't even know the difference between a "computer" and "Windows", and use whatever is installed. Javascript is something beyond their naked-eye visible universe. They don't know it exists, and how to disable it. These users are the majority.
- How many of these users, who have Javascript disabled, are actually
editors of content in Wikipedia and other MediaWiki-based wikis?
- How many of these editors who have Javascript disabled will actually
feel more inconvenient to go up and click the "edit this page" link on the top of the article instead of turning Javascript back on?
I don't know. You'd need to study it. I'd rather prefer not having to answer to all users complaining their edit links are gone. The numbers may be higher than estimated ;) You'd expect an ever lesser number of people not having *images* enambled. Yet, there have been people for whose "SUL doesn't work" because the images loading the cookies weren't being loaded.
- Disabling Javascript completely render so many (badly designed) sites
unusable that doing so almost rips you of a leg. Who are really concerned about having Javascript enabled ends up using Opera or the NoScript extension to disable scripts selectively. In this case, the user just needs to enable Javascript for MediaWiki sites. Simple.
The point is, Mediawiki tries to be rightly designed :)
- Adding section edit links via Javascript is not going to render
MediaWiki unusable, not even near that. People will still be able to read anything, and *edit* anything, since we are not going to get rid the "edit this page" functionality.
Of course, but it looks like a step in the wrong direction.
- MediaWiki already depends on Javascript for many other non-essential
stuff. Of course, proper care was taken to not make it unusable, although it sucks using MediaWiki without Javascript. Table sorting, quick watch/unwatch, instant upload filename collision check, search suggestions based on page titles, etc... They are all convenient features added to MediaWiki via Javascript. I don't see any problem in making edit links the same.
They couldn't be done without javascript. On the other hand, section edit links don't need it at all.
- There is always the option of using <noscript>...</noscript> as a
fallback: Use javascript to place edit links for people who have Javascript enabled, and leave <noscript/> fallbacks in place for people who don't. I just tested in Firebug, selecting and copying a text across an invisible <noscript/> tag doesn't copy its contents, so it would fix the problem of the surprise "[Edit]"s that pop up when you copy/paste text from the wiki.
Seems interesting. It could be made a configuration option: *Inline edit links *Full javascript edit links *Javascript edit links with <noscript> *No edit links at all
My worry is that edit links position and magic is so fragile that who know what would happen by also adding <noscript> and javascript to the mix.
However, that could fix bug 11555. Screen readers will probably read noscript sections, but would ignore edit links if generated by javascript, which is a Good Thing(tm) [CCing Per].
Hi again,
I might mention that I love contentious tech debate, and this is blue-ribbon, but I have to work on my tech writing (first tech $ since 2002!)
Just to insert my ideas about the Javascript, or perhaps AJAX:
I believe in starting from basics, and adding "automation" only as necessary and purely optionally. I developed this idea in a previous life a decade before the Web was invented: I was customizing classic automobiles with modern performace add-ons, so of which I was making myself.
I believed that sophistications such as automation should always assist but not replacements. In the case of Javascript, it is useful but should not replace the web basics. In other words Wikimedia should work in the most basic incarnation of the Web (well, not the MOST basic, but you get the idea), and Javascript should be implemented with optionally removeable modularity.
I can simply make that statement without further thought because of duality in technology; what works for one technology will work for all technologies simply because technology is, in effect, humanity. Humanity is built on the Information Society -- which is what we here think of as technology. Not only the Information Society, but also its woes, goes back to the early empires such as the Egyptian, if you read Lewis Mumford.
But now that I think about it, benefits comes forth: Mediawiki NEEDS to support dial-up access, as most of the Information Society -- humanity that is -- lacks high bandwidth; the average world bandwidth may be only in the 20s.
Using Google's Gmail as an example, it's AJAX works on dial-up, better than its pure HTML version, but only if you have the Javascript that makes it special pre-loaded. I personally start my browser when I have Wifi, keep it loaded using hibernation; but this is a "hack" and not a solution.
I think the solution is to build from basics from the ground-up, and then add "sophistication" optionally as it provides benefits, and allow an easy "back out" for each added "sophistication" as those add-ons become more of a burden than a benefit.
Mediawiki does support low bandwidth, and I believe it benefits in this way from being an early more simplistic implementation of the web, rather than being a newish AJAX monster such as Gmail.
As I mentioned, I am using the Mediawiki for collaborative tech writing, and so happens some of my co-writers are in the Himalayas, where I imagine bandwidth can be narrow indeed.
But getting back to the [Edit] tag issue, I will be happy with a temporary hack, so I can get this tech writing done, get paid, and use my writing as an example for other, hopefully more fulfilling jobs, such continuing my decades old project of providing all humanity with un-repressed access and computational abilities: http://Thinman.com
mediawiki-l@lists.wikimedia.org