Mientras no se diga lo contrario: |
PmWiki /
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 >> |