Jump to content

Template:Facebook: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
use Module:EditAtWikidata to add edit link if using Wikidata
No edit summary
Line 1: Line 1:
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2013}}
{{subst:https}}{{#if:{{#property:P2013}}
|[https://www.facebook.com/{{Trim|{{#property:P2013}}}} {{#if:|{{{name}}}|{{PAGENAMEBASE}}}}] on [[Facebook]]{{EditAtWikidata|pid=P2013|}}
|<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]]}}
}}{{#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]]<includeonly>{{EditAtWikidata|pid=P2013|{{{1|{{{id|}}}}}}}}</includeonly>
|<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]]}}
Line 5: Line 8:
{{Documentation}}
{{Documentation}}
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</noinclude>
</noinclude>==E.O. No. 335==
<DIV align="center">
<TABLE style="background: white; width: 100%; color: red; mso-cellspacing: 0in; mso-padding-alt: 0pt 0pt 0pt 0pt;"
border="6" cellspacing="13" cellpadding="3" color="white">
<TR>
<TD style="width: 87%;" background="white">
<DIV align="center">
<TABLE class="MsoNormalTable" style="background: white; color: blue; width: 100%; mso-cellspacing: 0.05in; mso-padding-alt: 0.25pt 0.25pt 0.25pt 0.25pt;"
border="7" cellspacing="8" cellpadding="3" background="gold">
<TR>
<TD style="background: maroon; width: 100%;"> <DIV align="center">
<TABLE class="MsoNormalTable" style="background: rgb(137,00,00); width: 100%; color: red; mso-cellspacing: 0.05in; mso-padding-alt: 0.25pt 0.25pt 0.25pt 0.25pt;"
border="4" cellspacing="3" cellpadding="3">
<TR>
<TD style="width: 100%;" background="maroon">
<DIV align="center">
<P style="text-align: center; text-indent: 0in; margin-top: 0.12in; margin-bottom: 0.06in;"><SPAN
style="color: rgb(39,3,3); font-family: Old English Text MT; font-size: 17pt; font-weight: 300; FONT-VARIANT: Normal; LINE-HEIGHT: 97%; MARGIN-BOTTOM: 0in;">
Republic off the Philippines

</SPAN></br><SPAN
style="color: rgb(39,3,3); font-family: Perpetua Titling; font-size: 13pt; font-weight: 900; FONT-VARIANT: Small-Caps; LINE-HEIGHT: 93%; MARGIN-BOTTOM: 0in; MARGIN-TOP: 0in;">
<SPAN style="FONT-WEIGHT: 300">[[•••☙◄]]</SPAN> KodigoLogo BiblioLex ScriptOrivm Terminvs® <SPAN style="FONT-WEIGHT: 300">[[►❧•••]]</SPAN>
</SPAN>
</br><SPAN
style="color: rgb(33,3,3); font-family: Imprint MT Shadow; font-size: 11pt; font-weight: 900; FONT-VARIANT: Small-Caps; LINE-HEIGHT: 93%; MARGIN-BOTTOM: 0in; MARGIN-TOP: 0in;">
[[••☙◄]] Central Classified Institutional Archived [[►❧••]]
</br>
[[•☙◄]] Head Office of the Librarian General [[►❧•]]
</br>

</SPAN></P>
<HR width="49%" size="3" align="center" color="yellow">
<P style="text-align: center; text-indent: 0in; margin-top: 0in; margin-bottom: 0.13in;"><SPAN
style="color: rgb(93,9,9); font-family: Arial Narrow; font-size: 7pt; font-variant: small-caps; font-weight: 700; margin-left: 0in;">

•&nbsp;[[Complete Official Text]]&nbsp;•&nbsp;[[Annotated Copy]]&nbsp;•&nbsp;[[Editorial]]&nbsp;•&nbsp;[[Experimental]]&nbsp;&nbsp;[[Fictional]]&nbsp;

