Template:ImageLink: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{ImageText | {{{1}}} | [[{{{2}}}|{{{3|{{{2}}}}}}]] | <includeonly>{{ImageText | {{{1}}} | [[{{{2}}}|{{{3|{{{2}}}}}}]] | ||
| link = {{{2|}}} | |||
| w = {{{w|100}}} | | w = {{{w|100}}} | ||
| h = {{{h|100}}} | | h = {{{h|100}}} |
Revision as of 15:31, 17 September 2023
This template allows you to add images on top of links.
The element will be an inline block, meaning several can appear in one line. You can give them all a specific width and height to get a nice consistent layout.
Standard width/height is 100:
{{ImageLink | Frenzy Icon.png | Origins}} {{ImageLink | Defensive Duellist Icon.png | Character Creation#Backgrounds | Backgrounds }} {{ImageLink | Passive Feature Generic Icon.png | Feats | Just a test with very very long text }}
Result:
[[Origins| Origins]]
[[Character Creation#Backgrounds| Backgrounds ]]
[[Feats| Just a test with very very long text ]]
Limiting width only; note this may cause the text to clip as seen here:
{{ImageLink | Frenzy Icon.png | Origins | w = 50 }} {{ImageLink | Defensive Duellist Icon.png | Character Creation#Backgrounds | Backgrounds | w = 50 }}
Result:
[[Origins| Origins ]]
[[Character Creation#Backgrounds| Backgrounds ]]
Limiting height only:
{{ImageLink | Frenzy Icon.png | Origins | h = 50 }} {{ImageLink | Defensive Duellist Icon.png | Character Creation#Backgrounds | Backgrounds | h = 50 }}
Result:
[[Origins| Origins ]]
[[Character Creation#Backgrounds| Backgrounds ]]
Limiting width and height:
{{ImageLink | Frenzy Icon.png | Origins | w = 50 | h = 50 }} {{ImageLink | Defensive Duellist Icon.png | Character Creation#Backgrounds | Backgrounds | w = 50 | h = 50 }}
Result:
[[Origins| Origins ]]
[[Character Creation#Backgrounds| Backgrounds ]]
You might have noticed the text is often too wide for the icon... You can specify a font size:
{{ImageLink | Frenzy Icon.png | Origins | w = 80 | h = 80 | font size = 80% }} {{ImageLink | Defensive Duellist Icon.png | Character Creation#Backgrounds | Backgrounds | w = 80 | h = 80 | font size = 80% }}
Result:
[[Origins| Origins ]]
[[Character Creation#Backgrounds| Backgrounds ]]