Difference between revisions of "Template:Social/doc"
m |
m |
||
| Line 3: | Line 3: | ||
Note: Images are in Images/Social-Media/ | Note: Images are in Images/Social-Media/ | ||
| − | + | Template to generate the following pics with links: | |
* <tt><nowiki>{{img|Social-Media-Facebook.svg|20|20}}</nowiki></tt> {{img|Social-Media-Facebook.svg|20|20|float=none}} | * <tt><nowiki>{{img|Social-Media-Facebook.svg|20|20}}</nowiki></tt> {{img|Social-Media-Facebook.svg|20|20|float=none}} | ||
* <tt><nowiki>{{img|Social-Media-Instagram.svg|20|20}}</nowiki></tt> {{img|Social-Media-Instagram.svg|20|20|float=none}} | * <tt><nowiki>{{img|Social-Media-Instagram.svg|20|20}}</nowiki></tt> {{img|Social-Media-Instagram.svg|20|20|float=none}} | ||
| Line 13: | Line 13: | ||
Call thusly: | Call thusly: | ||
* <tt><nowiki>{{Social|Facebook|http://www.some-url.com/}}</nowiki></tt> | * <tt><nowiki>{{Social|Facebook|http://www.some-url.com/}}</nowiki></tt> | ||
| + | |||
| + | These images have been uploaded in order to be able to generate links to external sites. That means having to use MediaWiki image formatting (ugh). One problem is the inline issue. For a row of social icons, that means wrapping the entire thing in a div, eg:<br/> | ||
| + | <tt><nowiki><div style="float:right; margin-left:10px;">{{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}}</div> {{img|Bean-Responsible-Kill-The-Cup.svg|250|22}}</nowiki></tt> | ||
| + | |||
| + | ==== Note ==== | ||
| + | This will generate the following: | ||
| + | <div style="float:right; margin-left:10px;">{{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}}</div> {{img|Bean-Responsible-Kill-The-Cup.svg|250|22}} | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 14:40, 20 February 2019
Note: Images are in Images/Social-Media/
Template to generate the following pics with links:
- {{img|Social-Media-Facebook.svg|20|20}}
- {{img|Social-Media-Instagram.svg|20|20}}
- {{img|Social-Media-LinkedIn.svg|20|20}}
- {{img|Social-Media-Twitter.svg|20|20}}
- {{img|Social-Media-Website.svg|20|20}}
- {{img|Social-Media-YouTube.svg|20|20}}
Call thusly:
- {{Social|Facebook|http://www.some-url.com/}}
These images have been uploaded in order to be able to generate links to external sites. That means having to use MediaWiki image formatting (ugh). One problem is the inline issue. For a row of social icons, that means wrapping the entire thing in a div, eg:
<div style="float:right; margin-left:10px;">{{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}}</div> {{img|Bean-Responsible-Kill-The-Cup.svg|250|22}}
Note
This will generate the following: