|
GBU Strasbourg
|
<--> |
| December 17, 2025, at 02:35 AM | PmWiki / ConditionalMarkup |
ConditionalMarkupauthors, admins (advanced) Using the (:if:) DirectiveThe where "cond" names a condition to be tested (described below), and "param" is a parameter or other argument to the condition. The built-in conditions include: (:if name [name]:) - current page is named "name"
(:if auth [level]:) - viewer is authorized at "level"
(:if authid:) - current viewer is authenticated
(:if true:) - always include text
(:if false:) - always exclude text (same as a comment)
(:if attachments:) - current page has attachments
(:if date [date1..date2]:)
- current date is in range (dates are yyyy-mm-dd)
Negated forms of conditions also work
[@(:if !attachments:) This page has no attachments
Any (:if auth read:)* You can read
(:if auth edit:)* You can edit
(:if auth upload:)* You can upload
(:ifend:)
admins (advanced) Creating new conditionsSee Cookbook:ConditionalMarkupSamples. << InterMap | DocumentationIndex | Markup variables >> |
| Validate the XHTML and CSS of this page. | Page last modified on October 17, 2005, at 10:59 AM | Edit History Print Recent Changes |
|
Powered by PmWiki |
||