Template:Icon: Difference between revisions

From wiki
Jump to navigation Jump to search
(pushed from master by wikipush)
Tag: Reverted
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 36: Line 36:
<img src="{{SERVER}}{{SCRIPTPATH}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">
<img src="{{SERVER}}{{SCRIPTPATH}}/font-awesome/svg/{{{name|question_and_answer}}}.svg" width="{{{size|48}}}" height="{{{size|48}}}" title="{{{name|question_and_answer}}}">
</source>
</source>
[[Category:Template]]{{NeededFor|ProfiWiki}}</noinclude><includeonly>{{#switch:{{{storemode|}}}
[[Category:Template]]</noinclude><includeonly>{{#switch:{{{storemode|}}}
|none=
|none=
|#default={{#subobject:Icon_name={{{name|question_and_answer}}}
|#default={{#subobject:Icon_name={{{name|question_and_answer}}}
Line 43: Line 43:
}}}}<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|}}}
}}}}<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|}}}
|editable={{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}}}</includeonly>
|editable={{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}}}</includeonly>
[[Category:ProfiWiki]]

Latest revision as of 10:16, 5 June 2025

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}}}">