Difference between revisions of "Template:URLwikipedia"
Jump to navigation
Jump to search
m (added 5th anonymous parameter <Wikipedia language code>) |
m (added interwiki link) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{raw:pool:POOLIconREFweb}} {{#if:{{{2|}}}|Wikipedia article: {{#if:{{{5|}}}|[https://{{{5}}}.wikipedia.org/wiki/{{{1}}} {{{2}}}]|[https://en.wikipedia.org/wiki/{{{1}}} {{{2}}}]}}|{{#if:{{{5|}}}|[https://{{{5}}}.wikipedia.org/wiki/{{{1}}} Wikipedia article]|[https://en.wikipedia.org/wiki/{{{1}}} Wikipedia article]}}}}{{#if:{{{3|}}}|. Retrieved {{date|{{{3}}}}}{{#if:{{{4|}}}| (error: {{{4}}}) [[Category:ERROR_URL]]|}}.|}}</includeonly><noinclude> | + | <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|}}}| (error: {{{4}}}) [[Category:ERROR_URL]]|}}.|}}</includeonly><noinclude> |
== Usage == | == Usage == | ||
Use this template with '''anonymous''' parameters: | Use this template with '''anonymous''' parameters: | ||
Line 19: | Line 19: | ||
== Automatic category == | == 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. | + | * 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]] | [[da:Skabelon:URLwikipedia]] | ||
Line 26: | Line 29: | ||
[[es:Plantilla:URLwikipedia]] | [[es:Plantilla:URLwikipedia]] | ||
[[fr:Modèle:URLwikipedia]] | [[fr:Modèle:URLwikipedia]] | ||
+ | [[nl:Sjabloon:URLwikipedia]] | ||
+ | [[sv:Mall:URLwikipedia]] | ||
</noinclude> | </noinclude> |
Latest revision as of 13: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:
- Template:URLwebsite
- Template:URLwikipedia
- Template:URL-FBprofile
- Template:URL-FBpage
- Template:URL-FBgroup
- Template:URLtwitter
- Template:URL-IMDbName
- Template:URL-IMDbTitle
Note: Only use the <date> parameter when you have retrieved the URL.
Examples
{{URLwikipedia|Sami_Aldeeb}}
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb}}
Wikipedia article: Sami Aldeeb
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15}}
Wikipedia article: Sami Aldeeb. Retrieved 15 September 2019.
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15|404}}
Wikipedia article: Sami Aldeeb. Retrieved 15 September 2019 (error: 404).
{{URLwikipedia|Sami_Aldeeb|Sami Aldeeb|2019-09-15||de}}
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.