Difference between revisions of "Template:Url ref"
Jump to navigation
Jump to search
m |
m |
||
Line 2: | Line 2: | ||
TEXT |
TEXT |
||
− | -->|{{{pre|}}}[{{{url|{{{1}}}|}}} {{{text|{{{2|}}}|}}}]{{{post|}}}<!-- |
+ | -->|{{{pre|{{{4|}}}|}}}[{{{url|{{{1}}}|}}} {{{text|{{{2|}}}|}}}]{{{post|{{{3|}}}|}}}<!-- |
NAME |
NAME |
||
Line 15: | Line 15: | ||
This template is used to refer to URL's. This allows us to track where raw URLs are used, so we can keep them up to date easily. |
This template is used to refer to URL's. This allows us to track where raw URLs are used, so we can keep them up to date easily. |
||
− | To use, include {{t|url ref|<nowiki>http://...</nowiki>|url text}} |
+ | To use, include {{t|url ref|<nowiki>http://...</nowiki>|url text|post|pre}} |
* {{{url}}} replaces the URL |
* {{{url}}} replaces the URL |
||
* {{{text}}} replaces the text |
* {{{text}}} replaces the text |
||
* {{{pre}}} is included before the link |
* {{{pre}}} is included before the link |
||
* {{{post}}} is included after the link |
* {{{post}}} is included after the link |
||
− | * {{{name}}} replaces {{{text}}} or {{{ |
+ | * {{{name}}} replaces {{{text}}} or {{{2}}} as the reference name |
* {{{group}}} sets the reference group |
* {{{group}}} sets the reference group |
||
[[Category: Sources]] |
[[Category: Sources]] |
||
− | [[Category: |
+ | [[Category: Reference templates]] |
Revision as of 11:03, 18 August 2014
This template is used to refer to URL's. This allows us to track where raw URLs are used, so we can keep them up to date easily.
To use, include {{url ref|http://...|url text|post|pre}}
- {{{url}}} replaces the URL
- {{{text}}} replaces the text
- {{{pre}}} is included before the link
- {{{post}}} is included after the link
- {{{name}}} replaces {{{text}}} or {{{2}}} as the reference name
- {{{group}}} sets the reference group