incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Dupriez <>
Subject Aliasing long Wiki markup
Date Fri, 15 Feb 2008 08:10:32 GMT
Hi Again!

When users are putting often the same long markup sequences, it may be 
useful to define "aliases".

Attached modifications allows to:

1) define aliases in For instance:
   #Applications shortcuts
   alias.citedby=[{ReferringPagesPlugin title='!Cited by:%n' 

2) Call those alliases in pages: the syntax is the same than for 
variable inclusion but a "$" sign is added at the end.
   For instance: [{$citedby$}]
   The WikiMarkup inside the alias is interpreted.

The nice thing is also that you can change the definition of an Alias 
without changing the wiki pages...

Final note: \n is allowed in to indicate a end of 
line (\n\n for end of paragraph)

Attached source code is for 2.6.1. is in the 
"parser" directory.

Have a nice day!


View raw message