10,975
editsAd placeholder
Template:IconLink: Difference between revisions
Jump to navigation
Jump to search
no edit summary
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{#vardefine: max-w | {{{w|}}} }} | {{#vardefine: max-w | {{{w|}}} }} | ||
{{#vardefine: max-h | {{{h | {{{size | 40}}} }}} }} | {{#vardefine: max-h | {{{h | {{{size | 40}}} }}} }} | ||
}}{{#if: {{{block|}}} | <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> }}<span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">{{icon | {{#var:icon}} | link = {{#var:link}} | caption = {{#var:text}} | w = {{#var:max-w}} | h = {{#var:max-h}} }}</span> [[ {{#var:link}} |{{#var:text}}]]{{#if: {{{block|}}} | </span> }}</includeonly><noinclude> | }}{{#if: {{{block|}}} | <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> }}<span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">{{icon | {{#var:icon}} | link = {{#var:link}} | caption = {{#var:text}} | w = {{#var:max-w}} | h = {{#var:max-h}} }}</span> [[{{#var:link}}|{{#var:text}}]]{{#if: {{{block|}}} | </span> }}</includeonly><noinclude> | ||
Usage: {{code|<nowiki>{{IconLink | Flourish Icon.png | Flourish }}</nowiki>}} | Usage: {{code|<nowiki>{{IconLink | Flourish Icon.png | Flourish }}</nowiki>}} | ||