Changes between Version 5 and Version 6 of ExtractUrlPlugin
- Timestamp:
- May 10, 2015, 7:35:56 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ExtractUrlPlugin
v5 v6 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Plug-in to extract URL from TracWiki links in Plug-ins and Macros =3 = Plug-in to extract URL from TracWiki links in Plug-ins and Macros 4 4 5 == Description ==5 == Description 6 6 7 This plug -in provides the function `extract_url` which can be used in Trac plug-ins and macros to extract the URL of any TracWiki link for e.g. generation of links in produced HTML code.7 This plugin provides the function `extract_url` which can be used in Trac plugins and macros to extract the URL of any TracWiki link for e.g. generation of links in produced HTML code. 8 8 9 = Usage = 10 {{{ 11 #!python 12 from tracextracturl import extract_url 13 # ... 14 url = extract_url (env, context, wikilink, raw=False) 15 }}} 16 The argument `raw` controls if the returned link should point to a brows-able (False) or download-able (True) target. The second one can be used in image or similar tags. 17 18 19 == Bugs/Feature Requests == 9 == Bugs/Feature Requests 20 10 21 11 Existing bugs and feature requests for ExtractUrlPlugin are … … 25 15 [/newticket?component=ExtractUrlPlugin&owner=martin_s new ticket]. 26 16 27 == Download and Source == 17 [[TicketQuery(component=ExtractUrlPlugin&group=type,format=progress)]] 18 19 == Download and Source 28 20 29 21 Download the [download:extracturlplugin zipped source], check out [/svn/extracturlplugin/0.11 here] using Subversion, or [source:extracturlplugin browse the source] with Trac. 30 22 31 == Example ==23 == Usage 32 24 33 {{{ 34 #!python 25 {{{#!python 26 from tracextracturl import extract_url 27 # ... 28 url = extract_url (env, context, wikilink, raw=False) 29 }}} 30 31 The argument `raw` controls if the returned link should point to a brows-able (False) or download-able (True) target. The second one can be used in image or similar tags. 32 33 == Example 34 35 {{{#!python 35 36 from tracextracturl import extract_url 36 37 … … 42 43 43 44 44 == Recent Changes ==45 == Recent Changes 45 46 46 47 [[ChangeLog(extracturlplugin, 3)]] 47 48 48 == Author/Contributors ==49 == Author/Contributors 49 50 50 51 '''Author:''' [wiki:martin_s] [[BR]] 51 '''Maintainer:''' [ wiki:martin_s] [[BR]]52 '''Maintainer:''' [[Maintainer]] [[BR]] 52 53 '''Contributors:'''