v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Menu icon"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Added "num" parameter to allow fewer icons to be displayed if desired (count from last))
m (Added to Category:Templates, removed inaccurate shortcut link)
Line 46: Line 46:
 
--></span><noinclude>
 
--></span><noinclude>
 
----
 
----
 
{{shortcut|Template:K}}
 
  
 
===Examples of Appearance===
 
===Examples of Appearance===
Line 79: Line 77:
 
See also: {{t|key}}
 
See also: {{t|key}}
 
[[Category:Inline formatting templates]]
 
[[Category:Inline formatting templates]]
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:21, 4 January 2023

Ui b.pngb


Examples of Appearance

Selected from the Ui b.pngb build menu.

Usage

{{Menu icon|b}}

Multiple keys can be passed as separate parameters to this template, with the "sep" parameter determining the separator (the default is an empty string), and the number of icons to display, counting from the end, as the "num" parameter (the default displays 4 icons).

{{Menu icon|key|sep=separator>|num=number}}
{{Menu icon|b|o}} Ui b.pngbUi bo.pngo
{{Menu icon|num=1|b|o}} Ui bo.pngo
{{Menu icon|b|o|sep=,}} Ui b.pngb,Ui bo.pngo
{{Menu icon|b|sep=+|o|f|}} Ui b.pngb+Ui bo.pngo+Ui bof.pngf
{{Menu icon|b|o|b|sep=-}} Ui b.pngb-Ui bo.pngo-Ui bob.pngb
{{Menu icon|b|o|l|y|sep=&rarr;|num=2}} Ui bol.pnglUi boly.pngy

See also: {{key}}