Difference between revisions of "Template:Facebook page/doc"
imported>Senator2029 ({{DEFAULTSORT:}}) |
imported>Davykamanzi |
||
| Line 8: | Line 8: | ||
The first parameter for the {{tl|Facebook Page}} template is the name and ID 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/pages/example/id</nowiki></tt>, then the account name is ''example'' and ''id'' is the series of numbers after the account name. The second parameter is the description or display name. A third parameter suppresses the wikilink to [[Facebook]] in the words "on [[Facebook]]". | The first parameter for the {{tl|Facebook Page}} template is the name and ID 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/pages/example/id</nowiki></tt>, then the account name is ''example'' and ''id'' is the series of numbers after the account name. The second parameter is the description or display name. A third parameter suppresses the wikilink to [[Facebook]] in the words "on [[Facebook]]". | ||
| − | == Examples == | + | ==Examples== |
In this example, the Facebook user account is ''wikipedia'' and the id is ''103767749661773'' description in the link is ''Wikipedia'': | In this example, the Facebook user account is ''wikipedia'' and the id is ''103767749661773'' description in the link is ''Wikipedia'': | ||
* <nowiki>{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia}}</nowiki> | * <nowiki>{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia}}</nowiki> | ||
| Line 15: | Line 15: | ||
* <nowiki>{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia|link=no}}</nowiki> | * <nowiki>{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia|link=no}}</nowiki> | ||
*:{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia|link=no}} | *:{{Facebook Page|id=wikipedia/103767749661773|name=Wikipedia|link=no}} | ||
| + | |||
| + | ===Using Wikidata=== | ||
| + | Generally, [[Wikidata]] should contain article subjects' Facebook page IDs in property {{WPL|id=o|P4003}}, allowing the ID parameter to be omitted: | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |name=''NAME'' }}</code> | ||
| + | |||
| + | If the Wikidata property is not defined, the output is: | ||
| + | : {{ {{BASEPAGENAME}} }} | ||
==See also== | ==See also== | ||
Revision as of 06:00, 12 September 2017
| This is a documentation subpage for Template:Facebook page. It contains usage information, categories and other content that is not part of the original template page. |
| 40x40px | The external links guideline recommends avoiding links to Facebook unless the profile is an official account, "controlled by the subject (organization or individual person) of the Wikipedia article" and when the links to Facebook "provide the reader with unique content and are not prominently linked from other official websites". Wikipedia is not a directory for helping Facebook users find pages on Facebook. |
Contents
Usage
The first parameter for the {{Facebook Page}} template is the name and ID of the Facebook account. This can be found in the page's URL. For example: if the URL is http(s)://www.facebook.com/pages/example/id, then the account name is example and id is the series of numbers after the account name. The second parameter is the description or display name. A third parameter suppresses the wikilink to Facebook in the words "on Facebook".
Examples
In this example, the Facebook user account is wikipedia and the id is 103767749661773 description in the link 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}}
- Wikipedia on FacebookScript error: No such module "EditAtWikidata".
Using Wikidata
Generally, Wikidata should contain article subjects' Facebook page IDs in property Template:WPL, allowing the ID parameter to be omitted:
{{Facebook page}}{{Facebook page |name=NAME }}
If the Wikidata property is not defined, the output is:
- Template:PAGENAMEBASE on FacebookScript error: No such module "EditAtWikidata".
See also