Recent Changes - Search:

Menu




EditVariablesInTextArea

<< | PmWiki.Variables | >>

Collection of some edit tricks
Varibles like {&#036;Version} {&#036;AuthId} (&#036;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) [[{&#036;Group}/{&#036;Name}?action=edit|edit]]  
3) [[{&#036;FullName}?action=edit|edit]]

1) edit 2) 3)

Refer to a relative path:

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

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

{$AuthId}

(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/{&#036;AuthId}|UserHome]] for example in SideBar \\
[[Profiles/{&#036;Author}|UserHome]]
  • for example in SideBar

Conditonal Markup and {$ Variables

(seem to be inconsistant to me)

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

{$Namespaced} | {$Titlespaced} | {$FullName} {$ScriptUrl}

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

This page may have a more recent version on pmwiki.org: PmWiki:EditVariablesInTextArea, and a talk page: PmWiki:EditVariablesInTextArea-Talk.

Edit - History - Print - Recent Changes - Search
Page last modified on March 09, 2016, at 08:00 pm UTC