Differences between revisions 1 and 2
Revision 1 as of 2005-03-22 05:42:42
Size: 2041
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 2 as of 2009-09-20 22:07:56
Size: 2041
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Processing Instructions

MoinMoin processing instructions have the same semantics as in XML: they control the paths taken when processing a page. Processing instructions are lines that start with a "#" character followed by a keyword and optionally some arguments; the keyword is always handled case-insensitive. Two consecutive hash marks at the start of a line are a comment that won't appear in the processed page.

Processing instructions this wiki knows of:

  • ## any-text: comment

  • #FORMAT format-specifier: defines the input format for this page, known formats are:

    • Wiki: default MoinMoin wiki markup

    • Plain: normal plain text

    • Python: colorized Python source

    • HTML ( <!> not implemented)

    • StructuredText ( <!> not implemented)

  • #REDIRECT pagename: redirect to a different page (see MeatBall:PageRedirect)

  • #PRAGMA mode args: sets processing modes for this page; mode names are not case-sensitive, currently known modes are:

    • #pragma section-numbers off (or "0") switches off automatic numbering of section headers and "on" or "1" enables numbering (the default mode is set by the show_section_numbers config option). #pragma section-numbers 2 only displays section numbers for headings of level 2 and up (similarly for 3 to 6).

  • #DEPRECATED: Mark this page as deprecated, i.e. further changes to the page will create no backup versions and displaying it will show the current contents (usually the reason why this page is deprecated) plus the last backup. This effectively freezes the last version of the page, makes it unavailable for searches (no hits on stale content), but keeps that content available for viewing.

All PIs must appear at the very start of a page. An exception are comment PIs, those may appear anywhere within a page using "wiki" format (but not in pages using other formats).

For more information on the possible markup, see HelpOnEditing.

HelpOnProcessingInstructions (last edited 2009-09-20 22:07:56 by localhost)