PmWikiHelp

Wiki help pages

Notes

Mini image gallery

Mini image gallery and thumbnail generator: https://www.pmwiki.org/wiki/Cookbook/Mini
Uses the PHP-GD image library.

Media types for file upload extensions: https://www.iana.org/assignments/media-types/media-types.xhtml
See https://www.pmwiki.org/wiki/PmWiki/UploadsAdmin#newuploadfiletypes

Commenting out text

Markup comments:

  • use (:comment text_here :) for comments!
  • Anything placed between [= =] is not interpreted by PmWiki
  • (:comment:) This doesn't work, though. (:commentend:)
  • You can use (:if false:) body (:ifend:) to comment out blocks of text

Footnotes

Footnotes: Is there a way to make self-numbering footnotes? [1] Yes, but you have to put the references in the right order. [2]

  1. Reference 1.
  2. Reference 2.

This is the code:

Is there a way to make self-numbering footnotes? [[#ref1|#]] Yes, but you have to put the references in the right order. [[#ref2|#]]

# [[#ref1]] Reference 1.
# [[#ref2]] Reference 2.

Adding table of contents

To use TOC features in PmWiki (as of PmWiki 2.2.119), add

$PmTOC['Enable'] = 1;

to wiki/local/config.php.

The single line spaced entries are a little too cramped for me. I adjusted it by creating the file wiki/pub/css/local.php and adding the lines:

/* Increase line spacing for TOC entries */
.PmTOCdiv a {
    line-height: 1.5; /* Adjust this value to your preference */
}

/* Optional: Add more spacing between TOC levels */
.PmTOCdiv a.pmtoc-indent1 { margin-left: 1em; margin-top: 0.2em; }
.PmTOCdiv a.pmtoc-indent2 { margin-left: 2em; margin-top: 0.2em; }
.PmTOCdiv a.pmtoc-indent3 { margin-left: 3em; margin-top: 0.2em; }
.PmTOCdiv a.pmtoc-indent4 { margin-left: 4em; margin-top: 0.2em; }
.PmTOCdiv a.pmtoc-indent5 { margin-left: 5em; margin-top: 0.2em; }
.PmTOCdiv a.pmtoc-indent6 { margin-left: 6em; margin-top: 0.2em; }}

Making anchors

  1. Make an anchor with [[#anchor]] and link to the anchor with the same text.