1 """
2 SourceForgeLogo macro
3
4 by OlegKobchenko
5
6 [[SourceForgeLogo(<groupid>,<type>)]]
7
8 """
9
10
11
12 import string
13
14 def execute(macro, text):
15
16
17 if text:
18 args = map(string.strip, string.split(text+",1,1", ","))
19 else:
20 args = ["1","1"]
21
22 return '''<a href="http://sourceforge.net"><img class=sf
23 src="http://sourceforge.net/sflogo.php?group_id=%s&type=%s"
24 align=right border="0" alt="SourceForge.net Logo"></a>''' % (args[0], args[1])
MoinMoin: macro/SourceForgeLogo (last edited 2007-10-29 19:17:17 by localhost)