Template:URLwebsite: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>[{{{1}}} Official website]{{#if: {{{2|}}} | . Retrieved {{{2}}}. |}}</includeonly> | <includeonly>[{{{1}}} Official website]{{#if: {{{2|}}} | . Retrieved {{{2}}} |}}{{#if: {{{3|}}} | (error: {{{3}}}). | .}}</includeonly> | ||
<noinclude>== Usage == | <noinclude>== Usage == | ||
Use this template with two '''anonymous''' parameters: | Use this template with two '''anonymous''' parameters: | ||
<pre>{{URLwebsite|<URL>|<date>}}</pre> | <pre>{{URLwebsite|<URL>|<date>|<HTML error code>}}</pre> | ||
The '''Official website''' link should be listed as the first weblink on the '''<nowiki>{{LINKS}}</nowiki>''' section of an article page. | The '''Official website''' link should be listed as the first weblink on the '''<nowiki>{{LINKS}}</nowiki>''' section of an article page. | ||
== Example == | == Example == | ||
<pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15}}</pre> | <pre>{{URLwebsite|http://en.intactiwiki.org|2019-09-15|404}}</pre> | ||
{{URLwebsite|http://en.intactiwiki.org|2019-09-15}} | {{URLwebsite|http://en.intactiwiki.org|2019-09-15|404}} | ||
Result: <pre>[http://en.intactiwiki.org Official website]. Retrieved 2019-09-15.</pre> | Result: <pre>[http://en.intactiwiki.org Official website]. Retrieved 2019-09-15 (error: 404).</pre> | ||
{{SEEALSO}} | |||
* [[:Template:URL-FBpage]] | |||
</noinclude> | </noinclude> | ||