Attachment 'Color.py'

Download

   1 """
   2     MoinMoin - Color Macro
   3 
   4     Copyright (c) 2002 by Markus Gritsch <gritsch@iue.tuwien.ac.at>
   5 """
   6 
   7 def execute(macro, args):
   8     if args:
   9         sep = args.find(':')
  10         if sep != -1:
  11             return '<FONT COLOR="%s">%s</FONT>' % (args[:sep], args[sep+1:])
  12     return '<B>Example: [[Color(blue:Hello World!)]] or [[Color(#8844aa:Hello World!)]]</B>'

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2003-12-07 18:15:54, 0.4 KB) [[attachment:Color.py]]
  • [get | view] (2003-12-07 18:15:54, 1.3 KB) [[attachment:Nav.py]]
  • [get | view] (2003-12-07 18:15:54, 0.7 KB) [[attachment:Up.py]]
  • [get | view] (2004-03-04 18:39:13, 4.6 KB) [[attachment:Vote.py]]
  • [get | view] (2003-12-07 18:15:54, 4.6 KB) [[attachment:Vote2.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.