</SPAN>
</P></TD></TR></TABLE></DIV></TD></TR></DIV></TD>
<TD style="background: navy; width: 100%;">
<DIV align="center">
<TABLE class="MsoNormalTable" style="background: navy; width: 100%; color: blue; mso-cellspacing: 0.05in; mso-padding-alt: 0.25pt 0.25pt 0.25pt 0.25pt;"
border="4" cellspacing="3" cellpadding="3">

<TR>
<TD style="width: 100%; background: navy">
<DIV align="center">
<P style="TEXT-ALIGN: Center; FONT-FAMILY: Vivaldi; Color: White; FONT-SIZE: 17pt;">

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan

</P></DIV>

</TD></TR></TABLE></DIV></TD></TR></TABLE></DIV></DIV></TD></TR></TABLE></DIV>
<P></P></DIV></DIV>
<P></P><!------------------------>

Revision as of 14:09, 4 July 2017

{{subst:https}}{{Facebook}} template missing ID and not present in Wikidata.{{{name}}} on Facebook

In this example, there is a Facebook user number instead of a user name:

https://www.facebook.com/4
* {{Facebook |id= 4 |name= Mark Zuckerberg }}

Republic off the Philippines
•••☙◄ KodigoLogo BiblioLex ScriptOrivm Terminvs® ►❧•••
••☙◄ Central Classified Institutional Archived ►❧••
•☙◄ Head Office of the Librarian General ►❧•


• Complete Official Text • Annotated Copy • Editorial • Experimental  Fictional 

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan

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:

https://www.facebook.com/facebook
* {{Facebook | facebook }}

Republic off the Philippines
•••☙◄ KodigoLogo BiblioLex ScriptOrivm Terminvs® ►❧•••
••☙◄ Central Classified Institutional Archived ►❧••
•☙◄ Head Office of the Librarian General ►❧•


• Complete Official Text • Annotated Copy • Editorial • Experimental  Fictional 

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan

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:

https://www.facebook.com/zuck/photos
* {{Facebook|zuck/photos|name=Mark Zuckerberg}}

Republic off the Philippines
•••☙◄ KodigoLogo BiblioLex ScriptOrivm Terminvs® ►❧•••
••☙◄ Central Classified Institutional Archived ►❧••
•☙◄ Head Office of the Librarian General ►❧•


• Complete Official Text • Annotated Copy • Editorial • Experimental  Fictional 

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan

Using Wikidata

Generally, Wikidata should contain article subjects' Facebook IDs in property Facebook username (P2013), allowing the ID parameter to be omitted:

* {{Facebook}}
* {{Facebook |name=NAME }}

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

  • {{subst:https}}{{Facebook}} template missing ID and not present in Wikidata.{{Facebook}} template missing ID and not present in Wikidata.==E.O. No. 335==

Republic off the Philippines
•••☙◄ KodigoLogo BiblioLex ScriptOrivm Terminvs® ►❧•••
••☙◄ Central Classified Institutional Archived ►❧••
•☙◄ Head Office of the Librarian General ►❧•


• Complete Official Text • Annotated Copy • Editorial • Experimental  Fictional 

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Facebook in articles based on its TemplateData.

TemplateData for Facebook

Generate a link to a Facebook profile in a standard format.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Account IDid 1

ID of the Facebook account (part of the web page address, for www.facebook.com/example/ the account id is "example"). This parameter is optional if Wikidata property P2013 exists, but required if not.

Default
Wikidata property P2013
Example
zuck
Lineoptional
Display namename 2

Display name for the Facebook account

Default
Name of the page
Example
Mark Zuckerberg
Lineoptional

Tracking category

See also

E.O. No. 335

Republic off the Philippines
•••☙◄ KodigoLogo BiblioLex ScriptOrivm Terminvs® ►❧•••
••☙◄ Central Classified Institutional Archived ►❧••
•☙◄ Head Office of the Librarian General ►❧•


• Complete Official Text • Annotated Copy • Editorial • Experimental  Fictional 

Kalatasa'ng Kodigo-Pasakamalayang Pamanalastasan