Difference between revisions of "Template:Refurl/Documentation"
m |
m (updated documentation with snippet section) |
||
Line 1: | Line 1: | ||
;Description | ;Description | ||
− | Template to be used in references that | + | Template to be used in references that link to a page and (optionally) directly cite the relevant information. Needs to be used with {{Code|ref}} tags. |
;Arguments | ;Arguments | ||
Line 6: | Line 6: | ||
* {{Code|title}} - the title of the page, to be used as the visible link. E.g. Example Domain | * {{Code|title}} - the title of the page, to be used as the visible link. E.g. Example Domain | ||
* {{Code|date}} - date when the page was accessed and used as a reference in YYYY-MM-DD format. | * {{Code|date}} - date when the page was accessed and used as a reference in YYYY-MM-DD format. | ||
+ | * {{Code|snippet}} (optional) - citation from the source. | ||
;Syntax | ;Syntax | ||
Line 14: | Line 15: | ||
{{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}} | {{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}} | ||
+ | |||
+ | ;Syntax (snippet) | ||
+ | <pre><nowiki>{{Refsnip|url=|title=|date=|snippet=}}</nowiki></pre> | ||
+ | |||
+ | ;Example (snippet) | ||
+ | {{Code|<nowiki>{{Refsnip|url=http://example.org|title=Example Domain|date=2012-12-21|snippet=This domain is established to be used for illustrative examples in documents.}}</nowiki>}} | ||
+ | |||
+ | {{Refsnip|url=http://example.org|title=Example Domain|date=2012-12-21|snippet=This domain is established to be used for illustrative examples in documents.}} | ||
<includeonly>[[Category:Reference templates]]</includeonly> | <includeonly>[[Category:Reference templates]]</includeonly> | ||
<noinclude>[[Category:Documentation templates]]</noinclude> | <noinclude>[[Category:Documentation templates]]</noinclude> |
Revision as of 07:13, 24 March 2020
- Description
Template to be used in references that link to a page and (optionally) directly cite the relevant information. Needs to be used with ref
tags.
- Arguments
url
- full URL to page, including protocol. E.g. http://example.orgtitle
- the title of the page, to be used as the visible link. E.g. Example Domaindate
- date when the page was accessed and used as a reference in YYYY-MM-DD format.snippet
(optional) - citation from the source.
- Syntax
{{Refurl|url=|title=|date=}}
- Example
{{Refurl|url=http://example.org|title=Example Domain|date=2012-12-21}}
Example Domain - last accessed on 2012-12-21
- Syntax (snippet)
{{Refsnip|url=|title=|date=|snippet=}}
- Example (snippet)
{{Refsnip|url=http://example.org|title=Example Domain|date=2012-12-21|snippet=This domain is established to be used for illustrative examples in documents.}}
Example Domain - last accessed on 2012-12-21
- "This domain is established to be used for illustrative examples in documents."