Cookbook /
SandboxAttachments
List of attachments to the Mini page :
(:attachtable Mini list=all:) | ||||||||||||||||||||||||||||||||||||||||||
|
Conditionals :
(:if attachments Mini:) * attachments at [[Mini]] (:if attachments Mini/*.jpg:) * attachments *.jpg (:if attachments Mini/*.png:) * attachments *.png (:if attachments Mini/*.avi:) * attachments *.avi (:if attachments Mini/Test.jpg:) * attachments Test.jpg (:if attachments Mini/te*.jpg:) * attachments te*.jpg (case insensitive) (:if attachments Mini/Test.html:) * attachments Test.html (:if attachments Mini/th*---*.jpg:) * Mini or Thumblist thumbnails exist (:if attachments *:) * current page has an attachment (:ifend:) |
In a pagelist :
(:pagelist group=Cookbook if="attachments {=$FullName}/*" fmt=#simplename:) |
Multiple file matches. Note that this may seem counter-intuitive, but works exactly the same way as the pagelist name=*Page1,*Page2,-A*
parameter.
(:if attachments *.ogg,*.mp3,*.wav,*.au:) * at least one audio file (not all types) (:if attachments Mini/*.png,*.avi:) * either *.png, or *.avi exist (not both) (:if attachments Mini/*,-*.avi,-*.zip:) * there are attachments other than *.avi, or *.zip (:if [ attachments Mini/*.png && attachments Mini/*.jpg ]:) * both *.png, and *.jpg exist (:ifend:) |