Last modified: 2007-03-30 09:31:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6214 - Set ID attribute for body tag according to page title
Set ID attribute for body tag according to page title
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-06-05 22:49 UTC by Danny B.
Modified: 2007-03-30 09:31 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Danny B. 2006-06-05 22:49:28 UTC
Please add id attribute for body tag.

The id should:
- be equal to the {{FULLPAGENAME}}
- be coded as eg. anchors on pages: On page "ÁEÍOÚY" it would be encoded to
".C3.81E.C3.8DO.C3.9AY". But to keep the valid id some prefix should be added,
let's consider "wiki_", therefore the above example would finally be
"wiki_.C3.81E.C3.8DO.C3.9AY" which is valid id.

Usage of this feature:
- mainly intended for utilization in CSS - referencing to certain page
- secondary for robots which are checking the xhtml source instead of raw wiki

Thank you

Danny B.
Comment 1 Danny B. 2006-06-17 00:48:44 UTC
Add-on:

The prefix might be also dynamically generated such as:
en.wikipedia_
cs.wikisource_
de.wikibooks_
or
wikipedia.en_
wikisource.cs_
wikibooks.de_
etc...
Comment 2 Danny B. 2006-07-04 23:49:13 UTC
See also bug 6547 for related request
Comment 3 Rob Church 2007-03-30 09:31:52 UTC
Page content div is wrapped in various CSS classes pertaining to the namespace
and title.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links