Template:Icon: Difference between revisions

From wiki
Jump to navigation Jump to search
(pushed from master by wikipush)
Tag: Reverted
(modified by py-yprinciple-gen 0.3.2)
Tag: Reverted
Line 1: Line 1:
<noinclude>__NOCACHE__<!-- THIS FILE IS PROTECTED - smartGENERATOR WILL NOT OVERWRITE IT -->{{TemplateSequence
<noinclude><!--
|prev=Template:HideSideBar
  --    Copyright (C) 2015-2024 BITPlan GmbH
|next=Template:IconLink
  --
  --    Pater-Delp-Str. -- 1
  --    D-47877 -- Willich-Schiefbahn
  --
  --    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 ===
<pre>{{Icon
|name=
|style=
|size=
|storemode=property or subobject or none"
}}
}}
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 ===
<pre>
{{Icon}}
</pre>
{{Icon}}
<pre>
{{Icon|name=home}}
</pre>
</pre>
{{Icon|name=home}}
[[Category:Template]]
<pre>
</noinclude><includeonly>{{#switch:{{{storemode|}}}
{{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>
{{Icon|name=home|size=32}}
 
=== 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]]{{NeededFor|ProfiWiki}}</noinclude><includeonly>{{#switch:{{{storemode|}}}
|none=
|none=
|#default={{#subobject:Icon_name={{{name|question_and_answer}}}
|subobject={{#subobject:-
|Icon style={{{style|shadow}}}
|isA=Icon
|Icon size={{{size|48}}}
|Icon name={{{name|}}}
}}}}<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 style={{{style|}}}
|editable={{Icon|name=edit|size=16}}{{Link|target=Special:FormEdit/Icon/{{FULLPAGENAME}}|title=edit}}}}</includeonly>
|Icon size={{{size|}}}
}}
|#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>

Revision as of 10:15, 8 August 2024

This is the BITPlan Y-Prinzip ProfiWiki-Template for "Icon".

see also

see also

Usage

{{Icon
|name=
|style=
|size=
|storemode=property or subobject or none"
}}