Template:Icon: Difference between revisions

From wiki
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
  --     Copyright (C) 2015-2024 BITPlan GmbH
|prev=Template:HideSideBar
  --
|next=Template:IconLink
  --    Pater-Delp-Str. -- 1
}}
  --    D-47877 -- Willich-Schiefbahn
This is the template for ProfiWiki stock icons which are derived from https://fortawesome.github.io/Font-Awesome/cheatsheet/
  --
see [[:Category:Icon]][[Category:Icon]]
  --    http://www.bitplan.com
  --
  --
-->
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "Icon".
=== see also ===
see also
* [[List of Icons]]
* [[Help:Icon]]
* [[Concept:Icon]]
* [[:Category:Icon]]
* [[:Template:Icon]]
* [[:Form:Icon]]


=== Usage ===
=== examples ===
<pre>{{Icon
<pre>
|name=
{{Icon}}
|style=
</pre>
|size=
{{Icon}}
|storemode=property or subobject or none"
<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=
|subobject={{#subobject:-
|#default={{#subobject:Icon_name={{{name|question_and_answer}}}
|isA=Icon
|Icon style={{{style|shadow}}}
|Icon name={{{name|}}}
|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>
}}
|#default={{#set:
|isA=Icon
|Icon name={{{name|}}}
|Icon style={{{style|}}}
|Icon size={{{size|}}}
}}
}}
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Icon
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
![[Property:Icon name|name]]
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name}}}|}}
{{!}}-
![[Property:Icon style|style]]
{{!}}&nbsp;{{#if:{{{style|}}}|{{{style}}}|}}
{{!}}-
![[Property:Icon size|size]]
{{!}}&nbsp;{{#if:{{{size|}}}|{{{size}}}|}}
{{!}}-
{{!}}}
}}
</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}}}">