FANDOM


m
Line 1: Line 1:
{{:FacebookWidget
+
<noinclude>{{LangSelect}}</noinclude><includeonly>
| description = Adds Facebook [https://developers.facebook.com/docs/plugins/page-plugin widget] into your wiki's right rail.
+
{{Languages}}
| intro = is a script that adds a Facebook [https://developers.facebook.com/docs/plugins/page-plugin widget] into your wiki's right rail using jQuery library.
+
{{Infobox JavaScript
| installation = Installation
+
| Image file = {{{image|FacebookWidget.png}}}
| configuration header = Configuration
+
| Description = {{{description|}}}
| configuration intro = You have to create the following MediaWiki pages on your wiki to make this script works. All MediaWiki pages relating to the configuration of FacebookWidget starts with <code>MediaWiki:Custom-FBWidget-config-</code> - and after it goes the name of the configuration option.
+
| Author = [[User:Railfail536|Railfail536]] <br /> [[User:Luqgreg|Luqgreg]]
| conf-option = Option
+
| Code = [[MediaWiki:FacebookWidget.js|.js]]
| conf-description = Description
+
| Updated = {{Updated|MediaWiki:FacebookWidget.js}}
| conf-default = Default value
+
| Status = Unmaintained
| page-desc = Name of the page, e.g. the <code>getFANDOM</code> fragment of <code>www.facebook.com/getFANDOM/</code>
+
| Scope = s
| width-desc = Width of the widget
 
| height-desc = Height of the widget
 
| changelog = Changelog
 
| v1.0-date = August 1, 2018
 
| v1.1-date = August 9, 2018
 
| v1.2-date = August 12, 2018
 
| v1.0-changes = published on {{SITENAME}}.
 
| v1.1-changes = removed unnecessary variable and encoded URL characters from code, changed default width to <code>300</code>.
 
| v1.2-changes = script returns an error message in console if config page doesn't exist.
 
 
}}
 
}}
  +
'''{{BASEPAGENAME}}''' {{{intro|}}}
  +
  +
== {{{installation|}}} ==
  +
{{Script Install|Use = S}}
  +
  +
== {{{configuration header|}}} ==
  +
{{{configuration intro|}}}
  +
  +
{| class="wikitable" style="width: 100%"
  +
! {{{conf-option|}}}
  +
! {{{conf-description|}}}
  +
! {{{conf-default|}}}
  +
|-
  +
| <code>page</code>
  +
| {{{page-desc|}}}
  +
| —
  +
|-
  +
| <code>width</code>
  +
| {{{width-desc|}}}
  +
| <code>300</code>
  +
|-
  +
| <code>height</code>
  +
| {{{height-desc|}}}
  +
| <code>130</code>
  +
|}
  +
  +
== {{{changelog|}}} ==
  +
{{#if:{{{v1.0-date|}}}|
  +
; {{{v1.0-date|}}} ([[Special:Permalink/87769|v1.0]])
  +
: [[User:Railfail536|Railfail536]] {{int:and}} [[User:Luqgreg|Luqgreg]]: {{{v1.0-changes|}}} }}
  +
{{#if:{{{v1.1-date|}}}|
  +
; {{{v1.1-date|}}} ([[Special:Permalink/89156|v1.1]] {{int:pipe-separator}} [[Special:Diff/89156|{{int:diff}}]])
  +
: [[User:Railfail536|Railfail536]]: {{{v1.1-changes|}}} }}
  +
{{#if:{{{v1.2-date|}}}|
  +
; {{{v1.2-date|}}} ([[Special:Permalink/89841|v1.2]] {{int:pipe-separator}} [[Special:Diff/89841|{{int:diff}}]])
  +
: [[User:Railfail536|Railfail536]]: {{{v1.2-changes|}}} }}
  +
  +
[[Category:Social Media Integration]]
  +
</includeonly>

Revision as of 16:51, November 11, 2018

FacebookWidget is a script that adds a Facebook widget into your wiki's right rail using jQuery library.

Installation

Configuration

You have to create the following MediaWiki pages on your wiki to make this script works. All MediaWiki pages relating to the configuration of FacebookWidget starts with MediaWiki:Custom-FBWidget-config- - and after it goes the name of the configuration option.

Option Description Default value
page

Name of the page.

E.g. the getFandom fragment of www.facebook.com/getFandom/

width Width of the widget 300
height Height of the widget 130

Changelog

August 1, 2018 (v1.0)
Rail and Luqgreg: published on Fandom Developers Wiki.
August 9, 2018 (v1.1 | diff)
Rail: removed unnecessary variable and encoded URL characters from code, changed default width to 300.
August 12, 2018 (v1.2 | diff)
Rail: script returns an error message in console if config page doesn't exist.


Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.