10,947
editsAd placeholder
Template:IconText: Difference between revisions
Jump to navigation
Jump to search
Add some CSS classes.
(Improve documentation.) |
(Add some CSS classes.) |
||
Line 7: | Line 7: | ||
{{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} | {{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} | ||
}}{{#if: {{{block|}}} | }}{{#if: {{{block|}}} | ||
| <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> | | <span class="bg3wiki-icontext-block" style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> | ||
}}<span style=" | }}<span class="bg3wiki-icontext-icon-wrapper" style=" | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
Line 15: | Line 15: | ||
height: {{#lvar:max-h}}px; | height: {{#lvar:max-h}}px; | ||
{{#if:{{{nowrap|}}}|white-space: nowrap}} | {{#if:{{{nowrap|}}}|white-space: nowrap}} | ||
"><span style="vertical-align: middle;">{{icon | "><span class="bg3wiki-icontext-icon" style="vertical-align: middle;">{{icon | ||
| {{#lvar:icon}} | | {{#lvar:icon}} | ||
| link = {{#lvar:link}} | | link = {{#lvar:link}} | ||
Line 22: | Line 22: | ||
| h = {{#lvar:max-h}} | | h = {{#lvar:max-h}} | ||
| class = {{{class|}}} | | class = {{{class|}}} | ||
}}</span></span> <span>{{#if: {{#lvar:link}} | }}</span></span> <span class="bg3wiki-icontext-text">{{#if: {{#lvar:link}} | ||
| [[{{#lvar:link}}|{{#lvar:text}}]] | | [[{{#lvar:link}}|{{#lvar:text}}]] | ||
| {{#lvar:text}} | | {{#lvar:text}} |