Editing Template:Icon/doc
From Eco - English Wiki
Template/file changes in this version are pending review.
The stable version was checked on 19 June 2024.
Your changes will be displayed to readers once an authorized user accepts them. (help)
Template/file changes in this version are pending review.
The stable version was checked on 19 June 2024.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
== Description == | == Description == | ||
Use to create tiny icons (and captions). By default, the icon size is 28px but it can be re-defined. | Use to create tiny icons (and captions). By default, the icon size is 28px but it can be re-defined. | ||
== Syntax == | == Syntax == | ||
<syntaxhighlight lang="mediawiki">{{Icon|name|style|link| | <syntaxhighlight lang="mediawiki">{{Icon|name|style|link|iconsize}}</syntaxhighlight> | ||
== Samples == | == Samples == | ||
{| class="ecotable mw-half" style="text-align:center" | {| class="ecotable mw-half" style="text-align:center" | ||
! Example | ! Example | ||
Line 51: | Line 13: | ||
! Result | ! Result | ||
|- | |- | ||
| Style | | No Style, Size 100px | ||
| <syntaxhighlight lang="mediawiki">{{Icon| | | <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|size=100}}</syntaxhighlight> | ||
| {{Icon| | | {{Icon|ChefSkill|size=100}} | ||
|- | |||
| Style 1 | |||
| <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|1}}</syntaxhighlight> | |||
| {{Icon|ChefSkill|1}} | |||
|- | |||
| Style 1 with link to its page | |||
| <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|1|1}}</syntaxhighlight> | |||
| {{Icon|ChefSkill|1|1}} | |||
|- | |- | ||
| Style | | Style 2 | ||
| <syntaxhighlight lang="mediawiki">{{Icon| | | <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|2}}</syntaxhighlight> | ||
| {{Icon| | | {{Icon|ChefSkill|2}} | ||
|- | |- | ||
| Style 2 | | Style 2 with link to Skills page | ||
| <syntaxhighlight lang="mediawiki">{{Icon| | | <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|2|Skills}}</syntaxhighlight> | ||
| {{Icon| | | {{Icon|ChefSkill|2|Skills}} | ||
|- | |- | ||
| Style | | Style 2, Size 100px | ||
| <syntaxhighlight lang="mediawiki">{{Icon| | | <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|2|size=100}}</syntaxhighlight> | ||
| {{Icon| | | {{Icon|ChefSkill|2|size=100}} | ||
|- | |- | ||
| Style | | Style 3, different link, Size 80px | ||
| <syntaxhighlight lang="mediawiki">{{Icon| | | <syntaxhighlight lang="mediawiki">{{Icon|ChefSkill|3|Skills|size=80}}</syntaxhighlight> | ||
| {{Icon| | | {{Icon|ChefSkill|3|link=Skills|size=80}} | ||
|} | |} | ||
<noinclude>[[Category:Template Docs]]</noinclude> | <noinclude>[[Category:Template Docs]]</noinclude> |