PmWikiRu /
, !

, ()

(:if:)

 (:if:)       .

    :

 (:if :) (:ifend:)

 "" -    ( ),  "" -     .   ""(TRUE),    ,   ""(FALSE) -    .

  :

 

(:if name :)  -  ""
(:if group :)  -  ""
(:if auth :)  -  "", : read, edit, upload, attr admin
(:if authid:)  - 
(:if true:)  - 
(:if false:)  -  ( )
(:if attachments:)  - 
(:if date :)  - 
(:if date ..:)  -  ()
(:if date 1..2:)  -  1 2 ()

--

(:if enabled VAR:)  -  PHP VAR (==true)
(:if equal 1 2:)  -  1 2
(:if match :)  - 
(:if exists :)  - 
    :

 

(:if !attachments:)  - 
 
(:if ! name :) ""
(:if name - :)
(:if name ! :)
  (:if:)   ,       ( ):

 

(:if auth read:)*
(:if auth edit:)*
(:if auth upload:)*
(:ifend:)

('*' '?')

  (*) -      ,     ,       .
(?) - . (* ?) :

 

(:if name PmCal.2005* :)  -  PmCal 2005
(:if group PmWiki* :)  -  PmWiki
(:if name Profiles.*,-Profiles.Profiles :)  -  Profiles, Profiles.Profiles

 ( )      .        :

 

(:if expr :)
(:if [ ] :)
(:if ( ) :)
         .   ,           :
  ""
and And 
or Or 
xor Xor,
! ANot 
&& And 
|| Or 
 , :
  • ;
  • .
 :

 

(:if expr auth admin || auth attr || auth edit :)
[[Logout -> {$Name}?action=logout]]
(:if:)
 logout       ,  'read'().

()

 Cookbook:ConditionalMarkupSamples.

<< InterMap | DocumentationIndex | >>

PmWiki.ConditionalMarkup -

  PmWikiRu.ConditionalMarkup -

Backlinks
PmWikiRu.ConditionalMarkup: 2011-09-10
PmWiki.ConditionalMarkup: 2022-12-17