Template:MdiIcon: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 23: Line 23:
{{mdiIcon|icon=face|size=36}}
{{mdiIcon|icon=face|size=36}}
<pre>{{mdiIcon|title=go home}}</pre>
<pre>{{mdiIcon|title=go home}}</pre>
{{mdiIcon}}
{{mdiIcon|title=go home}}
<html><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></html>
<html><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></html>
[[Category:Template]][[Category:Icon]]
[[Category:Template]][[Category:Icon]]
</noinclude><includeonly><i  class="material-icons" title='{{{title|{{{icon|home}}}}}}' style='color:{{{color|green}}};font-size:{{{size|24}}}px'>{{{icon|home}}}</i></includeonly>
</noinclude><includeonly><i  class="material-icons" title='{{{title|{{{icon|home}}}}}}' style='color:{{{color|green}}};font-size:{{{size|24}}}px'>{{{icon|home}}}</i></includeonly>

Revision as of 05:02, 7 December 2019

This is a template to display Material Design Icons

see

Usage

make sure the Material Icons font is available e.g. with

<html><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></html>
{{mdiIcon|icon=home|color=blue|size=64}}

home

{{mdiIcon|icon=favorite|color=red|size=48}}

favorite

{{mdiIcon|icon=face|size=36}}

face

{{mdiIcon|title=go home}}

home