Template:URLwikipedia: Difference between revisions

From IntactiWiki
Jump to navigation Jump to search
WikiAdmin (talk | contribs)
m added web icon
WikiAdmin (talk | contribs)
Line 1: Line 1:
<includeonly>[[File:Icons-mini-icon world.gif|REFweb]] {{#if:{{{2|}}}|Wikipedia article: [https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]}}{{#if:{{{3|}}}|. Retrieved {{date|{{{3}}}}}{{#if:{{{4|}}}|&nbsp;(error: {{{4}}})|}}.|}}</includeonly><noinclude>
<includeonly>[[File:Icons-mini-icon world.gif|REFweb]] {{#if:{{{2|}}}|Wikipedia article: [https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]}}{{#if:{{{3|}}}|. Retrieved {{date|{{{3}}}}}{{#if:{{{4|}}}|&nbsp;(error: {{{4}}}) [[Category:ERROR_URL]]|}}.|}}</includeonly><noinclude>
== Usage ==
== Usage ==
Use this template with two '''anonymous''' parameters:
Use this template with two '''anonymous''' parameters:

Revision as of 12:24, 5 January 2020

Usage

Use this template with two anonymous parameters:

{{URLwikipedia|<URL>|<title>|<date>|<HTML Error Code>}}

Use the available URL templates in the {{LINKS}} section of an article page, with the following order:

  1. Template:URLwebsite
  2. Template:URLwikipedia
  3. Template:URL-FBprofile
  4. Template:URL-FBpage
  5. Template:URL-FBgroup
  6. Template:URLtwitter
  7. Template:URL-IMDbName
  8. Template:URL-IMDbTitle

Note: Only use the <date> parameter when you have retrieved the URL.

Examples

{{URLwikipedia|Sami_Aldeeb}}

REFweb {{#if:|Wikipedia article: {{{2}}}|Wikipedia article}}{{#if:|. Retrieved {{#switch:{{#invoke:String|len|s={{{3}}}}}

|0 |1 |2 =
|3 |4 |5 = {{#time:Y|{{{3}}} }}
|6 |7 |8 = {{#time:F Y|{{{3}}} }}
|9 |10 = {{#time:j F Y|{{{3}}} }}
|#default = error

}}{{#if:| (error: {{{4}}}) |}}.|}}

{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}

REFweb {{#if:Sami Aldeeb|Wikipedia article: Sami Aldeeb|Wikipedia article}}{{#if:|. Retrieved {{#switch:{{#invoke:String|len|s={{{3}}}}}

|0 |1 |2 =
|3 |4 |5 = {{#time:Y|{{{3}}} }}
|6 |7 |8 = {{#time:F Y|{{{3}}} }}
|9 |10 = {{#time:j F Y|{{{3}}} }}
|#default = error

}}{{#if:| (error: {{{4}}}) |}}.|}}

{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15}}

REFweb {{#if:Sami Aldeeb|Wikipedia article: Sami Aldeeb|Wikipedia article}}{{#if:2019-09-15|. Retrieved {{#switch:{{#invoke:String|len|s=2019-09-15}}

|0 |1 |2 =
|3 |4 |5 = {{#time:Y|2019-09-15 }}
|6 |7 |8 = {{#time:F Y|2019-09-15 }}
|9 |10 = {{#time:j F Y|2019-09-15 }}
|#default = error

}}{{#if:| (error: {{{4}}}) |}}.|}}

{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15|404}}

REFweb {{#if:Sami Aldeeb|Wikipedia article: Sami Aldeeb|Wikipedia article}}{{#if:2019-09-15|. Retrieved {{#switch:{{#invoke:String|len|s=2019-09-15}}

|0 |1 |2 =
|3 |4 |5 = {{#time:Y|2019-09-15 }}
|6 |7 |8 = {{#time:F Y|2019-09-15 }}
|9 |10 = {{#time:j F Y|2019-09-15 }}
|#default = error

}}{{#if:404| (error: 404) |}}.|}}