Jump to content

Template:Facebook: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Update handling of missing ID (previous placement of category prevented it from being included).
use identifier link similar to IMDb templates
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#if:{{{1<includeonly>|</includeonly>}}}{{{id|}}}{{#property:P2013}}
<includeonly>{{#if: {{{1|}}} {{{id|}}} {{#property:P2013}}

|[https://www.facebook.com/{{Trim|{{{1|{{{id<includeonly>|{{#property:P2013}}</includeonly>}}}}}}}} {{#if:{{{2|{{{name<includeonly>|</includeonly>}}}}}}|{{{2|{{{name}}}}}}|{{PAGENAMEBASE}}}}] on [[Facebook]]
| [https://www.facebook.com/{{#if: {{{1|{{{id|}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2013}}|sep=,}} }} {{#if: {{{2|{{{name|}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] on {{#ifeq:{{{link}}}|no|Facebook|[[Facebook (identifier)|Facebook]]}}{{EditAtWikidata|pid=P2013|{{{1|{{{id|}}}}}}}}{{WikidataCheck|property=P2013|value={{{1|{{{id|}}}}}}|category=Facebook ID|namespaces=0|nocatsame=1|ignorecase=1}}
|<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>
| <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 and not in Wikidata]]}}

}}<!-- Tracking categories
-->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using Facebook with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Facebook]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | id | link | name }}<!--
--></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
</noinclude>
</noinclude>

Latest revision as of 12:55, 21 December 2023