Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Examples  



3.1  Named parameters  





3.2  Unnamed parameters  





3.3  Using Wikidata  







4 Tracking category  





5 See also  














Template:Facebook page








ChiTumbuka
Ελληνικά
فارسی

Bahasa Indonesia

ि
Bahasa Melayu

ି
Qaraqalpaqsha
کوردی
Srpskohrvatski / српскохрватски


Tiếng Vit


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{name}}}onFacebook

Template:Facebook page displays an external link to a page at Facebook, a social networking website. It is intended for use in the external links section of an article.

Usage

Named parameters
{{Facebook page | id= page ID }}
{{Facebook page | id= page ID | name= Displayed Name }}
{{Facebook page | id= page ID | name= Displayed Name | link= no }}
Unnamed parameters
{{Facebook page | ID }}
{{Facebook page | ID | Displayed Name }}
Using Wikidata property Facebook page ID (P4003)
{{Facebook page}}
{{Facebook page | name= Displayed Name }}
{{Facebook page | name= Displayed Name | link= no }}

Parameters

Named parameters, for URLs such as https://www.facebook.com/pages/id

  1. |id= is the page ID of the Facebook account.
  2. |name= is the description or display name used in the link text.
  3. |link= suppresses the wikilink to Facebook in the words "on Facebook".

Unnamed parameters, for URLs such as https://www.facebook.com/id

  1. The first unnamed parameter is the ID of the Facebook account.
  2. The second unnamed parameter is the description or display name used in the link text.
  3. Named parameter |link= may be used here as well

Examples

Named parameters

In these examples, the Facebook page ID is wikipedia/103767749661773 and description in the link text is Wikipedia:

* {{Facebook page | id= wikipedia/103767749661773 | name= Wikipedia }}

This example is identical except for the suppress wikilink option:

* {{Facebook page | id= wikipedia/103767749661773 | name= Wikipedia | link= no }}

For these examples, the URL generated by the template is:

https://www.facebook.com/pages/wikipedia/103767749661773

Unnamed parameters

In this example, the Facebook user account is wikipedia and the description in the link is Wikipedia:

* {{Facebook page | wikipedia | Wikipedia }}

For this example, the URL generated by the template is:

https://www.facebook.com/wikipedia

Using Wikidata

Generally, Wikidata should contain article subjects' Facebook page ID in property P4003, allowing the ID parameter to be omitted:

{{Facebook page}}
{{Facebook page |name=NAME }}

If the Wikidata property is not defined, the output is:

{{Facebook page}} template missing ID and not present in Wikidata.

Tracking category

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Facebook_page&oldid=1210826024"

Categories: 
Templates using data from Wikidata
Lua-based templates
Social media external link templates
External link templates using Wikidata
Hidden categories: 
Wikipedia templates currently being merged or deleted
Wikipedia semi-protected templates
Templates that add a tracking category
 



This page was last edited on 28 February 2024, at 14:42 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki