= ShowMe macro = It's no necessary because the Action macro accept a second parameter with free text. Usage: `[[Action(action, text)]]`. I'll keep `ShowMe` macro here for illustration. == Description == Allow an inline link from a page to itself. Used to create custom links in included pages. Created to use with the [[macro/NewBlogEntry.py|NewBlogEntry]] macro. == Usage == Without parameters. {{{ [[ShowMe()]] }}} Rendered as: <> With a single parameter indicating the hyperlink text. {{{ [[ShowMe(the ShowMe macro page)]] }}} Rendered as: <> == Code == {{{#!python """ ShowMe Description =========== Create a link to the page where the macro appears. The parameter will be the hyperlinked text. If no parameter is passed then standard localization for 'show' action will be used. @see http://moinmoin.wikiwikiweb.de/MacroMarket/ShowMe for more info. Usage ===== [[ShowMe()]] [[ShowMe(free text)]] @license: GNU GPL @copyright: 2005 by Julián Romero """ from MoinMoin import wikiutil def execute(macro, args=None): """ @param macro: macro object @param args: text to use as hyperlink (optional) """ action = 'show' label = 'show' if args is None: label = macro.request.getText(action, formatted=False) else: label = args formatter = macro.formatter page = wikiutil.quoteWikinameURL(formatter.page.page_name) url = '%s?action=%s' % (page, action) link = wikiutil.link_tag(macro.request, url, text=label, formatter=formatter) return link }}} = Discussion = It seems that this macro is not needed - see how the usage is created with `[[Action(action, text)]]` macro :-) * Thanks. I forgot trying this trivial parameter before start programming.