Wikisage, the free encyclopedia of the second generation, is digital heritage

Template:Facebook: Difference between revisions

From Wikisage
Jump to navigation Jump to search
(Templateinfo instead of Documentation)
(removing EditAtWikiData)
Line 1: Line 1:
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2013}}
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2013}}
|[https://www.facebook.com/{{Trim|{{{1|{{{id<includeonly>|{{#property:P2013}}</includeonly>}}}}}}}} {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] on [[Facebook]]<includeonly>{{EditAtWikidata|pid=P2013|{{{1|{{{id|}}}}}}}}</includeonly>
|[https://www.facebook.com/{{Trim|{{{1|{{{id<includeonly>|{{#property:P2013}}</includeonly>}}}}}}}} {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] on [[Facebook]]
|<span class="error">&#123;&#123;[[Template:Facebook|Facebook]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Facebook template missing ID]]}}
|<span class="error">&#123;&#123;[[Template:Facebook|Facebook]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:Facebook template missing ID]]}}
}}<noinclude>
}}<noinclude>
Line 32: Line 32:
: {{Facebook|zuck/photos|name=Mark Zuckerberg}}
: {{Facebook|zuck/photos|name=Mark Zuckerberg}}
}}
}}
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</noinclude>
</noinclude>

Revision as of 13:59, 31 January 2017

{{{name}}} on Facebook

Template description
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}}
Mark Zuckerberg on Facebook