CZjfaD , [url=http://nnredzsskgao.com/]nnredzsskgao[/url], [link=http://orsiupreszzr.com/]orsiupreszzr[/link], http://ajihppvvwlic.com/ |
PmWiki /
ConditionalMarkupPmWiki.ConditionalMarkup HistoryHide minor edits - Show changes to markup April 25, 2013, at 12:56 AM EST
by
- ODNQykrzTChanged line 1 from:
XcuWoC , [url=http://atgffswvyzpp.com/]atgffswvyzpp[/url], [link=http://wthsgebxytmp.com/]wthsgebxytmp[/link], http://uvsnwbvninms.com/ to:
I love renadig these articles because they're short but informative. December 05, 2011, at 11:15 AM EST
by
- DdHBfEwlVGChanged line 1 from:
to:
XcuWoC , [url=http://atgffswvyzpp.com/]atgffswvyzpp[/url], [link=http://wthsgebxytmp.com/]wthsgebxytmp[/link], http://uvsnwbvninms.com/ November 30, 2011, at 01:42 PM EST
by
- ztleupWLPXRChanged line 1 from:
q2tAjW <a href="http://kkhgnzknkltx.com/">kkhgnzknkltx</a> to:
November 24, 2011, at 06:44 AM EST
by
- LzdGutfigsnChanged line 1 from:
Whoa, things just got a whole lot esaeir. to:
q2tAjW <a href="http://kkhgnzknkltx.com/">kkhgnzknkltx</a> November 23, 2011, at 04:51 PM EST
by
- 2000Changed lines 1-182 from:
(:Summary:The if directive allows portions of a page to be included or excluded from rendering:) authors, admins (advanced) Using the (:if:) DirectiveThe (:if cond param:) body (:ifend:)
(:if cond param:) body (:else:) body (:ifend:)
(:if cond param:) body (:elseif cond param:) body (:ifend:)
where "cond" names a condition to be tested (described below), and "param" is a parameter or other argument to the condition. Conditions do not nest. The built-in conditions include: (:table border=0 cellpadding=0 cellspacing=0 valign=top:)
(:cellnr rowspan=250:)
(:cell:) Negated forms of conditions also work: (:table border=0 cellpadding=0 cellspacing=0 valign=top:)
(:cellnr rowspan=250:)
(:cell:) Any (:if enabled AuthPw:)* You're logged in (:if auth read:)* You can read (:if auth read Group.Page:)* You can read Group.Page (:if auth edit:)* You can edit (:if auth upload:)* You can upload (:ifend:) Using wildcard placeholders(:if false:)(new for pmwiki 2.1.beta21):(:ifend:)The character (:table border=0 cellpadding=0 cellspacing=0 valign=top:)
(:cellnr rowspan=250:)
(:cell:) Use with page list templatesConditional markup is used extensively with page list templates. Use with page variables: = current item < previous item > next item Conditionals used to structure pagelist output:
Combining conditionsConditions (as previously defined) may be combined into more complex conditional expressions using one of these three equivalent forms: (:if expr EXPRESSION :) (:if [ EXPRESSION ] :) (:if ( EXPRESSION ) :) Conditions are combined into expressions with boolean operators and brackets. In the next table, A and B are either regular conditions or (round-)bracketed sub-expressions of regular conditions:
Nota:
Thus, the following is a valid way of building an expression that shows the following contents only when the user is either the administrator, or is logged in and the time is later than the given date: (:if [ auth admin || ( authid && date 2006-06-01 ) ] :)
Nesting with square brackets will silently fail to work as expected: (:if [ auth admin || [ authid && date 2006-06-01 ] ] :) NOTE: Doesn't Work!
A common use of these complex tests are for expressions like: (:if expr auth admin || auth attr || auth edit :)
[[Logout -> {$Name}?action=logout]]
(:ifend:)
which provides a logout link only when the browser has admin, attr, or edit permissions. admins (advanced) Creating new conditionsSee Cookbook:ConditionalMarkupSamples. << InterMap | Documentation Index | Page variables >> to:
Whoa, things just got a whole lot esaeir. |