Template:Wiki: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[https://en.wikipedia.org/wiki/{{#if:{{{3|}}}|{{{3}}}:}}{{ | <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}}}}}}] {{#ifeq:{{{mode}}}|silent||([[File:Wiki banner.png|link=https://en.wikipedia.org]]{{#if:{{{3|}}}| {{lang|{{{3}}}}}}})}}</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
This template is intended to standardize links to Wikipedia | This template is intended to standardize links to Wikipedia | ||
Line 6: | Line 10: | ||
*2 (optional): the name | *2 (optional): the name | ||
*3 (optional): the language version | *3 (optional): the language version | ||
*''project'': the project | |||
*''mode'': ''mode=silent'' will present the link and, if applicable, the link text, but suppress the references. | |||
==Examples== | ==Examples== | ||
<pre>{{wiki|railML}}</pre> | <pre>{{wiki|railML}}</pre> | ||
Line 21: | Line 27: | ||
{{wiki|File:RailML:headr.png|{{rml}} logo|commons}} | {{wiki|File:RailML:headr.png|{{rml}} logo|commons}} | ||
<pre>{{wiki|Silent Spring|mode=silent}}</pre>delivers: | |||
{{wiki|Silent Spring|mode=silent}} | |||
[[category:LinkTemplate]] | [[category:LinkTemplate]] | ||
{{interwiki|2=all}} | |||
</noinclude> | </noinclude> |
Latest revision as of 15:35, 5 June 2024
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
- mode: mode=silent will present the link and, if applicable, the link text, but suppress the references.
Examples
{{wiki|railML}}
delivers
railML ()
{{wiki|railML|{{rml}}|de}}
delivers
railML® ( 🇩🇪)
{{wiki|commons:File:RailML_headr.png|{{rml}} logo}}
delivers
railML® logo ( commons)
{{wiki|Silent Spring|mode=silent}}
delivers: