Difference between revisions of "Template:Facebook/doc"
imported>Wbm1058 (→Links containing the {{=}} sign: linking to special character isn't helpful here; it's a WP:OVERLINK in this context.) |
imported>Zyxw (add {{TemplateData header}} before <templatedata>) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
{{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to Facebook]] unless the profile is an [[WP:ELOFFICIAL|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.}} | {{warning|The [[Wikipedia:External links|external links guideline]] recommends [[WP:ELNO|avoiding links to Facebook]] unless the profile is an [[WP:ELOFFICIAL|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.}} | ||
| Line 6: | Line 6: | ||
{{See also|Wikipedia:External links/Perennial websites}} | {{See also|Wikipedia:External links/Perennial websites}} | ||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 45: | Line 47: | ||
==See also== | ==See also== | ||
| − | *[[Template:Facebook Page]] | + | * [[Template:Facebook Page]] |
| − | *[[Wikipedia:FACEBOOK]] | + | * [[Wikipedia:FACEBOOK]] |
| − | *{{tl|Facebook navbox}} | + | * {{tl|Facebook navbox}} |
| − | *{{tl|Google+}} | + | * {{tl|Google+}} |
| − | <includeonly> | + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
| − | <!-- | + | <!-- Categories below this line, please; interwikis at Wikidata --> |
[[Category:Templates for linking to a social networking site|{{PAGENAME}}]] | [[Category:Templates for linking to a social networking site|{{PAGENAME}}]] | ||
| − | + | }}</includeonly> | |
| − | |||
| − | </includeonly> | ||
Revision as of 03:07, 27 August 2015
| This is a documentation subpage for Template:Facebook. It contains usage information, categories and other content that is not part of the original template page. |
| 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. |
Usage
TemplateData
TemplateData for Facebook
Generate a link to a Facebook profile in a standard format.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Account ID | id 1 | ID of the Facebook account (part of the web page address, for www.facebook.com/example/ the account id is "example"). | Line | required |
| Display name | name 2 | Display name for the Facebook account
| Line | optional |
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 (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/68310606562?v{{=}}notes|name=Mark Zuckerberg}}
Mark Zuckerberg on FacebookScript error: No such module "EditAtWikidata".
See also