Template:URLwebsite: Difference between revisions

WikiAdmin (talk | contribs)
mNo edit summary
WikiAdmin (talk | contribs)
using local POOLMainPages
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[{{{1}}} '''{{FULLPAGENAME}}''' - Official website]{{#if: {{{2|}}} | . Retrieved {{{2}}}. |}}</includeonly>
<includeonly>{{POOLIconREFweb}} [{{{1}}} Official website{{#if:{{{4|}}}|&nbsp;<q>{{{4}}}}}</q>]{{#if:{{{2|}}}|. Retrieved {{date|{{{2}}}}}{{#if:{{{3|}}}|&nbsp;(error: {{{3}}}) [[Category:ERROR_URL]]|}}|}}</includeonly><noinclude>
<noinclude>== Usage ==
== Usage ==
Use this template with two '''anonymous''' parameters:
Use this template with '''anonymous''' parameters:
<pre>{{URLwebsite|<URL>|<date>}}</pre>
<pre>{{URLwebsite|<URL>|<date>|<HTML error code>|<additional information>}}</pre>
The '''Official website''' link should be listed as the first weblink on the '''<nowiki>{{LINKS}}</nowiki>''' section of an article page.


== Example ==
{{Template:DefaultURL}}
 
== Examples ==
<pre>{{URLwebsite|http://en.intactiwiki.org}}</pre>
{{URLwebsite|http://en.intactiwiki.org}}
<pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15}}</pre>
<pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15}}</pre>
{{URLwebsite|http://en.intactiwiki.org|2019-09-15}}
{{URLwebsite|http://en.intactiwiki.org|2019-09-15}}
<pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15|404}}</pre>
{{URLwebsite|http://en.intactiwiki.org|2019-09-15|404}}
<pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15||IntactiWiki}}</pre>
{{URLwebsite|http://en.intactiwiki.org|2019-09-15||IntactiWiki}}
== 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.
[[Category:URL template]]


Result: <pre>[http://en.intactiwiki.org Official website]. Retrieved 2019-09-15.</pre>
[[da:Skabelon:URLwebsite]]
[[de:Vorlage:URLwebsite]]
<!--[[en:Template:URLwebsite]]-->
[[fr:Modèle:URLwebsite]]
[[is:Snið:URLwebsite]]
[[nl:Sjabloon:URLwebsite]]
[[sv:Mall:URLwebsite]]
</noinclude>
</noinclude>