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"
Jump to navigation
Jump to search
(Made menu icons displayable inline so they are a closer drop in replacement for key template) |
|||
Line 1: | Line 1: | ||
− | < | + | <span><!-- |
-->{{#if:{{{1|<noinclude>b</noinclude>}}}|<!-- | -->{{#if:{{{1|<noinclude>b</noinclude>}}}|<!-- | ||
− | --><span style=" | + | --><span style="display: inline-flex;"><!-- |
− | -->[[File:Ui {{{1|<noinclude>b</noinclude>}}}.png]]< | + | -->[[File:Ui {{{1|<noinclude>b</noinclude>}}}.png]]<span style="align-self: flex-end; margin-left: -8px; margin-bottom: -2px;">{{k|{{{1|<noinclude>b</noinclude>}}}}}</span></span>}}<!-- |
-->{{#if:{{{2|}}}|<!-- | -->{{#if:{{{2|}}}|<!-- | ||
− | --><span style=" | + | -->{{{sep|}}}<!-- |
− | -->[[File:Ui {{{1}}}{{{2}}}.png]]< | + | --><span style="display: inline-flex;"><!-- |
+ | -->[[File:Ui {{{1}}}{{{2}}}.png]]<span style="align-self: flex-end; margin-left: -8px; margin-bottom: -2px;">{{k|{{{2}}}}}</span></span>}}<!-- | ||
-->{{#if:{{{3|}}}|<!-- | -->{{#if:{{{3|}}}|<!-- | ||
− | --><span style=" | + | -->{{{sep|}}}<!-- |
− | -->[[File:Ui {{{1}}}{{{2}}}{{{3}}}.png]]< | + | --><span style="display: inline-flex;"><!-- |
+ | -->[[File:Ui {{{1}}}{{{2}}}{{{3}}}.png]]<span style="align-self: flex-end; margin-left: -8px; margin-bottom: -2px;">{{k|{{{3}}}}}</span></span>}}<!-- | ||
-->{{#if:{{{4|}}}|<!-- | -->{{#if:{{{4|}}}|<!-- | ||
− | --><span style=" | + | -->{{{sep|}}}<!-- |
− | -->[[File:Ui {{{1}}}{{{2}}}{{{3}}}{{{4}}}.png]]< | + | --><span style="display: inline-flex;"><!-- |
+ | -->[[File:Ui {{{1}}}{{{2}}}{{{3}}}{{{4}}}.png]]<span style="align-self: flex-end; margin-left: -8px; margin-bottom: -2px;">{{k|{{{4}}}}}</span></span>}}<!-- | ||
− | --></ | + | --></span><noinclude> |
---- | ---- | ||
− | |||
− | + | {{shortcut|Template:K}} | |
− | {{ | ||
− | |||
− | |||
− | |||
+ | ===Examples of Appearance=== | ||
+ | |||
+ | Selected from the {{Menu icon|b}} build menu. | ||
+ | |||
+ | ===Usage=== | ||
+ | |||
+ | |||
+ | <pre><nowiki>{{Menu icon|b}}</nowiki></pre> | ||
+ | |||
+ | Multiple keys can be passed as separate parameters to this template, with the "sep" parameter determining the separator (the default is an empty string). | ||
+ | |||
+ | {|class="wikitable" | ||
+ | |- | ||
+ | |``<nowiki>{{Menu icon|b|o}}</nowiki>`` || {{Menu icon|b|o}} | ||
+ | |- | ||
+ | |``<nowiki>{{Menu icon|b|o|sep=,}}</nowiki>`` || {{Menu icon|b|o|sep=,}} | ||
+ | |- | ||
+ | |``<nowiki>{{Menu icon|b|sep=+|o|f|}}</nowiki>`` || {{Menu icon|b|sep=+|o|f|}} | ||
+ | |- | ||
+ | |``<nowiki>{{Menu icon|b|o|b|sep=-}}</nowiki>`` || {{Menu icon|b|o|b|sep=-}} | ||
+ | |- | ||
+ | |``<nowiki>{{Menu icon|b|o|l|y|sep=&rarr;}}</nowiki>`` || {{Menu icon|b|o|l|y|sep=→}} | ||
+ | |} | ||
+ | ---- | ||
See also: {{t|key}} | See also: {{t|key}} | ||
+ | [[Category:Inline formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 12:42, 3 January 2023
Examples of Appearance
Selected from the b 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).
{{Menu icon|b|o}} |
bo |
{{Menu icon|b|o|sep=,}} |
b,o |
{{Menu icon|b|sep=+|o|f|}} |
b+o+f |
{{Menu icon|b|o|b|sep=-}} |
b-o-b |
{{Menu icon|b|o|l|y|sep=→}} |
b→o→l→y |
See also: {{key}}