Difference between revisions of "Template:Facebook"

From blackwiki
Jump to navigation Jump to search
imported>ScriptOriumTerminus
imported>PrimeHunter
(Undid revision 788960586 by ScriptOriumTerminus (talk))
Line 1: Line 1:
{{subst:https}}{{#if:{{#property:P2013}}
+
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#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 8: Line 5:
 
{{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>==E.O. No. 335==
+
</noinclude>
<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:11, 4 July 2017

{{{name}}} on Facebook

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

Template:Facebook displays an external link to a page at Facebook, a social networking website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters
{{Facebook | user name or number }}
{{Facebook | user name or number | Displayed Name }}
Named parameters
{{Facebook | id= user name or number }}
{{Facebook | id= user name or number | name= Displayed Name }}
Using Wikidata property Template:Property
{{Facebook}}
{{Facebook | name= Displayed Name }}

Examples

Linking to a profile or page

In this example, the Facebook user name is zuck and the link text is Mark Zuckerberg:

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

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 }}

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 }}

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}}

Using Wikidata

Generally, Wikidata should contain article subjects' Facebook IDs in property Template:Property, allowing the ID parameter to be omitted:

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

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

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Facebook

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

Template parameters

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
Lineoptional
Display namename 2

Display name for the Facebook account

Default
Name of the page
Lineoptional

Tracking category

See also