Template:Wikipedia: Difference between revisions

From railML 2 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
(Created page with "<includeonly>{{external|https://en.wikipedia.org/wiki/{{{2|en}}}:{{{1}}}|{{{1}}} on Wikipedia}}</includeonly><noinclude> ==Usage== This template is intended to standardize lin...")
 
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{external|https://en.wikipedia.org/wiki/{{{2|en}}}:{{{1}}}|{{{1}}} on Wikipedia}}</includeonly><noinclude>
<includeonly><!--
                                                          {{#replace:string|search term|replacement term}}
→ Leerzeichen für Link substituieren -->{{#vardefine:lemma|{{#replace:{{{1}}}| |_}}}}<!--
 
→Ausgabe                            -->[https://en.wikipedia.org/wiki/{{#if:{{{project|}}}|{{{project}}}:}}{{#if:{{{3|}}}|{{{3}}}:}}{{#var:lemma}} {{{2|{{{1}}}}}}] ([[File:Wiki banner.png|link=https://en.wikipedia.org]]{{#if:{{{3|}}}|&nbsp;{{lang|{{{3}}}}}}})</includeonly><noinclude>
==Usage==
==Usage==
This template is intended to standardize links to Wikipedia
This template is intended to standardize links to Wikipedia
===Arguments===
===Arguments===
*1 (required): the lemma on wikipedia
*1 (required): the lemma on wikipedia
*2 (optional): the domain. Deault: ''en''
*2 (optional): the name
*3 (optional): the language version
*''project'': the project
==Examples==
==Examples==
<pre>{{wiki|railML}}</pre>
<pre>{{wiki|railML}}</pre>
Line 11: Line 17:
{{wiki|railML}}
{{wiki|railML}}


<pre>{{wiki|railML|de}}</pre>
<pre>{{wiki|railML|{{rml}}|de}}</pre>
delivers
delivers


{{wiki|railML|de}}
{{wiki|railML|{{rml}}|de}}


<pre>{{wiki|File:RailML headr.png|commons}}</pre>
<pre>{{wiki|commons:File:RailML_headr.png|{{rml}} logo}}</pre>
delivers
delivers


{{wiki|File:RailML_headr.png|commons}}
{{wiki|File:RailML:headr.png|{{rml}} logo|commons}}


[[category:template]]
[[category:LinkTemplate]]
{{interwiki}}
</noinclude>
</noinclude>

Latest revision as of 17:18, 18 December 2023

Usage

This template is intended to standardize links to Wikipedia

Arguments

  • 1 (required): the lemma on wikipedia
  • 2 (optional): the name
  • 3 (optional): the language version
  • project: the project

Examples

{{wiki|railML}}

delivers

railML (Wiki banner.png)

{{wiki|railML|{{rml}}|de}}

delivers

railML® (Wiki banner.png 🇩🇪)

{{wiki|commons:File:RailML_headr.png|{{rml}} logo}}

delivers

railML® logo (Wiki banner.png commons)