Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

Template:MoinMarkup/Header: Difference between revisions

From Debian Wiki
Created page with "<pre><onlyinclude>{{#if:{{{Redirect}}}|#REDIRECT {{{Redirect}}}}}{{#if:{{{RefreshDelay|}}}|<!-- TODO: support refreshing the page after the specified number of seconds -->}}{{#ifeq:{{{Deprecated|}}}|{{{Deprecated|not-deprecated}}}||<!-- TODO: support deprecated pages -->}}{{#if:{{{PragmaKeywords|}}}|<!-- TODO: support SEO keywords -->}}{{#if:{{{PragmaDescripiton|}}}|<!-- TODO: support descriptions -->}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude></pre> <templatedat..."
 
Typo: to -> not to
 
Line 91: Line 91:
Some notes about this template:
Some notes about this template:


* <tt>#refresh</tt> doesn't seem to work on the current wiki, and the few pages that contain it seem to assume it will continue to work
* <tt>#refresh</tt> doesn't seem to work on the current wiki, and the few pages that contain it seem to assume it will continue not to work

Latest revision as of 22:45, 15 March 2026

<onlyinclude>{{#if:{{{Redirect}}}|#REDIRECT {{{Redirect}}}}}{{#if:{{{RefreshDelay|}}}|<!-- TODO: support refreshing the page after the specified number of seconds -->}}{{#ifeq:{{{Deprecated|}}}|{{{Deprecated|not-deprecated}}}||<!-- TODO: support deprecated pages -->}}{{#if:{{{PragmaKeywords|}}}|<!-- TODO: support SEO keywords -->}}{{#if:{{{PragmaDescripiton|}}}|<!-- TODO: support descriptions -->}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude>

Header for a page imported from MoinMoin

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
MoinMarkupIDMoinMarkupID

Unique ID for this template on the page, must be the first parameter

Numberdeprecated
FormatFormat

Parser that was used by MoinMoin, usually 'wiki', 'creole', 'plain', 'python', or 'rst'; can also be any other parser name.

Default
wiki
Linedeprecated
RedirectRedirect

URL to immediately redirect to.

URLdeprecated
RefreshTargetRefreshTarget

URL to redirect to, after waiting RefreshDelay seconds.

URLdeprecated
RefreshDelayRefreshDelay

Number of seconds to wait before sending the user to the page in RefreshTarget.

Numberdeprecated
DeprecatedDeprecated

if present, indicates this page has been deprecated.

Unknowndeprecated
LanguageLanguage

Page's language code

Linedeprecated
PragmaSectionNumbersPragmaSectionNumbers

Controls the page's section numbering (also passed to any imported table-of-contents macros).

Linedeprecated
PragmaKeywordsPragmaKeywords

Add a <meta> tag with SEO keywords

Linedeprecated
PragmaDescriptionPragmaDescription

Add a <meta> tag with a page description

Linedeprecated
PragmaSupplementationPragmaSupplementation

Indicates the MoinMoin page had a supplementation page (equivalent to a talk page)

Booleandeprecated
CommentsComments

Other comments that appeared at the top of the document

Stringdeprecated
MoinMarkupID2MoinMarkupID2

Same value as MoinMarkupID=, guaranteed to be the last parameter

Numberdeprecated

Please do not create new instances of this template.

When this wiki was converted from MoinMoin, we used MoinMarkup templates to represent anything that didn't translate neatly between the two formats. The goal is to gradually replace these with native MediaWiki equivalents.

The program that converted the old MoinMoin source always passes a unique MoinMarkupID= value as the first parameter, and the same value in MoinMarkupID2= as the last parameter. If you want to mass-edit every instance of this template (e.g. with the Replace Text extension), you should be able to search for something like {{MoinMarkup/Header|MoinMarkupID=(\d+)(.*)|MoinMarkupID2=\1}}.

Some notes about this template:

  • #refresh doesn't seem to work on the current wiki, and the few pages that contain it seem to assume it will continue not to work