Template:URL-FBprofile: Difference between revisions

WikiAdmin (talk | contribs)
mNo edit summary
WikiAdmin (talk | contribs)
m added category
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[https://www.facebook.com/{{{1}}} Facebook profile]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}|&nbsp;(error: {{{3}}})|}}.|}}</includeonly>
<includeonly>{{raw:pool:POOLIconREFweb}} [{{#if:{{{id|}}}
<noinclude>== Usage ==
  | https://www.facebook.com/profile.php?id={{{id}}} Facebook profile]{{#if:{{{1|}}}|. Retrieved {{date|{{{1}}}}}{{#if:{{{2|}}}|&nbsp;(error: {{{2}}}) [[Category:ERROR_URL]]|}}.|}}
  | https://www.facebook.com/{{{1}}} Facebook profile]{{#if:{{{2|}}}|. Retrieved {{date|{{{2}}}}}{{#if:{{{3|}}}|&nbsp;(error: {{{3}}}) [[Category:ERROR_URL]]|}}.|}}
}}
[[Category:Facebook profile]]</includeonly><noinclude>== Usage ==
Use this template with two '''anonymous''' parameters:
Use this template with two '''anonymous''' parameters:
<pre>{{URL-FBprofile|<URL>|<date>|<HTML Error Code>}}</pre>
<pre>{{URL-FBprofile|<id=><URL>|<date>|<HTML Error Code>}}</pre>


Use the available URL templates in the '''<nowiki>{{LINKS}}</nowiki>''' section of an article page, with the following order:
'''Note:''' If '''id''' is used, the following anonymous parameters are renumbered by the Template parser.
# [[:Template:URLwebsite]]
 
# [[:Template:URL-FBprofile]]
{{Template:DefaultURL}}
# [[:Template:URL-FBpage]]
# [[:Template:URL-FBgroup]]


== Examples ==
== Examples ==
Line 17: Line 18:
<pre>{{URL-FBprofile|amy.glenn.7|2019-09-15|404}}</pre>
<pre>{{URL-FBprofile|amy.glenn.7|2019-09-15|404}}</pre>
{{URL-FBprofile|amy.glenn.7|2019-09-15|404}}
{{URL-FBprofile|amy.glenn.7|2019-09-15|404}}
</noinclude>
<pre>{{URL-FBprofile|id=100007159870114|2019-09-16}}</pre>
{{URL-FBprofile|id=100007159870114|2019-09-16}}
 
== Automatic categories ==
* This template adds the category '''Facebook profile''' to the article which uses it.
* This template adds the category '''ERROR_URL''' to the article which uses it if the anonymous <HTML error code> parameter is being used.
 
[[Category:URL template]]
 
[[da:Skabelon:URL-FBprofile]]
[[de:Vorlage:URL-FBprofile]]
<!--[[en:Template:URL-FBprofile]]-->
[[nl:Sjabloon:URL-FBprofile]]</noinclude>