Jump to content

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

Template:MoinMarkup/Embed

From Debian Wiki
Revision as of 20:47, 15 March 2026 by AndrewSayers (talk | contribs) (Created page with "<pre><onlyinclude>{{switch:{{{Type|}}} | attachment = {{{Output|}}} <!-- TODO: support embedding attachments (images, text etc.) - see discussion near the bottom of Template:Embed --> | external = <nowiki></nowiki>{{{URL|}}}<nowiki></nowiki> | Category:Pages with unknown embeds{{{Output|}}} <!-- TODO: fix embed {{{Type|}}} - should be "attachment" or "external" --> }}{{Template:MoinMarkup/Boilerplate}}</onlyinclude></pre> <templatedata> { "description": "Embed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<onlyinclude>{{switch:{{{Type|}}}
| attachment = {{{Output|}}} <!-- TODO: support embedding attachments (images, text etc.) - see discussion near the bottom of Template:Embed -->
| external   = {{{URL|}}}
| [[Category:Pages with unknown embeds]]{{{Output|}}} <!-- TODO: fix embed {{{Type|}}} - should be "attachment" or "external" -->
}}{{Template:MoinMarkup/Boilerplate}}</onlyinclude>

Embedded content from a MoinMoin page

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
MoinMarkupIDMoinMarkupID

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

Numberdeprecated
ContentContent

Text between {{ and }} in the MoinMoin source.

Linedeprecated
TypeType

Whether the embedded content is an attachment on the current wiki or external content.

Suggested values
attachment external
Linedeprecated
URLURL

URL of the embedded content.

URLdeprecated
AltAlt

Alt text.

Linedeprecated
ArgsArgs

Comma-separated list of named arguments.

Unknowndeprecated
ArgAlignArgAlign

Show embedded content aligned to the specified position

Suggested values
top middle bottom right left
Linedeprecated
ArgWidthArgWidth

Width of the attached image, in pixels

Numberdeprecated
ArgHeightArgHeight

Height of the attached image, in pixels

Numberdeprecated
OutputOutput

wikitext resembling MoinMoin's rendered output

Contentdeprecated
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/Embed|MoinMarkupID=(\d+)(.*)|MoinMarkupID2=\1}}.

Some notes about this template: