Difference between revisions of "Template:Icon"

From Openresearch
Jump to: navigation, search
(pushed from http://master.bitplan.com)
 
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 13:10, 27 July 2020

}} This is the template for icons see Category:Icon

examples

{{Icon}}

Question and answer-Icon.png

{{Icon|name=home}}

Home-Icon.png

{{Icon|name=home}}

Home-Icon.png

{{Icon|name=server}}

Server-Icon.png

{{Icon|name=home|style=plain}}

Home-Icon.png

{{Icon|name=home|size=32}}

Home-Icon.png