Search:

HomePage
Story


Catagories
Timeline
Cities
Towns
People
Dragons
Locations
Organisations
Religions
Other Worlds

Profiles



Admin Pages

edit SideBar

PmWiki / EditVariablesInTextArea

<< | PmWiki.Variables | >>

Collection of some edit tricks

Variables like {$Version} {$AuthId} ($Author} can be used in the textarea.

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

Refer to the document itself

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

Refer to a relative path:

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

http:/pmwiki/pub/skins/pmwiki/pmwiki-32.gif(approve sites)

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

(approve sites)

(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 https://www.wiki.r1pped.com/index.php(approve sites)

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.


Page last modified on May 08, 2014, at 09:27 PM