Difference between revisions of "Template:Icon"

From BITPlan cr Wiki
Jump to navigation Jump to search
(transfered by WikiBackup wikiTask at 2020-07-22T11:17:06Z)
 
m (pushed from http://master.bitplan.com)
 
Line 34: Line 34:
 
=== implementation ===
 
=== implementation ===
 
<source lang='html4strict'>
 
<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}}}">
+
<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]]</noinclude><includeonly>{{#switch:{{{storemode|}}}
 
[[Category:Template]]</noinclude><includeonly>{{#switch:{{{storemode|}}}
Line 41: Line 41:
 
|Icon style={{{style|shadow}}}
 
|Icon style={{{style|shadow}}}
 
|Icon size={{{size|48}}}
 
|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|}}}
+
}}}}<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>

Latest revision as of 07:41, 2 August 2020

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