- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Encyclopedia Dramatica:A User's Guide to Embedded Content: Difference between revisions
imported>TabbyGarf No edit summary |
imported>TabbyGarf No edit summary |
||
Line 1: | Line 1: | ||
In general [[Computer Science III|web programming]] terms, an embed is an external resource, such as a [[Website|web page]] ([[Templates]]), a [[picture]] ([[mw:Help:Linking_to_files|Files <sup>(MediaWiki)</sup>]]), or a [[Youtube|media player]] (the <nowiki><youtube></nowiki> tag). | [[File:ALWAYSCLEAR.png|350px|right]] | ||
__NOTOC__ | |||
In general [[Computer Science III|web programming]] terms, an embed is an external resource, such as a [[Website|web page]] ([[Templates]]), a [[picture]] ([[mw:Help:Linking_to_files|Files <sup>(MediaWiki)</sup>]]), or a [[Youtube|media player]] (the <nowiki><youtube></nowiki> tag). For MediaWiki, and embed can be an image, video or pdf file showing up in your [[Shit|hitpieces]] | |||
<br> | |||
Encyclopedia Dramatica handles embedding [[Porn Advertisements|content]] through "extensions", such as: | |||
* [[mw:Extension:PDFEmbed|Extension:PDFEmbed]] for PDFs, using the {{tag|pdf|open}} tag | |||
* [[mw:Extension:EmbedVideo|Extension:EmbedVideo]] for videos on YouTube and other sites, using different tags.<br> | |||
It also embeds content using core [[MediaWiki]] wikitext like '''<nowiki>[[File:File.png]]</nowiki>''' for files uploaded through [[Special:Upload|here]].<br> | |||
Encyclopedia Dramatica | This guide will show you how to embed different media formats from videos, audio to pdfs whether its uploaded in the [[Encyclopedia Dramatica|Encyclopedia]] itself, or externally through [[Archive.org]], [[YouTube]] and [[Soundcloud]]<br> | ||
You can put a header under an embedded picture by putting <nowiki>{{clear}}</nowiki> before the header like demonstrated on the right, or get | |||
ugly results because you are a wiki [[n00b]]. | |||
{{clear}} | |||
==Before Embedding: Uploading content== | ==Before Embedding: Uploading content== | ||
You can't embed a file that doesn't exist, which is why you have to upload it, whether its in ED or for videos a video sharing website like [[Youtube]] or [[Archive.org]] | You can't embed a file that doesn't exist, which is why you have to upload it, whether its in ED or for videos a video sharing website like [[Youtube]] or [[Archive.org]] | ||
Line 14: | Line 23: | ||
** VIDEO: mp4, webm, ogg, ogv, mkv, mpg, mpeg, mov | ** VIDEO: mp4, webm, ogg, ogv, mkv, mpg, mpeg, mov | ||
** OTHER: pdf | ** OTHER: pdf | ||
If your file isn't under 66MB, you might want to upload to one of these websites: | If your file isn't under 66MB, you might want to upload to one of these websites: | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 25: | Line 33: | ||
| [https://archive.org Archive.org] || No gore? || Unknown | | [https://archive.org Archive.org] || No gore? || Unknown | ||
|} | |} | ||
===Internal Links=== | |||
To link a file internally (uploaded to ED) you need to do this: | To link a file internally (uploaded to ED) you need to do this: | ||
Line 31: | Line 39: | ||
* '''<nowiki>[[File:File.png|200px|thumb|left|alt text]]</nowiki>''' to use a 200 pixel wide rendition in a box in the left margin with 'alt text' as description | * '''<nowiki>[[File:File.png|200px|thumb|left|alt text]]</nowiki>''' to use a 200 pixel wide rendition in a box in the left margin with 'alt text' as description | ||
* '''<nowiki>[[:File:File.ogg]]</nowiki>''' for directly linking to the file without embedding | * '''<nowiki>[[:File:File.ogg]]</nowiki>''' for directly linking to the file without embedding | ||
{{cs2|1=f|2=<nowiki>[[File:FactCat.png|100px]]</nowiki>|3=[[File:FactCat.png|100px]]}} | {{cs2|1=f|2=<nowiki>[[File:FactCat.png|100px]]</nowiki>|3=[[File:FactCat.png|100px]]}} | ||
{{cs2|1=a|2=<nowiki>[[File:FactCat.png|100px|thumb|left|hello world]]</nowiki>|3=[[File:FactCat.png|100px|thumb|left|hello world]]}} | {{cs2|1=a|2=<nowiki>[[File:FactCat.png|100px|thumb|left|hello world]]</nowiki>|3=[[File:FactCat.png|100px|thumb|left|hello world]]}} |
Revision as of 03:35, 23 February 2022
In general web programming terms, an embed is an external resource, such as a web page (Templates), a picture (Files (MediaWiki)), or a media player (the <youtube> tag). For MediaWiki, and embed can be an image, video or pdf file showing up in your hitpieces
Encyclopedia Dramatica handles embedding content through "extensions", such as:
- Extension:PDFEmbed for PDFs, using the
<pdf>
tag - Extension:EmbedVideo for videos on YouTube and other sites, using different tags.
It also embeds content using core MediaWiki wikitext like [[File:File.png]] for files uploaded through here.
This guide will show you how to embed different media formats from videos, audio to pdfs whether its uploaded in the Encyclopedia itself, or externally through Archive.org, YouTube and Soundcloud
You can put a header under an embedded picture by putting {{clear}} before the header like demonstrated on the right, or get ugly results because you are a wiki n00b.
Before Embedding: Uploading content
You can't embed a file that doesn't exist, which is why you have to upload it, whether its in ED or for videos a video sharing website like Youtube or Archive.org Encyclopedia Dramatica is very lax in terms of content uploading, as long as it is:
- Is not CP or bestiality, or anything breaking ED:RP,
- will be on an article or your userspace,
- and under 66MB, on one of these formats:
- AUDIO: mp3, wav, ogg, oga, midi, mid, opus, flac
- IMAGE: png, jpg, jpeg, tiff, bmp, gif
- VIDEO: mp4, webm, ogg, ogv, mkv, mpg, mpeg, mov
- OTHER: pdf
If your file isn't under 66MB, you might want to upload to one of these websites:
Service | Video Limitations | Copyright Detection |
---|---|---|
YouTube | No politics, no slight violence | High |
NicoVideo | 50 videos/channel | Unknown |
Archive.org | No gore? | Unknown |
Internal Links
To link a file internally (uploaded to ED) you need to do this:
- [[File:File.jpg]] to use the full version of the file
- [[File:File.png|200px|thumb|left|alt text]] to use a 200 pixel wide rendition in a box in the left margin with 'alt text' as description
- [[:File:File.ogg]] for directly linking to the file without embedding
[+][[File:FactCat.png|100px]]
[+][[File:FactCat.png|100px|thumb|left|hello world]]
Embed Tags
While you might be aware of the <youtube> tag, other tags also exist. This is a table of all the supported websites and their corresponding tags.
Videos | Tag | Example of ID | Full URL Example |
---|---|---|---|
YouTube | <youtube> |
3aYCG4vEe5s | https://www.youtube.com/watch?v=3aYCG4vEe5s |
<youtubevideolist> * |
pSsYTj9kCHE urlargs="playlist=pSsYTj9kCHE,pSsYTj9kCHE" |
https://www.youtube.com/embed/pSsYTj9kCHE?playlist=pSsYTj9kCHE,pSsYTj9kCHE | |
<youtubeplaylist> |
PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP | https://www.youtube.com/embed/?listType=playlist&list=PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP | |
Archive.org video | <archiveorg> |
Garfield_McDonalds_Garfield_Mugs_1987 | https://archive.org/details/Garfield_McDonalds_Garfield_Mugs_1987 |
Bing | <bing> |
31ncp9r7l | http://www.bing.com/videos/watch/video/adorable-cats-attempt-to-eat-invisible-tuna/31ncp9r7l |
NicoVideo | <nico> |
sm34403760 | https://www.nicovideo.jp/watch/sm34403760 |
Audio | Tag | Example of ID | Full URL Example |
Spotify | <spotifyalbum> |
1EoDsNmgTLtmwe1BDAVxV5 | https://open.spotify.com/album/1EoDsNmgTLtmwe1BDAVxV5 |
<spotifyartist> |
Full URL | https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02 | |
<spotifytrack> |
Full URL | https://open.spotify.com/track/ | |
Other | Tag | ID | Full Example |
<pdf> |
File:EDF_PAR_Request_Form.pdf | <pdf> File:EDF_PAR_Request_Form.pdf</pdf>
|
- for
<youtubevideolist>
, the formatting is <youtubevideolist urlargs="playlist=C7A4YMGhUZg,OSI6JJaz35I">C7A4YMGhUZg</youtubevideolist>
The tags are compatible with T:Videoframe
To use these tags, put the video id (https://www.youtube.com/watch?v=HgQQXOZemJc) in between the corresponding tags, for example: <youtube>
HgQQXOZemJc</youtube>
results in:
|
The EmbedVideo Tag
Using the </embedvideo>
tag enables more customization
Attribute | Required | Default | Description |
---|---|---|---|
service="(see above tags, except pdf)" | yes | / | The video service to call. |
id="[id|url]" | yes | / | The raw ID of the video or URL from the player page. |
dimensions="[W|WxH|xH]" | no | 640 | Dimensions in pixels to size the embed container. The standard format is width x height where either can be omitted, but the x must proceed height to indicate it as the height.Examples: 480, 480x320, x320. If the height is not provided it will be calculated automatically from the width and service default ratio. Some services such as Gfycat do not have standard heights and should be specified for each embed. |
center|right|inline]" | no | none | Align the placement of the video either to the left, centered, or to the right. Inline will allow multiple videos to display side by side without forced line breaks. |
description="[wiki text]" | no | none | Display a description under the embed container. |
container="[frame]" | no | none | Specifies the container type to use for the embed.frame: Wrap the video player in a Mediawiki thumbnail box. |
urlargs="modestbranding=1&version=3" | no | none | Allows extra URL arguments to be appended to the generated embed URL. This is useful for obscure options only supported on one service. |
autoresize="false" | no | true | Automatically resize videos when their size will cause them to break outside of their container element |
valignment="[top|middle|bottom|baseline]" | no | none | Align the vertical placement of the video either to the top, middle, bottom, or baseline of the parent element. Using this parameter forces the alignment parameter to be inline. |