Wikisage, the free encyclopedia of the second generation and digital heritage, wishes you merry holidays and a happy new year!
Template:Facebook: Difference between revisions
(removing EditAtWikiData) |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
Links to specific sections on a Facebook page used to include the '=' symbol in the URL but no longer need to. 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 the newer URL syntax, for example to link directly to the Photos section of a profile, add <code>/photos</code> to the username: | Links to specific sections on a Facebook page used to include the '=' symbol in the URL but no longer need to. 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 the newer URL syntax, for example to link directly to the Photos section of a profile, add <code>/photos</code> to the username: | ||
: <code><nowiki>{{Facebook|zuck/photos|name=Mark Zuckerberg}}</nowiki></code> | : <code><nowiki>{{Facebook|zuck/photos|name=Mark Zuckerberg's pictures}}</nowiki></code> | ||
: {{Facebook|zuck/photos|name=Mark Zuckerberg}} | : {{Facebook|zuck/photos|name=Mark Zuckerberg's pictures}} | ||
}} | }}[[Category:Wikisage:Template:Link]] | ||
</noinclude> | </noinclude> |
Latest revision as of 22:43, 1 February 2017
- Purpose
This template produces a standardized link to a Facebook profile, page, or section.
- Use
The template is typically used in the 'External links' section of an article.
- Example
Linking to a profile or Page
In this example, the Facebook user account is zuck and the description in the link is Mark Zuckerberg:
{{Facebook|zuck|Mark Zuckerberg}}
- Mark Zuckerberg on Facebook
In this example, there's an ID instead of user name:
{{Facebook |id=4 |name=Mark Zuckerberg}}
- Mark Zuckerberg on Facebook
On the article about an individual, the display name and the article title will usually be identical and can be omitted. For example, on the article page Facebook, linking to their own Facebook profile could be done with:
{{Facebook|facebook}}
- {{safesubst:#Invoke:String|replace|Facebook|%s+%b()$||1|false}} on Facebook
Linking to a specific section
Links to specific sections on a Facebook page used to include the '=' symbol in the URL but no longer need to. 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 the newer URL syntax, for example to link directly to the Photos section of a profile, add /photos
to the username:
{{Facebook|zuck/photos|name=Mark Zuckerberg's pictures}}
- Mark Zuckerberg's pictures on Facebook