Author: harryalffa
Description:
A [[wikilink]] on a page which links to itself is rendered by [[Wikimedia]] in a <code><nowiki><strong></nowiki></code> tag with a CSS class attribute of <code>class="selflink"</code>.
Should Mediawiki force this <code><nowiki><strong></nowiki></code> semantic markup on every wiki, and everywhere in an article?
I think the CSS class attribute of "selflink" is enough on its own.
Maximum flexibility would be achieved if this was rendered in a <code><nowiki><span></nowiki></code> tag with a CSS class attribute.
I would also propose changing the class attribute away from "selflink", because in en.Wikipedia [http://en.wikipedia.org/wiki/User:HarryAlffa/self-links myself], and a few people previously have tried to advocate use of the ''self link feature'' since it was introduced, but are all shot down in flames[http://en.wikipedia.org/wiki/Wikipedia_talk:Linking#RfC:_self-links_to_conform_to_title_reiteration_style] [http://en.wikipedia.org/wiki/Wikipedia_talk:Linking#General_principles:_Do_not_place_links_in_the_bold_reiteration_of_the_title_in_the_article.27s_lead_sentence.] [http://en.wikipedia.org/wiki/Wikipedia_talk:Manual_of_Style/Archive_107#Using_self_links_as_bold_reiteration] [http://en.wikipedia.org/wiki/Wikipedia_talk:Manual_of_Style/Archive_107#Using_self_links_as_bold_reiteration]. It is obvious, from the talk pages, that this is because of ignorance & confusion of what this feature actually is. So it's use is actually banned in en.Wikipedia! A lot of the confusion stems from the <code>class="selflink"</code> attribute, so everyone refers to it as a ''self-link'', and thinks of it as a hyperlink - even the HTML rendering!
I propose that the CSS attribute be renamed to ... anything which doesn't confuse users.
I think the self link feature was a great idea - a pleasingly, elegant solution to a user "error" turned in to a useful function - sadly under-utilised on en.Wikipedia.
I would propose, instead of "selflink", a CSS for first mention of the articles subject title, then a different CSS class attribute for any other:
- <code><nowiki><span class="firstMention"></nowiki></code>
- <code><nowiki><span class="articleTitle"></nowiki></code>
Which has a number of [http://en.wikipedia.org/wiki/User:HarryAlffa/self-links advantages], and more so if "self links" were used through-out an article.
Or at least a change to:
<big><code><nowiki><span class="articleTitle"></nowiki></code></big>
The use should also be pushed in the standard Help files, where they warn not to use a self-link as a way to bold-face text - another source of the ban on Wikipedia I suspect. This is a great feature, and should be advertised as such. It follows the W3C's [http://www.w3.org/TR/REC-html40/intro/intro.html#h-2.4.1 Separate Structure and Presentation] paradigm, by giving semantic CSS instead of display formatting markup - a win, win!
This of course would break Wikipedia, but a few small changes in CSS would fix it, and in so doing the class attribute name-change will encourage its use as it was intended!
Version: unspecified
Severity: enhancement