• Differences between current version and predecessor to the previous major change of Help/FileInfoPlugin.

    Other diffs: Previous Revision, Previous Author

    Newer page: version 2 Last edited on December 16, 2018 by hege
    Older page: version 1 Last edited on March 9, 2017 by 5.188.211.19 Revert
    @@ -1 +1,47 @@
    -Describe [Help/FileInfoPlugin ] here
    +The **~FileInfo** [ [Help:WikiPlugin|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).  
    +  
    +== Typical Usage ==  
    +  
    +{{{  
    +<<FileInfo file=uploads/setup.exe display=version,date>>  
    +<<FileInfo file=uploads/setup.exe display=name,version,date  
    + format="%s (version: %s, date: %s)">>  
    +}}}  
    +  
    +== Arguments ==  
    +  
    +{| 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 ==  
    +  
    +This wiki was installed at <<FileInfo file=config/config.ini display=date>>.  
    +  
    +<noinclude>  
    +----  
    +[[PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
    +</noinclude>  

    current version

    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).

    Typical Usage

    <<FileInfo file=uploads/setup.exe display=version,date>>
    <<FileInfo file=uploads/setup.exe display=name,version,date
                                      format="%s (version: %s, date: %s)">>

    Arguments

    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

    This wiki was installed at 12/16/18 20:35:17.

Warning: "Declaration of HtmlUnifiedDiffFormatter::lines($lines, $class, $prefix = false, $elem = false) should be compatible with DiffFormatter::lines($lines, $prefix = ' ')"