# HG changeset patch # User Christophe Lincoln # Date 1487288794 -3600 # Node ID 6a565d525bdae695a21f900b566dd012ebe46b6d # Parent a711092432768662427bf06feba373fd08ddc94f Handle @username@ in document and wall to link to user profile diff -r a71109243276 -r 6a565d525bda content/wiki/en/help.txt --- a/content/wiki/en/help.txt Sun Feb 12 20:55:00 2017 +0100 +++ b/content/wiki/en/help.txt Fri Feb 17 00:46:34 2017 +0100 @@ -38,7 +38,7 @@ with an exclamation !

-[SliTaz!http://www.slitaz.org/]
+[TinyCM!http://tinycm.slitaz.org/]
 

Images

@@ -50,3 +50,18 @@ [http://site.com/path/image.png] [image.png] + +

User link

+

+You can refer to a user in any wiki document and some plugins such as wall: +

+
+@username@
+
+ +

No wiki formating

+

+You may want to use HTML code in your pages and avoid any wiki parsing +function such as this help page. Just add the tag NOWIKI into [ ] at +any place in the page. +

diff -r a71109243276 -r 6a565d525bda index.cgi --- a/index.cgi Sun Feb 12 20:55:00 2017 +0100 +++ b/index.cgi Fri Feb 17 00:46:34 2017 +0100 @@ -283,7 +283,8 @@ -e s"#\[\([^]]*\)|\($doc\)\]#\1#"g \ -e s"#\[\([^]]*\)!\($doc\)\]#\1#"g \ -e s"#\[\(http://*[^]]*.png\)\]##"g \ - -e s"#\[\([^]]*.png\)\]##"g + -e s"#\[\([^]]*.png\)\]##"g \ + -e s"#@\([^']*\)@#\1#"g } link_user() {