Template:FacebookEmbed/doc

From Bulbapedia, the community-driven Pokémon encyclopedia.
< Template:FacebookEmbed
Revision as of 12:51, 28 August 2024 by SuperPikaPool13 (talk | contribs) (4090364)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

{{FacebookEmbed}} is used for embedding Facebook videos on articles.

This template requires staff approval for use in the mainspace, due to loading issues which embedded videos can cause. A list of mainspace pages (or groups of pages) which may have embedded video is located on the this page. Additions to the list require approval of two staff members ranked Administrator or higher.

Usage

{{FacebookEmbed|1=|2=|3=}}

Parameters

Required
  • 1 (unnamed): The video id from the url, such as https://www.facebook.com/Pokemon/videos/444707348301651/.
  • 2 (unnamed): The page/channel name from the link such as https://www.facebook.com/Pokemon/videos/444707348301651/.
  • 3 (unnamed): The color template name for the entire color scheme. Do not use if defining colors manually using the optional override parameters.
Optional
  • 4 (unnamed): Secondary color scheme, for the channel name background.
  • color: Override for the main color in the color scheme.
  • colorlight: Override for the light color in the color scheme.
  • colordark: Override for the dark color in the color scheme.
  • name': Display override for the page/channel name.
  • caption: Caption that will be shown above the table.
  • cat: Used to customize the categories included by this template; mainly intended to be added blank to suppress categories.
  • width: The width of the video frame. Defaults to 560.
  • height: The height of the video frame. Defaults to 314.

TemplateData

This template is used to embed a Facebook video. Should only be used on approved pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Video ID1

Video ID from the url

Linerequired
Channel2

Page Link from the URL

Linerequired
Channel Namename

Override for the Page link display text

Linesuggested
Color scheme3

Color template name for entire color scheme

Linerequired
Second Color scheme4

Optional: Secondary color for channel background

Default
<3>
Lineoptional
Captioncaption

Caption that will be shown above the table

Stringoptional
Widthwidth

Width of the Video frame

Default
560
Lineoptional
Height of the Video frameheight

no description

Default
314
Unknownoptional
Color Lightcolorlight

Override for the Light color in the Colorscheme

Default
{{<3> color light}}
Lineoptional
Color Medcolor

Override for the medium color in the color scheme

Default
{{<3> color}}
Lineoptional
Color Darkcolordark

Override for the dark color in the color scheme

Default
{{<3> color dark}}
Lineoptional
Categorycat

Used to customize the categories included by this template; mainly intended to be added blank to suppress categories.

Default
[[Category:Articles with accompanying video]]
Lineoptional

Examples

{{FacebookEmbed|444707348301651|Pokemon|Let's Go Eevee|Pokemon}}
By Pokemon
{{FacebookEmbed|1233090951207175|PokemonTCG|name=Pokémon TCG|caption=Trailer|colorlight={{Fairy color light}}|color={{Psychic color}}|colodark={{Dragon color dark}}}}
Trailer
By Pokémon TCG