Difference between revisions of "Template:Icon link"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

Line 12: Line 12:
 
}}]]</span>}}<noinclude>
 
}}]]</span>}}<noinclude>
 
== About ==
 
== About ==
This template (named '''Ilink''' as a shortcut for '''icon link''') serves as an easy method to add icon sprites along with their link into a page or anywhere else using a single, standarized format.
+
This template serves as an easy method to add icon sprites along with their link into a page or anywhere else using a single, standarized format.
  
 
== Usage ==
 
== Usage ==
The syntax of the template is <code><nowiki>{{Ilink|<name>|<link>|<displayed-name>?|<tooltip-text>?|<class>?}}</nowiki></code>. All parameters default to the first one if those are not specified.
+
The syntax of the template is <code><nowiki>{{Icon link|<name>|<link>|<displayed-name>?|<tooltip-text>?|<class>?}}</nowiki></code>. All parameters default to the first one if those are not specified.
  
 
== Examples ==
 
== Examples ==
* <code><nowiki>{{Ilink|Wooden Planks}}</nowiki></code> → {{Ilink|Wooden Planks}}
+
* <code><nowiki>{{Icon link|Wooden Planks}}</nowiki></code> → {{Icon link|Wooden Planks}}
 
</noinclude>
 
</noinclude>

Revision as of 18:04, 23 December 2021

About

This template serves as an easy method to add icon sprites along with their link into a page or anywhere else using a single, standarized format.

Usage

The syntax of the template is {{Icon link|<name>|<link>|<displayed-name>?|<tooltip-text>?|<class>?}}. All parameters default to the first one if those are not specified.

Examples