Difference between revisions of "Template:Icon"

From Openresearch
Jump to: navigation, search
(pushed from http://master.bitplan.com)
 
 
(14 intermediate revisions by the same user not shown)
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
+
This is the template for named icons see [[:Category:Icon]][[Category:Icon]]
|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]]
 
 
 
 
=== examples ===
 
=== examples ===
 
<pre>
 
<pre>
Line 11: Line 6:
 
</pre>
 
</pre>
 
{{Icon}}
 
{{Icon}}
 +
<pre>
 +
{{Icon|link=Openresearch:HowTo|size=64|title=How to}}
 +
</pre>
 +
{{Icon|link=Openresearch:HowTo|size=64|title=How to}}
 
<pre>
 
<pre>
 
{{Icon|name=home}}
 
{{Icon|name=home}}
Line 24: Line 23:
 
{{Icon|name=server}}
 
{{Icon|name=server}}
 
<pre>
 
<pre>
{{Icon|name=home|style=plain}}
+
{{Icon|name=tuxBlue|size=64}}
 
</pre>
 
</pre>
{{Icon|name=home|style=plain}}
+
{{Icon|name=tuxBlue|size=64}}
 
<pre>
 
<pre>
 
{{Icon|name=home|size=32}}
 
{{Icon|name=home|size=32}}
 
</pre>
 
</pre>
 
{{Icon|name=home|size=32}}
 
{{Icon|name=home|size=32}}
 
+
[[Category:Template]]</noinclude><includeonly>[[File:{{{name|question_and_answer}}}-Icon.png|{{{size|48}}}px|link={{{link|Main_Page}}}|{{{title|}}}]]</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>
 

Latest revision as of 15:29, 27 July 2020

This is the template for named icons see Category:Icon

examples

{{Icon}}

Question and answer-Icon.png

{{Icon|link=Openresearch:HowTo|size=64|title=How to}}

How to

{{Icon|name=home}}

Home-Icon.png

{{Icon|name=home}}

Home-Icon.png

{{Icon|name=server}}

Server-Icon.png

{{Icon|name=tuxBlue|size=64}}

TuxBlue-Icon.png

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

Home-Icon.png