From: <var...@us...> - 2009-09-26 17:02:27
|
Revision: 7161 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7161&view=rev Author: vargenau Date: 2009-09-26 17:02:18 +0000 (Sat, 26 Sep 2009) Log Message: ----------- Wikicreole syntax Modified Paths: -------------- trunk/pgsrc/Help%2FOldStyleTablePlugin trunk/pgsrc/Help%2FWikiPlugin Modified: trunk/pgsrc/Help%2FOldStyleTablePlugin =================================================================== --- trunk/pgsrc/Help%2FOldStyleTablePlugin 2009-09-26 17:01:09 UTC (rev 7160) +++ trunk/pgsrc/Help%2FOldStyleTablePlugin 2009-09-26 17:02:18 UTC (rev 7161) @@ -1,4 +1,4 @@ -Date: Mon, 1 Jun 2009 15:05:05 +0000 +Date: Mon, 11 Aug 2009 15:05:05 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -13,23 +13,23 @@ == Usage -<verbatim> -<?plugin OldStyleTable caption="OldStyleTable" border||=2 +{{{ +<<OldStyleTable caption="OldStyleTable" border||=2 ||^ *Name* |v *Cost* |v *Notes* | *First* | *Last* |> Jeff |< Dairiki |^ Cheap |< Not worth it |> Marco |< Polo | Cheaper |< Not available -?> -</verbatim> +>> +}}} will get you -<?plugin OldStyleTable caption="OldStyleTable" border||=2 +<<OldStyleTable caption="OldStyleTable" border||=2 ||^ *Name* |v *Cost* |v *Notes* | *First* | *Last* |> Jeff |< Dairiki |^ Cheap |< Not worth it |> Marco |< Polo | Cheaper |< Not available -?> +>> Note that multiple __|__s lead to spanned columns, and __v__s can be used to span rows. A __>__ generates a right justified column, __<__ Modified: trunk/pgsrc/Help%2FWikiPlugin =================================================================== --- trunk/pgsrc/Help%2FWikiPlugin 2009-09-26 17:01:09 UTC (rev 7160) +++ trunk/pgsrc/Help%2FWikiPlugin 2009-09-26 17:02:18 UTC (rev 7161) @@ -39,14 +39,14 @@ Currently, one invokes a plugin by putting something like: {{{ -<?plugin AllPages limit=20 cols=3 ?> +<<AllPages limit=20 cols=3>> }}} into a regular wiki-page. That particular example produces a list of the first 20 existing pages in 3 columns, via the PhpWiki:PageList library. -<?plugin AllPages limit=20 cols=3 ?> +<<AllPages limit=20 cols=3>> == Details @@ -55,29 +55,29 @@ precedence: # The plugin invocation can specify the value for an argument, like so: - {{{ +{{{ <?plugin BackLinks page=OtherPage ?> - }}} +}}} # The argument can be specified via an HTTP query argument. This doesn't happen (is not allowed) unless the argument is mentioned in the plugin invocation: - {{{ +{{{ <?plugin BackLinks page ?> - }}} +}}} # Default values specified in the plugin invocation: - {{{ +{{{ <?plugin BackLinks page||=OtherPage ?> - }}} +}}} # The plugin must supply default values for each argument it uses. Such default args may be overriden by URL arguments like so: - {{{ +{{{ BackLinks?page=ThisPage&sortby=-mtime - }}} +}}} (The BackLinks plugin uses the current page as the default value for the *page* argument.) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |