Difference between revisions of "Template:Facebook/doc"

From blackwiki
Jump to navigation Jump to search
imported>ArmbrustBot
m (→‎See also: re-categorisation per Wikipedia:Categories for discussion/Log/2015 November 6, replaced: Category:Templates for linking to a social networking site → Category:Social media external link templates using AWB)
(→‎Examples: update/fix)
Line 37: Line 37:
  
 
In this example, there's an ID instead of user name:
 
In this example, there's an ID instead of user name:
   <nowiki>{{Facebook|id=markzuckerberg/68310606562|name=Mark Zuckerberg}}</nowiki>
+
   <nowiki>{{Facebook|id=markzuckerberg/4|name=Mark Zuckerberg}}</nowiki>
{{Facebook|id=markzuckerberg/68310606562|name=Mark Zuckerberg}}
+
{{Facebook|id=markzuckerberg/4|name=Mark Zuckerberg}}
  
 
===Links containing the {{=}} sign===
 
===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 (which separates a parameter's name from its value), 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:
 
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 (which separates a parameter's name from its value), 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:
  
   <nowiki>{{Facebook|id=markzuckerberg/68310606562?v{{=}}notes|name=Mark Zuckerberg}}</nowiki>
+
   <nowiki>{{Facebook|id=markzuckerberg/4?v{{=}}notes|name=Mark Zuckerberg}}</nowiki>
{{Facebook|id=markzuckerberg/68310606562?v{{=}}notes|name=Mark Zuckerberg}}
+
{{Facebook|id=markzuckerberg/4?v{{=}}notes|name=Mark Zuckerberg}}
  
 
==See also==
 
==See also==

Revision as of 21:00, 12 August 2016

Usage

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Facebook

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
Display 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/4|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 (which separates a parameter's name from its value), 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/4?v{{=}}notes|name=Mark Zuckerberg}}

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

See also