Template:Site: Difference between revisions
Jump to navigation
Jump to search
[checked revision] | [checked revision] |
(→Examples: Examples for new parameters) |
|||
Line 17: | Line 17: | ||
|- | |- | ||
|<nowiki>{{site|http://railml.org}}</nowiki> | |<nowiki>{{site|http://railml.org}}</nowiki> | ||
|[http://railml.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | |[http://railml.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{site|http://railml.org|Our homepage}}</nowiki> | |<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}}}}})'' | |[http://railml.org {{#if:Our homepage|Our homepage|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{site|http://railml.org|type=HTML}}</nowiki> | |<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}}}}})'' | |[http://railml.org {{#if:|{{{2}}}|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:HTML|, HTML}}{{#if:|, {{{lang}}}}})'' | ||
|- | |- | ||
|<nowiki>{{site|http://railml.org|lang=EN|text=Our homepage}}</nowiki> | |<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}})'' | |[http://railml.org {{#if:|{{{2}}}|{{#if:Our homepage|Our homepage|http://railml.org}}}}] ''({{rml}} website{{#if:|, {{{type}}}}}{{#if:EN|, EN}})'' | ||
|- | |- | ||
|<nowiki>{{site|http://railml.org|Our homepage|type=HTML|lang=EN}}</nowiki> | |<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}})'' | |[http://railml.org {{#if:Our homepage|Our homepage|{{#if:|{{{text}}}|http://railml.org}}}}] ''({{rml}} website{{#if:HTML|, HTML}}{{#if:EN|, EN}})'' | ||
|} | |} | ||
[[kategorie:ContentTemplate]] | [[kategorie:ContentTemplate]] | ||
</noinclude> | </noinclude> |
Revision as of 17:54, 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) |
{{site|http://railml.org|Our homepage}} | Our homepage (railML® website) |
{{site|http://railml.org|type=HTML}} | http://railml.org (railML® website, HTML) |
{{site|http://railml.org|lang=EN|text=Our homepage}} | Our homepage (railML® website, EN) |
{{site|http://railml.org|Our homepage|type=HTML|lang=EN}} | Our homepage (railML® website, HTML, EN) |