Difference between revisions of "Template:Social"

From WikiCorporates
Jump to navigation Jump to search
Line 1: Line 1:
−
[[File:Social-Media-{{{1}}}.svg|20x20px{{#if:{{{2|}}}|{{!}}link={{{2}}}|}}]]{{#if:{{{3|}}}|&nbsp;[{{{2}}} {{{3}}}]|}}<noinclude>{{doc2}}</noinclude>
+
[[File:{{#switch:{{{1}}}<!--
 +
-->|website=World-Wide-Web-Anton-Inyushkin.svg|20x14px<!--
 +
-->|#default=Social-Media-{{{1}}}.svg|20x20px<!--
 +
-->}}{{#if:{{{2|}}}|{{!}}link={{{2}}}|}}]]{{#if:{{{3|}}}|&nbsp;[{{{2}}} {{{3}}}]|}}<noinclude>{{doc2}}</noinclude>

Revision as of 00:46, 11 December 2020

File:20x20px

[edit] Documentation

Template to generate social media pics, with optional links:

Nb: Images are in /Social-Media/Social-Media-*.svg

For a row of social icons, wrap the entire lot in a div, eg:
{{floatRight |{{img|Bean-Responsible-Kill-The-Cup.svg|250|22|float=none}} |{{Social|Instagram|https://www.instagram.com/beanresponsible/}} {{Social|Website|http://deadplanetmovie.com/}} {{Social|Facebook|https://www.facebook.com/beanresponsible2}} {{Social|YouTube|https://www.youtube.com/watch?v=MRM2y7RrIq0}} {{Social|Twitter|https://twitter.com/BeanResponsible}}}}

which generates the following: