<?xml version="1.0" encoding="utf-8"?>
<s1 title="HelpOnProcessingInstructions"><p></p>
<s2 id="Processing Instructions" title="Processing Instructions">
<p><p>Contents</p>
<ol><li>
<link anchor="P">Processing Instructions</link><ol><li>
<link anchor="#">## comment</link></li>
<li>
<link anchor="#-1">#format</link></li>
<li>
<link anchor="#-2">#redirect</link></li>
<li>
<link anchor="#-3">#refresh</link></li>
<li>
<link anchor="#-4">#pragma</link><ol><li>
<link anchor="s">section-numbers</link></li>
<li>
<link anchor="k">keywords</link></li>
<li>
<link anchor="d">description</link></li>
<li>
<link anchor="s-1">supplementation</link></li>
</ol>
</li>
<li>
<link anchor="#-5">#deprecated</link></li>
<li>
<link anchor="#-6">#language</link></li>
</ol>
</li>
</ol>
<p> </p>
<p><jump href="/wiki/MoinMoin">MoinMoin</jump> processing instructions have the same semantics as in XML: they control the paths taken when processing a page. Processing Instructions (PIs) are lines that start with a &quot;<code>#</code>&quot; 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&apos;t appear in the processed page. </p>
<p>All PIs must appear at the very start of a page. An exception are comment PIs, those may appear anywhere within a  page using &quot;wiki&quot; format, but not in pages using other formats. </p>
<p>For more information on the possible markup, see <jump href="/wiki/HelpOnEditing">HelpOnEditing</jump>.  </p>
<p>Processing instructions MoinMoin knows of: </p>
<p></p>
<s3 id="## comment" title="## comment">
<p></p>
<source><![CDATA[## a comment, any text here is ignored]]></source><p><anchor id="format"/> </p>
</s3>
<s3 id="#format" title="#format">
<p>Defines the input format for this page.  </p>
<source><![CDATA[#FORMAT format-specifier optional-arguments]]></source><p>format-specifier can be: </p>
<ul><li><p><strong>wiki</strong>: default <jump href="/wiki/MoinMoin">MoinMoin</jump> wiki markup (see <jump href="/wiki/HelpOnMoinWikiSyntax">HelpOnMoinWikiSyntax</jump>) </p>
</li>
<li><p><strong>creole</strong>: alternative wiki syntax (see <jump href="/wiki/HelpOnCreoleSyntax">HelpOnCreoleSyntax</jump>) </p>
</li>
<li><p><strong>plain</strong>: normal plain text </p>
</li>
<li><p><strong>python</strong>: colored Python code </p>
</li>
<li><p><strong>rst</strong>: reStructuredText markup (see <jump href="/wiki/HelpOnParsers/ReStructuredText">HelpOnParsers/ReStructuredText</jump>) </p>
</li>
<li><p>Any other installed parser name. See <jump href="/wiki/HelpOnParsers">HelpOnParsers</jump> for additional parsers available and <interwiki wiki="MoinMoin" pagename="ParserMarket">ParserMarket</interwiki> for user provided parsers. </p>
</li>
</ul>
<p>Some parsers can accept optional arguments. Check the documentation of the parser for the possible options. </p>
<p></p>
</s3>
<s3 id="#redirect" title="#redirect">
<p>Redirect to a different page (see <interwiki wiki="MeatBall" pagename="PageRedirect">PageRedirect</interwiki><strong></strong>) </p>
<source><![CDATA[#REDIRECT pagename]]></source><p></p>
</s3>
<s3 id="#refresh" title="#refresh">
<p>Redirect to a different page (or an external URL or just refresh the same page, if left out) </p>
<ul><li><p>Needs to be enabled in the server configuration, see <jump href="/wiki/HelpOnConfiguration">HelpOnConfiguration</jump> </p>
</li>
</ul>
<p></p>
<source><![CDATA[#REFRESH delay target]]></source><p>target can be either a page name, or a fully qualified url. Here are two examples: </p>
<source><![CDATA[#refresh 0 FrontPage
#refresh 5 http://example.com/]]></source><p></p>
</s3>
<s3 id="#pragma" title="#pragma">
<p>Sets processing modes for this page: </p>
<source><![CDATA[#PRAGMA mode arguments]]></source><p> </p>
<p>Mode names are not case-sensitive.  </p>
<p>MoinMoin knows few pragmas, and you may add more and use them for your own themes or macros. Here are the known pragmas: </p>
<p></p>
<s4 id="section-numbers" title="section-numbers">
<p>Switches automatic numbering of section headers. </p>
<source><![CDATA[#pragma section-numbers off]]></source><p><code>off</code> or <code>0</code> disable numbering, <code>on</code> or <code>1</code> enables numbering. The default mode is set by the <code>show_section_numbers</code> config option. </p>
<p>When enabling numbering, its possible to use specific heading level: </p>
<source><![CDATA[#pragma section-numbers 2]]></source><p>Only displays section numbers for headings of level 2 and up (similarly for 3 to 6). </p>
<p></p>
</s4>
<s4 id="keywords" title="keywords">
<p>adds a <code>&lt;meta&gt;</code> tag with keywords which tells search engines what you can find on the particular page. </p>
<source><![CDATA[#pragma keywords Cars, Vehicles, Foo]]></source><p> </p>
<p></p>
</s4>
<s4 id="description" title="description">
<p>adds a <code>&lt;meta&gt;</code> tag which contains the description of the particular page. </p>
<source><![CDATA[#pragma description This page is about cars.]]></source><p> </p>
<p></p>
</s4>
<s4 id="supplementation" title="supplementation">
<p>is used to enable or disable a supplementation for the current page e.g. a discussion page </p>
<source><![CDATA[#pragma supplementation-page on]]></source><p><code>off</code> disables the supplementation for the current page. See also <jump href="/wiki/HelpOnConfiguration/SupplementationPage">HelpOnConfiguration/SupplementationPage</jump> for more. </p>
<p></p>
</s4>
</s3>
<s3 id="#deprecated" title="#deprecated">
<p>Mark this page as deprecated. </p>
<source><![CDATA[#DEPRECATED]]></source><p>Further changes to the page will create no backup versions and using it will cause the current revision to show along with the revision previous to the deprecation. This allows you to remove all of the page&apos;s content, insert #deprecated, and then write a short message explaining the reason behind this action. By doing this you are effectively freezing the last version of the page and reducing its rank in search results, but you are keeping the content available for viewing. </p>
<ul><li><p>Removing the PI from the page will store <strong>no</strong> backup of the deprecation warning. </p>
</li>
<li><p>In comparison to <code>#REDIRECT</code> this PI gives the ability to give the user a reason why this page is no longer of use and why they should go to a new one, while <code>#REDIRECT</code> will throw them to the new page without any reason. </p>
</li>
<li>Not removing the page&apos;s content when adding #deprecated will cause the page to render twice. </li>
</ul>
<p></p>
</s3>
<s3 id="#language" title="#language">
<p>Set page language and direction. </p>
<source><![CDATA[#language language-name]]></source><p>Set page language and direction. Language name is the iso-639-1 code. <jump href="/wiki/MoinMoin">MoinMoin</jump> ignore languages that does not have a translation file in <code>MoinMoin/i18n/</code>. See also <jump href="/wiki/HelpOnLanguages">HelpOnLanguages</jump>. </p>
</s3></s2></s1>