Template:MoinMarkup/Embed
<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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| MoinMarkupID | MoinMarkupID | Unique ID for this template on the page, must be the first parameter. | Number | deprecated |
| Content | Content | Text between {{ and }} in the MoinMoin source. | Line | deprecated |
| Type | Type | Whether the embedded content is an attachment on the current wiki or external content.
| Line | deprecated |
| URL | URL | URL of the embedded content. | URL | deprecated |
| Alt | Alt | Alt text. | Line | deprecated |
| Args | Args | Comma-separated list of named arguments. | Unknown | deprecated |
| ArgAlign | ArgAlign | Show embedded content aligned to the specified position
| Line | deprecated |
| ArgWidth | ArgWidth | Width of the attached image, in pixels | Number | deprecated |
| ArgHeight | ArgHeight | Height of the attached image, in pixels | 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/Embed|MoinMarkupID=(\d+)(.*)|MoinMarkupID2=\1}}.
Some notes about this template:
- embedding is discussed in HelpOnLinking#Embedding
- support for external images is configured with $wgAllowExternalImages
- MoinMoin attachments are associated with a specific page; MediaWiki attachments are files in a separate namespace
- at the time of writing, no decision has been made about how imported attachments will be named in MediaWiki
- attachments are usually .png, .jpg, .jpeg or .gif, but a few are different...
- 84 attachments are .svg images
- .txt attachments appear on the following pages:
- DebianEdu/HowTo/LtspBootchart (one instance, search for "Toggle line numbers")
- FredLeMeur/monOLinuXino-A20 (several instances, search for "Toggle line numbers")
- Modem/3G and it/Modem/3G (broken link, search for "option_insert_nousb.txt")
- .pdf attachments appear on the following pages:
- DebConf/22/DayTrip (search for "pdf")
- DebConf/22/Faq (search for "map of the venue")
- DebConf/26/Bids/SantaFe (search for "Bid presentation during DebConf")
- DebianWomen/Projects/MiniDebconf-Women/2014/DesignTools (search for "pdf")
- .gz attachments appear on the following pages:
- DebianArt/Themes/NiceIce (search for "niceice.tar.gz")
- DebianEdu/Lwat (search for "attached file")
- .sh attachments appear on the following pages:
- DebianOnIntelMacPro (link is at the bottom of the page after the .c attachment, seems not to render correctly)
- Javascript/Nodejs/Manual (search for "node-autopkgtest.sh")
- .webm attachments appear on the following pages:
- FreedomBox/Manual/LetsEncrypt (Search For "Screencast")
- ThomasChung/DebianClassic (search for "action")
- the following may also appear on at least one page: eps, kdi, avif, log, ics, odp, odt, mp4, c, rosinstall, py, ai, diff