The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Widget:FileUrl/doc

From Minecraft Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main widget page. See Template:Documentation for more information

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