Difference between revisions of "Template:MdiIcon"

From BITPlan Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
* https://google.github.io/material-design-icons/#icon-font-for-the-web
 
* https://google.github.io/material-design-icons/#icon-font-for-the-web
 
= Usage =
 
= Usage =
 +
make sure the Material Icons font is available e.g. with
 +
<source lang='html'>
 +
<html><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></html>
 +
</source>
 
<pre>{{mdi-icon|icon=face}}</pre>
 
<pre>{{mdi-icon|icon=face}}</pre>
 
{{mdi-icon|icon=face}}
 
{{mdi-icon|icon=face}}
 +
<html><link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"></html>
  
 
</noinclude><includeonly><i class="material-icons">{{{icon|face}}}</i></includeonly>
 
</noinclude><includeonly><i class="material-icons">{{{icon|face}}}</i></includeonly>

Revision as of 05:15, 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>
{{mdi-icon|icon=face}}

Template:Mdi-icon