Brion Vibber
a721830762
Also treat [[#section]] links as expected with the 'local' param for diff view vs RC/history view.
2009-07-20 02:26:37 +00:00
Brion Vibber
43bf053fd0
* (bug 14080) Short notation links to subpages didn't work in edit summaries
...
Moved Parser::maybeDoSubpage guts to Linker to call from both locations.
Added some parser test cases.
Note that this might not behave exactly like the main parser in cases where the link text would get altered, but the links are functional. Yay!
2009-07-20 02:07:56 +00:00
Roan Kattouw
b18ec94952
* Fix typo in Linker.php
...
* Only call ParserOutput::setTOCHTML() if a TOC was really generated
2009-07-14 13:35:07 +00:00
Remember the dot
a70213071d
Removed repetition of URIs in the title attributes (tooltips) of external links. Web browsers typically display the target URIs of links in the status bar, making repeating the URIs in tooltips redundant. Some browsers, like Opera, can be configured to display the URIs in tooltips instead of the status bar without the web page having to supply title attributes at all.
...
As part of this process, I refactored some of Linker.php and removed an unused parameter from getExternalLinkAttributes.
2009-07-12 23:32:16 +00:00
Remember the dot
b7f4c5612e
Updated parser tests for r52726. Also fixed some corner cases and updated the parser test for PMID links.
2009-07-11 04:47:12 +00:00
Remember the dot
9fae5055fa
Removed redundant anchors from headings as suggested by Aryeh Gregor on wikitech-l. Even IE6 supports jumping to elements by ID using URLs, so there is no need to make this any more complicated than it has to be.
2009-07-09 03:50:49 +00:00
Remember the dot
05978d7cf3
Title attributes are now always blank on framed and thumbnailed images, and default to blank on inline images instead of defaulting to the image's filename. Additionally, the alt attribute now defaults to the filename on framed and thumbnailed images if no caption or alt attribute is specified.
...
I was unable to run the parser test suite ("MediaWiki internal error"), so the test suite may need to be updated to reflect these changes.
2009-07-03 05:13:58 +00:00
Roan Kattouw
4a71b9a810
Revert r52410 (Put the [edit] link after the section header instead of before, and don't right-float it anymore) for now because of unresolved issues
2009-06-25 21:10:10 +00:00
Roan Kattouw
9fbe8ba6af
(bug 11270) Put the [edit] link after the section header instead of before, and don't right-float it anymore
2009-06-25 20:00:56 +00:00
Roan Kattouw
82022f21bc
Core changes for NavigableTOC extension:
...
* Always generate the section tree, even when we're not generating a TOC
* Add Parser::mergeSectionTrees() to merge two section trees into one
* Add Linker::generateTOC() to generate the HTML for a TOC from a section tree, and add the section anchor to the section tree to facilitate this. This adds the ability to generate TOCs in extensions; haven't converted Parser.php to use it (yet?). As a side effect, this fixes API bug 18720
2009-06-25 11:05:22 +00:00
Roan Kattouw
ae130186e8
Core changes for NavigableTOC extension:
...
* Add TOC HTML to ParserOutput
* Add class tocsection-$section to <li> elements in the TOC representing sections in the current page (as opposed to transcluded sections)
2009-06-20 21:47:10 +00:00
Siebrand Mazeland
74e9732dae
* deprecated makeMediaLink() to makeMediaLinkObj
...
* add FIXME where I was not able to replace a deprecated method
* add doxygen @deprecated where wfDeprecated() was present, but not the doc
Should conclude replacing or tagging remaining deprecated Linker::make*Link*() in core. Linking to r51559 for code review
2009-06-13 13:41:48 +00:00
Siebrand Mazeland
9b923334c7
Move deprecated methods to the bottom of the class.
2009-06-08 22:33:37 +00:00
Siebrand Mazeland
cf8c96d06c
Follow-up to r51543: fix syntax error in Linker.php
2009-06-06 17:04:07 +00:00
Siebrand Mazeland
0d3a39aec4
* replace use of deprecated makeLink() by link() in core
...
* replace other deprecated Linker::*link*() methods in special pages
2009-06-06 17:00:20 +00:00
Siebrand Mazeland
055fcbd7cb
* replace use of deprecated makeLinkObj() by link() in core
...
* add FIXME where makeLinkObj was used in documentation
2009-06-06 15:45:43 +00:00
Niklas Laxström
d3b61fea7c
Escaping fixes
2009-05-22 09:35:48 +00:00
Aaron Schulz
d9c3c58e21
Fixed bug in r49227; use raw function now
2009-05-18 22:15:12 +00:00
Brion Vibber
cccbd370d4
Revert r50721 "(bug 18834) Commit Patch from User Joshua C. Lerner <jlerner@gmail.com> for include/Linker.php"
...
* Fails to explain purpose of patch
* use of SQL variable interpolation without using standard encoded variable naming convention; looks unsafe and makes review harder
* Code has issues already noted; follow-up code was also reverted.
Code needs a little more cooking I think. :)
2009-05-18 18:52:53 +00:00
Brion Vibber
04b62f23df
Revert r50727 "* (bug 18834) Show how many edits will rollback if $wgShowRollbackEditCount is set true in LocalSettings.php, bugfixes for r50721"
...
* Seems to combine unrelated changes, which complicates code review and management
* Patch is incomplete, missing default settings etc.
2009-05-18 18:48:36 +00:00
Jan Luca Naumann
05fa159917
* (bug 18834) Show how many edits will rollback if $wgShowRollbackEditCount is set true in LocalSettings.php, bugfixes for r50721
2009-05-18 18:25:06 +00:00
Jan Luca Naumann
4a04bbca9a
(bug 18834) Commit Patch from User Joshua C. Lerner <jlerner@gmail.com> for include/Linker.php
2009-05-18 14:20:46 +00:00
Roan Kattouw
4706355c07
Efficiency fix: don't call Title::isRedirect() on titles known not to exist; eliminates a lot of LinkCache::addLinkObj() queries for titles fed to Linker::makeBrokenLinkObj()
2009-05-09 20:52:52 +00:00
Chad Horohoe
fdbb1752ab
Kill a bunch of unused $wgUser
2009-04-28 03:03:48 +00:00
Aaron Schulz
0119134b4c
Don't show '(comment removed)' for empty comments
2009-04-06 01:59:42 +00:00
Aryeh Gregor
01a4aa14b3
Don't add empty title attributes to anchor links
...
All parser tests updated.
2009-03-31 14:26:40 +00:00
Aryeh Gregor
e53d3fe26e
Use link() instead of make*Link*()
...
Preparatory to some optimization work. Also fix a bug in last commit,
so if this causes problems, revert that one too.
2009-03-29 16:02:16 +00:00
Chad Horohoe
49d29b002d
(bug 14771) Thumbnail links to individual DjVu pages have two "page" parameters
2009-03-13 15:02:28 +00:00
Chad Horohoe
fb0e90e27d
Document makeExternalLink().
2009-03-09 15:53:08 +00:00
Chad Horohoe
8a8daae346
T -> t
2009-03-09 13:58:59 +00:00
Chad Horohoe
2ecdfb37f8
* Add $linkType param to LinkerMakeExternalLink
...
* Move docs from r48223 to the right place.
2009-03-09 13:55:45 +00:00
Andrew Garrett
808bfafbff
Add $attribs as a param to LinkerMakeExternalLink Hook.
2009-03-09 13:21:14 +00:00
Aaron Schulz
9bf3e6ff72
Stylistic code tweaks
2009-02-22 14:35:29 +00:00
Siebrand Mazeland
a130b5b8fa
* Update message 'pipe-separator' to have leading and trailing space for English and Occitan, to be able to remove some hard coded spaces
...
* Take out some hard coded pipe characters. Replace by message or Language::pipeList
* Take out a hard coded comma list SpecialIpblocklist.php. Replace by Language::commaList
2009-02-09 09:13:30 +00:00
Alex Z
b5d624f1c0
(bug 17055) Use a CSS class ('mw-revdelundel-link') for RevisionDelete "(show/hide)" links rather than hardcoded <tt><small>, reduce some code duplication by creating Linker::revDeleteLink() to make the links.
2009-01-18 21:07:09 +00:00
Alex Z
6779a2cc13
adding newline to end of wfDebug calls where it was missing.
2009-01-13 20:28:54 +00:00
Aryeh Gregor
72e98e4e6a
When $wgEnforceHtmlIds=false, add legacy anchors
...
This means that old links will still work in a lot of cases. However,
if the legacy anchor is invalid XML, we omit it. In particular, on
non-Latin wikis, practically all old section links (from external
sources or using external links) are likely to break, since the first
character of legacy anchors starting with a non-ASCII character will be
".", which is invalid in XML as well as in HTML4.
2009-01-05 15:59:46 +00:00
Aaron Schulz
86ab2f93d4
(bug 15999) Rollback using markasbot (bot rollback) shouldn't get a diff
2009-01-03 05:39:13 +00:00
Brion Vibber
a79fa8090e
Revert r45106 "(bug 16617) Add "talk" link to list of templates in edit mode"
...
Clutters the interface unnecessarily, and uses link texts which don't even match in formatting, making it very unattractive.
2008-12-31 19:16:37 +00:00
Alexandre Emsenhuber
a3ce1fa9fa
* Since we are in Linker, use $this->link() rather than grabbing it from $wgUser->getSkin() (which is $this in the most cases)
...
* Add new lines in output
* Whitespaces tweaks
2008-12-28 16:46:05 +00:00
Raimond Spekking
4d31bb4aa5
* (bug 16617) Add "talk" link to list of templates in edit mode
...
Based on a patch by Nakon
2008-12-27 21:15:27 +00:00
Brion Vibber
4869c56712
Revert r45021, r45022, r45023 -- restoring r44896, r44927, r44896 -- pending further discussion of what, if anything, is wrong with our ID generation. Given that the section IDs are meant to be valid IDs (as required per spec), and that in production they are already put out as IDs due to Tidy's behavior, the only change necessary to provide the fix (if fix is necessary in fact) would be to fix our ID normalization.
2008-12-26 05:28:07 +00:00
Danny B
5333521128
* reverting r44896 - it causes massive invalidity of pages. See http://www.w3.org/TR/html401/types.html#type-name and http://www.w3.org/TR/xhtml1/#C_8 for definitions of "id" and "name" content.
2008-12-25 12:11:49 +00:00
Ilmari Karonen
9651ba6653
Add "id" attribute to section anchors, per discussion on wikitech-l.
2008-12-22 11:45:54 +00:00
Chad Horohoe
be374a912a
War on wfElement() and friends. Call the Xml members directly, rather than using old wrappers.
2008-12-14 19:14:21 +00:00
Ilmari Karonen
7f71d9e38f
followup to r44520: simplify various bits by removing checks now made redundant
2008-12-13 04:14:40 +00:00
Ilmari Karonen
34fb6297cd
Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
...
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Raimond Spekking
86731f7ca1
Add consistent classes for the common UI elements userlinks and usertoollinks per suggestion http://www.mediawiki.org/wiki/Special:Code/MediaWiki/43327#c689
2008-11-14 21:28:30 +00:00
Aaron Schulz
1ee72f0a34
Code space tweaks
2008-11-08 02:21:13 +00:00
Siebrand Mazeland
c426e6b9d7
Consistent casing for wfGetDB(), getDB(), and getDBKey()
2008-11-06 22:38:42 +00:00