Template:Icon: Difference between revisions
From Openresearch
Jump to navigation
Jump to search
|
|
| Line 1: |
Line 1: |
| <noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->{{TemplateSequence | | <noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT --> |
| |prev=Template:HideSideBar
| |
| |next=Template:IconLink
| |
| }} | | }} |
| This is the template for ProfiWiki stock icons which are derived from https://fortawesome.github.io/Font-Awesome/cheatsheet/ | | This is the template for icons |
| see [[:Category:Icon]][[Category:Icon]] | | see [[:Category:Icon]][[Category:Icon]] |
|
| |
|
| Line 31: |
Line 29: |
| </pre> | | </pre> |
| {{Icon|name=home|size=32}} | | {{Icon|name=home|size=32}} |
| | | [[Category:Template]]</noinclude><includeonly>[[Media:{{{name|question_and_answer}}}.png|{{{size|48}}}px]]</includeonly> |
| === implementation ===
| |
| <source lang='html4strict'>
| |
| <img src="{{SERVER}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">
| |
| </source>
| |
| [[Category:Template]]</noinclude><includeonly>{{#switch:{{{storemode|}}} | |
| |none=
| |
| |#default={{#subobject:Icon_name={{{name|question_and_answer}}}
| |
| |Icon style={{{style|shadow}}}
| |
| |Icon size={{{size|48}}}
| |
| }}}}<img src="{{SERVER}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">{{#switch:{{{viewmode|}}}
| |
| |editable={{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}}}</includeonly>
| |
Revision as of 12:10, 27 July 2020
}}
This is the template for icons
see Category:Icon
examples
{{Icon}}
48px
{{Icon|name=home}}
48px
{{Icon|name=home}}
48px
{{Icon|name=server}}
48px
{{Icon|name=home|style=plain}}
48px
{{Icon|name=home|size=32}}
32px