VOOZH about

URL: https://minecraft.wiki/w/Template:Wi

⇱ Template:Wi – Minecraft Wiki


Template:Wi

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]

Used to generate rows on MCW:Wiki images.

Use {{|start=Name of header}} and {{|foot}} to generate the header and footer of the tables. You may then fill up the rows of the table with images using {{|image-one.png|image-two.png|you-can-put-as-many-images-in-the-list-as-you-like.png|Last param is the usage of the images}}

For example,

{{Wi|start=Example}}
{{Wi|Wiki social media pride logo.png|Wiki_social_media_pride_logo_pixel.png|[[Minecraft Wiki:Discord]] and <br>[[Minecraft Wiki:Social media]] accounts}}
{{Wi|foot}}

will generate

Example

Name Image Usage
File:Wiki social media pride logo.png 👁 Image
Minecraft Wiki:Discord and
Minecraft Wiki:Social media accounts
File:Wiki_social_media_pride_logo_pixel.png 👁 Image


Additional modifiers

[edit source]

Certain options may be used to modify the display style of the headers and content rows.

Pixel-image

[edit source]

Images that are pixel art typically use class=pixel-image when transcluding in order to tell the wiki to treat them like SVGs (ie., do not blend or make the pixels blurry). This can be achieved by using the |p=1 parameter (ie., {{|p=1|sprite.png|Description of sprite}})

No render

[edit source]

Some files, such as .woff or .ico files or files located outside of the Minecraft Wiki's File: namespace (ie., those on Wikipedia) do not actually embed properly in tables, and will display the filename instead. To fix this issue, you can use the |norender=1 parameter. For example,
{{|norender=1|favicon.ico|The favicon for the website}} will render

File:favicon.ico The favicon for the website

instead of

File:favicon.ico File:favicon.ico The favicon for the website

(as the second File:Favicon.ico is a failed image embed)

Prefix

[edit source]

Certain images that the wiki uses aren't located on the wiki, but on an external platform. While this template (currently) does not support arbitrary image URLs, an interwiki prefix can be used. For example, the wiki uses the image https://meta.weirdgloop.org/images/Creative_Commons_footer.png, from the Weird Gloop Meta wiki in the footer of everypage. The interwiki prefix in Special:Interwiki for the Weird Gloop Meta wiki is wgmeta:, meaning you can link to the file using [[wgmeta:File:Creative_Commons_footer.png]]. This can be achieved using the |prefix= parameter so
{{|prefix=wgmeta|norender=1|Creative_Commons_footer.png|License footer used on the wiki}}
Renders as

wgmeta:File:Creative_Commons_footer.png License footer used on the wiki

It is reccomended that |prefix= always be used in conjunction with |norender=1.

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Wi/doc.
Retrieved from "https://minecraft.wiki/w/Template:Wi?oldid=3640322"

Navigation menu