Diff: Help/FileInfoPlugin
Note: You are viewing an old revision of this page. View the current version.
Differences between version 5 and previous revision of Help/FileInfoPlugin.
Other diffs: Previous Major Revision, Previous Author
Newer page: | version 5 | Last edited on 9 September 2007 0:16 | by harold | Revert |
Older page: | version 4 | Last edited on 22 May 2014 3:01 | by harold | Revert |
@@ -1,47 +1,36 @@
-The **~
FileInfo** [[
Help:WikiPlugin|
plugin]]
displays the version, date, size,
+!! Synopsis
+
+
The [
FileInfo|
Help:FileInfoPlugin]
plugin displays the version, date, size,
perms of an uploaded file. Only files relative and below to the uploads path
can be handled.
-For exe files the *
*version*
* argument might work to display the VERSIONINFO ressource string. (highly experimental).
+For exe files the *version* argument might work to display the VERSIONINFO ressource string. (highly experimental).
+
+Since v1.3.13.
+
+!! Typical Usage
+<verbatim>
+ <?plugin FileInfo file=uploads/setup.exe display=version,date ?>
+ <?plugin FileInfo file=uploads/setup.exe display=name,version,date
+ format="%s (version: %s, date: %s)" ?>
+</verbatim>
+
-== Typical Usage ==
+!! Arguments
+__file__:
+ relative path from PHPWIKI_DIR. (required)
-{{{
-<<FileInfo file=uploads/setup.exe display=
version,date>>
-<<FileInfo file=uploads/setup.exe display=
name,version
,date
- format="%s
(version: %s, date: %s
)">>
-}}}
+__display__:
+ Comma-seperated string of
version,size,phonysize
,date,mtime,owner,
name,path,dirname
,
+ link,mime-typ,magic.
(required
)
-== Arguments ==
+__format__:
+ printf format string with %s only, all display modes from above vars return strings (optional)
-{| class="bordered"
-|-
-! Argument
-! Description
-! Default value
-|-
-| **file**
-| Relative path from PHPWIKI_DIR.
-| //None// (required argument)
-|-
-| **display**
-| Comma-separated string of version, size, phonysize, date, mtime, owner, name, path, dirname, link, mime-typ, magic.
-| //None// (required argument)
-|-
-| **format**
-| printf format string with %s only, all display modes from above vars return strings
-| (optional)
-|-
-| **quiet**
-| print no error if file not found
-| false
-|}
-==
Examples ==
+!!
Examples
-This wiki was installed at <<
FileInfo file=config/config.ini display=date>
>.
+This wiki was installed at <?plugin
FileInfo file=config/config.ini display=date ?
>.
-<noinclude>
----
-[[
PhpWikiDocumentation]] [[CategoryWikiPlugin]]
-</noinclude>
+PhpWikiDocumentation Help:WikiPlugin
version 5
Synopsis
The FileInfo plugin displays the version, date, size,
perms of an uploaded file. Only files relative and below to the uploads path
can be handled.
For exe files the version argument might work to display the VERSIONINFO ressource string. (highly experimental).
Since v1.3.13.
Typical Usage
<?plugin FileInfo file=uploads/setup.exe display=version,date ?> <?plugin FileInfo file=uploads/setup.exe display=name,version,date format="%s (version: %s, date: %s)" ?>
Arguments
- file
- relative path from PHPWIKI_DIR. (required)
- display
- Comma-seperated string of version,size,phonysize,date,mtime,owner,name,path,dirname, link,mime-typ,magic. (required)
- format
- printf format string with %s only, all display modes from above vars return strings (optional)
Examples
This wiki was installed at 2022-12-27 03:25:56.