Changes between Version 11 and Version 12 of WikiIncludePlugin


Ignore:
Timestamp:
Mar 17, 2011, 8:20:24 AM (4 years ago)
Author:
mdelorme
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiIncludePlugin

    v11 v12  
    5151'''Contributors:''' [wiki:bubacoo]
    5252
     53== Wiki Variable ==
     54Contribution done by [[wiki:mdelorme]]
     55
     56I update the script to be able to use Wiki Variables (think report variables)
     57
     58{{{
     59 for arg in args:
     60         text = text.replace('{{%d}}' % (i+1), args[i])
     61         i += 1
     62 for arg in req.args:
     63         text = text.replace('{{%s}}' % arg, req.args[arg])
     64}}}
     65You use is it like this.[[BR]]
     66You call your page my_trac.com/wiki/my_page?FOO=1234[[BR]]
     67then in ''my_page''
     68{{{
     69Lorem impsum ...
     70[[WikiInclude(Foo)]]
     71....
     72}}}
     73and then in ''Foo'' you could use FOO like this
     74{{{
     75bla bla bla {{FOO}} bla bla {{1}} blabla bla blabla bla bla
     76}}}
     77
     78
    5379[[TagIt(plugin,0.9,yu-ji)]]
    5480