Template talk:Iw: Difference between revisions
From Mass Spec Terms
|  Created page with "https://www.mediawiki.org/wiki/Manual:Interwiki  As an alternative to interwiki linking, a template can be created to wrap a plaintext page title into a URL-encoded external link to a known wiki, which can then be called with syntax equivalent to interwiki links.  This preserves the appearance of external links while providing the same convenience as interwiki linking.  :<code><nowiki><!-- Template:IW --> [https://example.com/wiki/{{urlencode:{{{1}}}|WIKI}} {{{2|{{{1}}}}..." | m Kkmurray moved page Template talk:Wikidata to Template talk:Iw: Misspelled title | 
| (No difference) | |
Latest revision as of 15:12, 21 August 2025
https://www.mediawiki.org/wiki/Manual:Interwiki
As an alternative to interwiki linking, a template can be created to wrap a plaintext page title into a URL-encoded external link to a known wiki, which can then be called with syntax equivalent to interwiki links.
This preserves the appearance of external links while providing the same convenience as interwiki linking.
- <!-- Template:IW --> [https://example.com/wiki/{{urlencode:{{{1}}}|WIKI}} {{{2|{{{1}}}}}}]
Then, instead of [[iw:External Page Title]], call the template:
- {{IW|External Page Title}}→ External Page Title
- {{IW|External Page Title|Alternate text}}→ Alternate text
