Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Widget:FileUrl

From Minecraft Wiki
Jump to: navigation, search

url(/media/)

[view | edit | history | purge]Documentation

This widget allows local files to be used in CSS. Don't use this directly, use Template:FileUrl instead.

Example

Adding a background image to text inside a link:

[[Diamond|<span style="padding-left:18px;background:{{#widget:FileUrl|url=thumb/7/72/Grid_Diamond.png/16px-Grid_Diamond.png}} no-repeat">Diamond</span>]]

Diamond

[view | edit | history | purge]The above documentation is transcluded from Widget:FileUrl/doc.