Template:Pixelated/doc
Jump to navigation
Jump to search
Details
This template works extremely similarly to the usual image syntax, but ensures that the CSS image-rendering
property is set to pixelated
.
To more easily use this in other templates, it counter-intuitively accepts the additional unpixelated=1
argument to allow disabling the pixelated rendering.
Examples
Source | Result |
---|---|
{{Pixelated|NullShipSprite.png|30px}} |
![]()
|
{{Pixelated|NullShipSprite.png|60px|null sprite|link=}} |
![]()
|
{{Pixelated|Null-portrait.png|unpixelated=1}} |
![]()
|
Template Data
This is the TemplateData documentation for this template, used by VisualEditor and other tools.
Renders an image with pixelated rendering, so that no additional filtering is applied when it's scaled up or down.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | 1 | Image to display | File | required |
First image option | 2 | See mw:Help:Images | Unknown | optional |
Second image option | 3 | See mw:Help:Images | Unknown | optional |
Third image option | 4 | See mw:Help:Images | Unknown | optional |
Fourth image option | 5 | See mw:Help:Images | Unknown | optional |
Link | link | Where to link the image | Page name | suggested |
Alt Text | alt | Alt text for the image | Content | suggested |
Unpixelated? | unpixelated | If nonempty, doesn't actually apply pixelated rendering. | Boolean | optional |