Bugs item #1766974, was opened at 2007-08-03 10:24 Message generated for change (Settings changed) made by russblau You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1766974...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None
Status: Closed Resolution: Invalid
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: colon omitted in link to category page
Initial Comment: Consider a page X containing only the following wiki markup:
[[:Category:some category]]
Let page be a Page object for X. Then
links = page.linkedPages() for link in links: wikipedia.output(page.title()) wikipedia.output(page.aslink())
outputs:
Category:some category [[Category:some category]]
i.e. the leading colon has been swallowed. I suggest the colon be kept due to the semantic difference between [[:Category:some category]] and [[Category:some category]].
(A similar problem might exist with interlanguage links; I haven't tested, though)
----------------------------------------------------------------------
Comment By: Russell Blau (russblau) Date: 2007-08-03 11:01
Message: Logged In: YES user_id=855050 Originator: NO
Page.aslink() has an optional parameter "textlink" (defaults to False); if True, the leading colon will be output. This is a relatively recent addition to the framework, and many bots have not yet been updated to use it.
This parameter does not yet work for interwiki links.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1766974...