Difference between revisions of "Template:Facebook/doc"

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 19 interwiki links, now provided by Wikidata on d:Q5624646)
imported>Krinkle
Line 6: Line 6:
 
{{See also|Wikipedia:External links/Perennial websites}}
 
{{See also|Wikipedia:External links/Perennial websites}}
  
The first parameter for the {{tl|Facebook}} template is the name of the Facebook account. This can be found in the page's [[Uniform Resource Locator|URL]]. For example: if the URL is <tt><nowiki>http(s)://www.facebook.com/example</nowiki></tt>, then the account name is ''example''. The second parameter is the description or display name.
+
<templatedata>
 +
{
 +
    "description": "Generate a link to a Facebook profile in a standard format.",
 +
    "params": {
 +
        "id": {
 +
            "label": "Account ID",
 +
            "description": "ID of the Facebook account (part of the web page address, for www.facebook.com/example/ the account id is \"example\").",
 +
            "type": "string/line",
 +
            "required": true,
 +
            "aliases": ["1"]
 +
        },
 +
        "name": {
 +
            "label": "Diplay name",
 +
            "description": "Display name for the Facebook account",
 +
            "type": "string/line",
 +
            "required": false,
 +
            "default": "Name of the page",
 +
            "aliases": ["2"]
 +
        }
 +
    }
 +
}
 +
</templatedata>
  
 
== Examples ==
 
== Examples ==

Revision as of 06:04, 2 August 2013

Usage

Generate a link to a Facebook profile in a standard format.

Template parameters

ParameterDescriptionTypeStatus
Account IDid 1

ID of the Facebook account (part of the web page address, for www.facebook.com/example/ the account id is "example").

Linerequired
Diplay namename 2

Display name for the Facebook account

Default
Name of the page
Lineoptional

Examples

In this example, the Facebook user account is markzuckerberg and the description in the link is Mark Zuckerberg:

 {{Facebook|markzuckerberg|Mark Zuckerberg}}

Mark Zuckerberg on FacebookScript error: No such module "EditAtWikidata".

In this example, there's an ID instead of user name:

 {{Facebook|id=markzuckerberg/68310606562|name=Mark Zuckerberg}}

Mark Zuckerberg on FacebookScript error: No such module "EditAtWikidata".

Links containing the = sign

Links to specific sections on a Facebook page may include the '=' symbol in the URL. For example, the string '?v=wall' would indicate the "Wall" section. Because '=' is a special character in Wikipedia template syntax, it cannot be used directly in the id. If you want the link to arrive at a specific section, use Template:= instead. For example, to link to the "Notes" section:

 {{Facebook|id=markzuckerberg/68310606562?v{{=}}notes|name=Mark Zuckerberg}}

Mark Zuckerberg on FacebookScript error: No such module "EditAtWikidata".

See also