Template:FunctionIcon: Difference between revisions

From OIAr
Jump to navigation Jump to search
(template added)
 
(moved property declaration)
Line 1: Line 1:
==Icon==
==Icon==
{{#vardefine:icon|Icon_GF_Function.png}}{{#if: {{{image|}}}
{{#vardefine:icon|Icon_GF_Function.png}}[[Function icon::{{{image}}}|]]{{#if: {{{image|}}}
|{{#vardefine:icon|{{{image}}}}}The [[Function icon::{{{image}}}|icon]] below can be used to represent this infrastructure function in graphical [[Generic Pattern overview|Pattern representations]] that it might be part of:
|{{#vardefine:icon|{{{image}}}}}The icon below can be used to represent this infrastructure function in graphical [[Generic Pattern overview|Pattern representations]] that it might be part of:
|Currently there is no specific icon assigned to this infrastructure function. You can use the default "[[Function icon::{{#var:icon}}|{{#var:icon}} icon]]" icon instead, depicted below. <br><small>'''Note''': to represent this infrastructure function in graphical [[Generic Pattern overview|Pattern representations]] that it might be part of, it is advisable to create a specific icon, upload it to the [[:Special:ListFiles | wiki file store]] and create a link using the 'Edit with form' function.</small>}}
|Currently there is no specific icon assigned to this infrastructure function. You can use the default "[[:File:{{#var:icon}}|generic function icon]]" instead, depicted below. <br><small>'''Note''': to represent this infrastructure function in graphical [[Generic Pattern overview|Pattern representations]] that it might be part of, it is advisable to create a specific icon, upload it to the [[:Special:ListFiles | wiki file store]] and create a link using the 'Edit with form' function.</small>}}
[[File:{{#var:icon}}|64px|left|Icon for this function]]<noinclude>
[[File:{{#var:icon}}|64px|left|Icon for this function]]<noinclude>
{{Documentation}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Revision as of 18:52, 29 March 2013

Icon

Currently there is no specific icon assigned to this infrastructure function. You can use the default "generic function icon" instead, depicted below.
Note: to represent this infrastructure function in graphical Pattern representations that it might be part of, it is advisable to create a specific icon, upload it to the wiki file store and create a link using the 'Edit with form' function.

Icon for this function
Icon for this function
Template documentation

This is the "FunctionIcon" template, meant to show a small icon (128px) for a function. The icon shown is the file specified in "image=" (without preceding "File:"). If no image is specified, a generic function icon is shown, as can be seen above.

The template should be called in the following format:

{{functionIcon
|image=
}}