Difference between revisions of "Template:URLwikipedia"

From IntactiWiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<includeonly>[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}|&nbsp;(error: {{{3}}})|}}.|}}</includeonly><noinclude>
+
<includeonly>{{#if:{{{2|}}}|Wikipedia article: [https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]}}{{#if:{{{3|}}}|. Retrieved {{{3}}}{{#if:{{{4|}}}|&nbsp;(error: {{{4}}})|}}.|}}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
Use this template with two '''anonymous''' parameters:
 
Use this template with two '''anonymous''' parameters:
<pre>{{URLwikipedia|<URL>|<date>|<HTML Error Code>}}</pre>
+
<pre>{{URLwikipedia|<URL>|<title>|<date>|<HTML Error Code>}}</pre>
  
 
{{Template:DefaultURL}}
 
{{Template:DefaultURL}}
Line 9: Line 9:
 
<pre>{{URLwikipedia|Sami_Aldeeb}}</pre>
 
<pre>{{URLwikipedia|Sami_Aldeeb}}</pre>
 
{{URLwikipedia|Sami_Aldeeb}}
 
{{URLwikipedia|Sami_Aldeeb}}
<pre>{{URLwikipedia|Sami_Aldeeb|2019-09-15}}</pre>
+
<pre>{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}</pre>
{{URLwikipedia|Sami_Aldeeb|2019-09-15}}
+
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}
<pre>{{URLwikipedia|Sami_Aldeeb|2019-09-15|404}}</pre>
+
<pre>{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15}}</pre>
{{URLwikipedia|Sami_Aldeeb|2019-09-15|404}}
+
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15}}
 +
<pre>{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15|404}}</pre>
 +
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15|404}}
  
 
[[de:Vorlage:URLwikipedia]]</noinclude>
 
[[de:Vorlage:URLwikipedia]]</noinclude>

Revision as of 14:15, 25 September 2019

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

Wikipedia article

{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}

Wikipedia article: Sami Aldeeb

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

Wikipedia article: Sami Aldeeb. Retrieved 2019-09-15.

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

Wikipedia article: Sami Aldeeb. Retrieved 2019-09-15 (error: 404).