Template:Icon: Difference between revisions
Jump to navigation
Jump to search
(modified by py-yprinciple-gen 0.3.2) Tag: Reverted |
(pushed from swa by wikipush) Tag: Manual revert |
||
Line 1: | Line 1: | ||
<noinclude><!-- | <noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->{{TemplateSequence | ||
|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/ | |||
see [[:Category:Icon]][[Category:Icon]] | |||
This is the | |||
see | |||
=== | === examples === | ||
<pre>{{Icon | <pre> | ||
|name= | {{Icon}} | ||
|style= | </pre> | ||
| | {{Icon}} | ||
| | <pre> | ||
}} | {{Icon|name=home}} | ||
</pre> | |||
{{Icon|name=home}} | |||
<pre> | |||
{{Icon|name=home}} | |||
</pre> | |||
{{Icon|name=home}} | |||
<pre> | |||
{{Icon|name=server}} | |||
</pre> | |||
{{Icon|name=server}} | |||
<pre> | |||
{{Icon|name=home|style=plain}} | |||
</pre> | |||
{{Icon|name=home|style=plain}} | |||
<pre> | |||
{{Icon|name=home|size=32}} | |||
</pre> | </pre> | ||
[[Category:Template]] | {{Icon|name=home|size=32}} | ||
</noinclude><includeonly>{{#switch:{{{storemode|}}} | |||
=== implementation === | |||
<source lang='html4strict'> | |||
<img src="{{SERVER}}{{SCRIPTPATH}}/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= | |none= | ||
| | |#default={{#subobject:Icon_name={{{name|question_and_answer}}} | ||
|Icon style={{{style|shadow}}} | |||
|Icon size={{{size|48}}} | |||
|Icon style={{{style|}}} | }}}}<img src="{{SERVER}}{{SCRIPTPATH}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">{{#switch:{{{viewmode|}}} | ||
|Icon size={{{size|}}} | |editable={{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}}}</includeonly> | ||
}} | |||
{{#switch:{{{ | |||
}} | |||
</includeonly> |
Latest revision as of 10:42, 8 August 2024
This is the template for ProfiWiki stock icons which are derived from https://fortawesome.github.io/Font-Awesome/cheatsheet/ see Category:Icon
examples
{{Icon}}
{{Icon|name=home}}
{{Icon|name=home}}
{{Icon|name=server}}
{{Icon|name=home|style=plain}}
{{Icon|name=home|size=32}}
implementation
<img src="{{SERVER}}{{SCRIPTPATH}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">