From 051ee6d63067dde9d6526a9775152ae8df40a696 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Mon, 27 Apr 2009 16:26:07 +0200 Subject: [PATCH] [wiki/macros] mise a jour des commentaires darcs-hash:20090427142607-bd074-49eb0187a48489e89407e862550d2703578eabff.gz --- wiki-lenny/local/macro/ProgressBar.py | 22 +++++++++++----------- wiki-lenny/local/macro/RandomQuoteNum.py | 6 +++--- wiki-lenny/local/macro/SubscribeTo.py | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/wiki-lenny/local/macro/ProgressBar.py b/wiki-lenny/local/macro/ProgressBar.py index de5b5970..7966eed4 100644 --- a/wiki-lenny/local/macro/ProgressBar.py +++ b/wiki-lenny/local/macro/ProgressBar.py @@ -18,10 +18,10 @@ Updates: The ProgressBar macro generates a table showing a progress indicator. Usage: - [[ ProgressBar ]] - [[ ProgressBar (TABLEWIDTH TABLEFORMAT PROGRESS%) ]] - [[ ProgressBar (TABLEWIDTH TABLEFORMAT CURRENT/STEPS) ]] - [[ ProgressBar (TABLEWIDTH TABLEFORMAT STARTDATE,ENDDATE) ]] + << ProgressBar >> + << ProgressBar (TABLEWIDTH TABLEFORMAT PROGRESS%) >> + << ProgressBar (TABLEWIDTH TABLEFORMAT CURRENT/STEPS) >> + << ProgressBar (TABLEWIDTH TABLEFORMAT STARTDATE,ENDDATE) >> If no arguments are given, the usage is inserted in the HTML result. @@ -65,13 +65,13 @@ Debugging Please prepend a '?' to the arguments. Examples: - [[ProgressBar(60%)]] - [[ProgressBar(6/10)]] - [[ProgressBar(2005-11-01,2006-01-06)]] + <> + <> + <> - [[ProgressBar([50%] 60%)]] - [[ProgressBar([50px] 60%)]] - [[ProgressBar([90%]<#8080ff><#808080> 6/10)]] + <> + <> + <<#808080> 6/10)>> ---- """ @@ -210,7 +210,7 @@ def _execute (macro, text): # Output if debug: - res = "{{{[[ProgressBar(%s)]]\n%s}}}\n%s" % (orig_text, res, res) + res = "{{{<>\n%s}}}\n%s" % (orig_text, res, res) return _format (res, macro.request, macro.formatter) diff --git a/wiki-lenny/local/macro/RandomQuoteNum.py b/wiki-lenny/local/macro/RandomQuoteNum.py index e78f222e..25aa4e23 100644 --- a/wiki-lenny/local/macro/RandomQuoteNum.py +++ b/wiki-lenny/local/macro/RandomQuoteNum.py @@ -5,9 +5,9 @@ Selects a random quote from FortuneCookies or a given page. Usage: - [[RandomQuote()]] - [[RandomQuote(WikiTips)]] - + <> + <> + Comments: It will look for list delimiters on the page in question. It will ignore anything that is not in an "*" list. diff --git a/wiki-lenny/local/macro/SubscribeTo.py b/wiki-lenny/local/macro/SubscribeTo.py index 7b41270a..24c850a0 100644 --- a/wiki-lenny/local/macro/SubscribeTo.py +++ b/wiki-lenny/local/macro/SubscribeTo.py @@ -2,8 +2,8 @@ """ MoinMoin - Automaticaly subscribe user(s) on save - [[SubscribeTo(UserName1[,+GroupName1[,-UserName2]])]] - + <> + Will add those users and/or group of users as subscribers while saving the page. These users are not subscribed for templates nor while preview the page. To subscribe to this template the FQTN (full-qualified template name)