Template:Site: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(Arguments added) |
(→Examples: Examples for new parameters) |
||
Line 12: | Line 12: | ||
==Examples== | ==Examples== | ||
<nowiki>{{site|http://railml.org}}</nowiki> | {|border="1" | ||
|'''Code''' | |||
|'''Output''' | |||
|- | |||
[http://railml.org http://railml.org] ''( | |<nowiki>{{site|http://railml.org}}</nowiki> | ||
|[http://railml.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})''[[kategorie:External Link]] | |||
<nowiki>{{site|http://railml.org| | |- | ||
|<nowiki>{{site|http://railml.org|Our homepage}}</nowiki> | |||
|[http://railml.org {{#if:Our homepage|Our homepage|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})''[[kategorie:External Link]] | |||
|- | |||
[http://railml.org | |<nowiki>{{site|http://railml.org|type=HTML}}</nowiki> | ||
|[http://railml.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:HTML|, HTML}}{{#if:|, {{{lang}}}}})''[[kategorie:External Link]] | |||
|- | |||
|<nowiki>{{site|http://railml.org|lang=EN|text=Our homepage}}</nowiki> | |||
|[http://railml.org {{#if:|{{{2}}}|{{#if:Our homepage|Our homepage|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:EN|, EN}})''[[kategorie:External Link]] | |||
|- | |||
|<nowiki>{{site|http://railml.org|Our homepage|type=HTML|lang=EN}}</nowiki> | |||
|[http://railml.org {{#if:Our homepage|Our homepage|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:HTML|, HTML}}{{#if:EN|, EN}})''[[kategorie:External Link]] | |||
|} | |||
[[kategorie:ContentTemplate]] | [[kategorie:ContentTemplate]] | ||
</noinclude> | </noinclude> |
Revision as of 17:52, 2 March 2016
Usage
Use this template, whenever you set links to the railml.org website ([http.://railml.org http.://railml.org]).
This template grants that links out of this wiki will be collected in category:External Link. So we keep an overview of external links and control their actuality routinely.
For Links to other websites, please use Template:External.
Options
The template has an obligatory and an optional argument:
- The first, obligatory, argument is the link target. Always use the complete URL, although the template is used exclusively for pages on http://railml.org.
- The second, optional, argument is the link text. If it is empty, the link target will be used as link text.
Examples
Code | Output |
{{site|http://railml.org}} | http://railml.org (railML® website)kategorie:External Link |
{{site|http://railml.org|Our homepage}} | Our homepage (railML® website)kategorie:External Link |
{{site|http://railml.org|type=HTML}} | http://railml.org (railML® website, HTML)kategorie:External Link |
{{site|http://railml.org|lang=EN|text=Our homepage}} | Our homepage (railML® website, EN)kategorie:External Link |
{{site|http://railml.org|Our homepage|type=HTML|lang=EN}} | Our homepage (railML® website, HTML, EN)kategorie:External Link |