Template:MoinMarkup/Macro
<onlyinclude>{{#switch: {{{Name|}}}
| Action = {{#switch:{{{1|}}}
| info = <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=info}}{{{2|page info}}}]</span>
| subscribe = <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=watch}}{{{2|watch this page}}}]</span>
| userprefs = [[Special:Preferences|{{{2|user preferences}}}]]
| recoverpass = {{{Output|}}} <!-- TODO: link to a page that explains how to recover your Salsa password ({{{2|}}} is the optional link text) -->
| [[Category:Pages with unknown actions]]{{{Output|}}} <!-- TODO: add fallback for {{{1|}}} -->
}}
| Anchor = <span id="{{{1|}}}"></span>
| BR = <br>
| Date = {{#time: Y-m-d | {{{1|}}} }} <!-- MediaWiki caches rendered page contents, so the default value is the time the page was last rendered into HTML. MoinMoin doesn't cache the result, so the zero-argument version of this macro always shows the current date -->
| DateTime = {{#time: Y-m-d H:i:s | {{{1|}}} }} <!-- MediaWiki caches rendered page contents, so the default value is the time the page was last rendered into HTML. MoinMoin doesn't cache the result, so the zero-argument version of this macro always shows the current date -->
| DebianCodename = {{DebianCodename|{{{1|}}}}}
| DebianCodenameLink = {{DebianCodename|{{{1|}}}}}
| DebianDate = {{DebianDate|{{{1|}}}}}
| DebianVersion = {{DebianVersion|{{{1|}}}}}
| FootNote = {{#if:{{{1|}}}|<ref>{{{1|}}}</ref>|<references />}}
| FullSearch
| FullSearchCached = {{#switch: {{#ifeq:{{{1|}}}|{{{1|missing}}}|{{#if:{{{1|}}}|text|empty}}|(missing)}}
| missing = {{{Output|}}} <!-- TODO: create a search box on the page, which searches the page contents -->
| empty = {{{Output|}}} <!-- TODO: show a list of pages whose content matches the current page title -->
| text = {{{Output|}}} <!-- TODO: show a list of pages whose content matches the search term -->
}}
| PageList = show a list of pages whose title matches the search term
| AttachList = show a list of attachments
| GetText = {{{1|}}} <!-- TODO: load I18N text (a quick search of the old wiki shows the following values are used: ["Anmelden","BenutzerEinstellungen","Comments","Delete Cache","Edit","EditText","Get Info","Get info","Info","Informations","Login","Mail me my account data","Notification","Preferences","RecentChanges","The following users subscribed to this page:","UserPreferences","subscribe","suscribe","设置"] -->
| Include = {{#ifeq:{{{ArgCount}}}|1|{{{{{1|}}}}}|
{{{Output|}}} <!-- TODO: support transclusions with <tt>from=</tt>, <tt>to=</tt>, <tt>sort=</tt> and <tt>items=</tt> parameters -->
}}
| Hits = {{{Output|}}} <!-- TODO: show a counter for page hits -->
| Icon = {{{Output|}}} <!-- TODO: support the icons from https://moinmo.in/HelpOnNavigation#Icon (some of which are also smileys) -->
| MailTo = {{{Output|}}} <!-- TODO: show the specified e-mail address to normal users but not bots -->
| MonthCalendar = {{{Output|}}} <!-- TODO: show a calendar and create link for entries to each day on subpages -->
| Navigation = {{#switch: {{{1|}}}
| children = list all of the page's children
| siblings = list all of the page's siblings
| slideshow = create a link to toggle between slide show and wiki mode, and a link to start the slide show
| slides = display first/prev/next/last links
}}
| NewPage = show a widget to easily create (sub-)pages
| ShowSmileys = {{{Output|}}} <!-- TODO: list all supported smileys (note: this is used on [[ccts]], [[hughszg]] and some test pages - maybe just link to [[Template:MoinMarkup/Smiley]]?) -->
| TableOfContents = {{TOC|SectionNumbers={{{SectionNumbers|}}}|MaxDepth={{{1|}}}}}
| Verbatim = {{{1|}}}
| MessageId
| mid = {{MessageId|{{{1|}}}}}
| [[Category:Pages with unknown macros]]{{{Output|}}} <!-- TODO: support macro {{{1|}}} -->
}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude>
Macro from a MoinMoin page (macro-specific positional parameters are not shown here)
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| MoinMarkupID | MoinMarkupID | Unique ID for this template on the page, must be the first parameter. | Number | deprecated |
| Name | Name | Name of the macro
| Line | deprecated |
| ArgCount | ArgCount | Number of positional parameters | Number | deprecated |
| Output | Output | wikitext resembling MoinMoin's rendered output | Content | deprecated |
| MoinMarkupID2 | MoinMarkupID2 | Same value as MoinMarkupID=, guaranteed to be the last parameter | Number | deprecated |
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/Macro|MoinMarkupID=(\d+)(.*)|MoinMarkupID2=\1}}.
Some notes about this template:
- most macros are discussed in HelpOnMacros
- <<Action>> is discused in HelpOnActions
- <<Include>> is discussed in HelpOnMacros/Include]
- GetVal and RandomQuote occur in the list of common macros, which includes older revisions
- they're not included above because they only remain on pages that test their functionality
- Verbatim should work like <nowiki>, but in practice it's only ever used a few times
- the following arguments are passed to <<Verbatim>> at least once: ["----","\"","PulseAudio","HelpOnMacros"]
- <<Include>> mostly just transcludes full pages, but...
- from= and to= were widely used in implement translation headers, but they were removed during the conversion
- from= and to= are sometimes used in untranslated sections of translated pages (see e.g. it/zd1211rw)
- sort=ascending is used on 29 different pages
- sort=descending and items=5 are used on BSP and fr/BSP