Warning: strstr() [function.strstr]: Empty delimiter. in /mnt/154/sdb/9/6/eliovir/cookbook/wikipublisher/wikipublisher.php on line 801

Warning: Cannot modify header information - headers already sent by (output started at /mnt/154/sdb/9/6/eliovir/cookbook/wikipublisher/wikipublisher.php:801) in /mnt/154/sdb/9/6/eliovir/pmwiki.php on line 1217
Eliovir | PmWiki / Edit Variables In Text Area | print

From the Eliovir

Pm Wiki: Edit Variables In Text Area

PmWiki.Variables

Collection of some edit tricks
Varibles like {$Version} {$AuthId} ($Author} can be used in the textarea.

Some usefull functionality, particularly in Page/Group Headers, Sidebars

Refer to the document itself

1) [[http:?action=edit|edit]]
2) [[{$Group}/{$Name}?action=edit|edit]]  
3) [[{$FullName}?action=edit|edit]]

1) edit 2) edit 3) edit

Refer to a relative path:

http:/pmwiki/pub/skins/pmwiki/pmwiki-32.gif

Show Logged-in User, link to logout:
[[http:?action=logout|{$AuthId}]]

[1]

(This shows nothing when the user is not logged in, but could show a login field. see Cookbook:ConditionalMarkupSamples)

Link to User’s Profile

* [[Profiles/{$AuthId}|UserHome]] for example in SideBar \\
[[Profiles/{$Author}|UserHome]]

Conditonal Markup and {$ Variables

(seem to be inconsistant to me)

(:if authid:)  AuthID: {$AuthId}
(:if author:)  Author: {$Author}
{$Namespaced} | {$Titlespaced} | {$FullName}
{$ScriptUrl}
 Author: 

Edit Variables In Text Area | Edit Variables In Text Area | PmWiki.EditVariablesInTextArea http://eliovir.free.fr/index.php5

I thought it might be useful to make some more documentation in using variables and conditional markup. May be this page belongs to Cookbook or markup tricks in general, be free to move

see also Cookbook:ConditionalMarkupSamples

Copyright © 2005–2025 the Main wiki and its authors

Links

  1. ?action=logout

Retrieved from http://eliovir.free.fr/index.php5/PmWiki/EditVariablesInTextArea

Page last modified on May 16, 2007, at 09:54 PM EST