[pmwiki-users] Including pre-defined text blocks in PmWiki pages
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Sat Mar 26 13:01:15 CST 2005
    
    
  
On Sat, Mar 26, 2005 at 06:47:26PM +0000, Hans wrote:
> Saturday, March 26, 2005, 6:39:12 PM, Iain wrote:
> > Question: Is there a way of including a pre-defined chunk/snippet
> > of text in a PmWiki page?
> 
> You could put your address on a wiki page Main.Address and then use
> (:include Main.Address:)
This is an excellent example -- I hadn't really thought of (:include:)
as a way to handle "macros" like this.  :-)
The administrator can also define custom markup sequences -- see
http://www.pmwiki.org/wiki/PmWiki/CustomMarkup .  For example,
the admin can define {$Address} with:
    Markup('address', '{$var}',
      '/{\\$Address}/',
      'predefined text goes here');
Pm
    
    
More information about the pmwiki-users
mailing list