Template:WebIcon: Difference between revisions

From Alfred Jodocus Kwak Wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Source icons for various web services based on their url<br>
Source icons for various web services based on their url<br>
TODO: move explode part from [[Template:EpisodeBox]] in here<br>
1st argument = web domain<br>
1st argument = web domain<br>
other arguments = pass File: arguments e.g. size to images
2nd argument = pass File: size<br>
3rd argument = pass File: link


Usage:
Usage:
<pre>{{WebIcon|www.youtube.com|x90px}}</pre>
<pre>{{WebIcon|www.youtube.com|x90px|https://youtube.com/}}</pre>
</noinclude>
</noinclude>
{{#switch: {{{1}}}
{{#switch: {{{1}}}
| www.youtube.com = [[File:Youtube logo.png|{{{2}}}|{{{3}}}|{{{4}}}]]
| www.youtube.com = [[File:Youtube logo.png|{{{2}}}|link={{{3}}}]]
| archive.org = [[File:Internet Archive logo.png|{{{2}}}|{{{3}}}|{{{4}}}]]
| archive.org = [[File:Internet Archive logo.png|{{{2}}}|link={{{3}}}]]
| #default = N/A
}}
}}

Latest revision as of 23:34, 4 December 2025

Source icons for various web services based on their url
TODO: move explode part from Template:EpisodeBox in here
1st argument = web domain
2nd argument = pass File: size
3rd argument = pass File: link

Usage:

{{WebIcon|www.youtube.com|x90px|https://youtube.com/}}

N/A