Difference between revisions of "Template:URLwikipedia"

From IntactiWiki
Jump to navigation Jump to search
(Created page with "<includeonly>[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}| (error: {{{3}}})|}}.|}}</includeonly> <noinclude>=...")
 
m (added interwiki link)
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]{{#if:{{{2|}}}|. Retrieved {{{2}}}{{#if:{{{3|}}}|&nbsp;(error: {{{3}}})|}}.|}}</includeonly>
+
<includeonly>{{raw:pool:POOLIconREFweb}} {{#if:{{{2|}}}|Wikipedia article: {{#if:{{{5|}}}|[https://{{{5}}}.wikipedia.org/wiki/{{{1}}} {{{2}}}] ({{{5}}})|[https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]}}|{{#if:{{{5|}}}|[https://{{{5}}}.wikipedia.org/wiki/{{{1}}} Wikipedia article ({{{5}}})]|[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]}}}}{{#if:{{{3|}}}|. Retrieved {{date|{{{3}}}}}{{#if:{{{4|}}}|&nbsp;(error: {{{4}}}) [[Category:ERROR_URL]]|}}.|}}</includeonly><noinclude>
<noinclude>== Usage ==
+
== Usage ==
Use this template with two '''anonymous''' parameters:
+
Use this template with '''anonymous''' parameters:
<pre>{{URLwikipedia|<URL>|<date>|<HTML Error Code>}}</pre>
+
<pre>{{URLwikipedia|<URL>|<title>|<date>|<HTML Error Code>|<Wikipedia language code>}}</pre>
  
Use the available URL templates in the '''<nowiki>{{LINKS}}</nowiki>''' section of an article page, with the following order:
+
{{Template:DefaultURL}}
# [[:Template:URLwebsite]]
 
# [[:Template:URL-FBprofile]]
 
# [[:Template:URL-FBpage]]
 
# [[:Template:URL-FBgroup]]
 
# [[:Template:URLwikipedia]]
 
  
 
== Examples ==
 
== Examples ==
 
<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}}
 +
<pre>{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15||de}}</pre>
 +
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15||de}}
 +
 
 +
== Automatic category ==
 +
* This template adds the category '''ERROR_URL''' to the article which uses it if the anonymous <code><HTML error code></code> parameter is being used.
 +
 
 +
[[Category:URL template]]
 +
[[Category:Wikipedia reference]]
 +
 
 +
[[da:Skabelon:URLwikipedia]]
 +
[[de:Vorlage:URLwikipedia]]
 +
<!--[[en:Template:URLwikipedia]]-->
 +
[[es:Plantilla:URLwikipedia]]
 +
[[fr:Modèle:URLwikipedia]]
 +
[[nl:Sjabloon:URLwikipedia]]
 +
[[sv:Mall:URLwikipedia]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:14, 13 April 2022

Usage

Use this template with anonymous parameters:

{{URLwikipedia|<URL>|<title>|<date>|<HTML Error Code>|<Wikipedia language 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 Wikipedia article

{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}

REFweb Wikipedia article: Sami Aldeeb

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

REFweb Wikipedia article: Sami Aldeeb. Retrieved 15 September 2019.

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

REFweb Wikipedia article: Sami Aldeeb. Retrieved 15 September 2019 (error: 404).

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

REFweb Wikipedia article: Sami Aldeeb (de). Retrieved 15 September 2019.

Automatic category

  • This template adds the category ERROR_URL to the article which uses it if the anonymous <HTML error code> parameter is being used.