Difference between revisions of "Template:Upscaled"

From Nookipedia, the Animal Crossing wiki
m (Changed image, added link to category in image)
m
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Notice Box
+
{{Content Notice
|primarycolor  = #5571c3
+
| message         = This image has been upscaled for use in templates. The {{#if:{{{original|}}}|[[:File:{{{original|}}}|original file]]|original file}} should be displayed where possible with nearest-neighbor interpolation by adding <code>class=sprite</code>.
|secondarycolor = #c5ceed
+
| primarycolor    = 224 48
|textcolor      = #eceff8
+
| overrideprimary = 85%
|shadowcolor    = #374f95
+
| overridetext    = 20%
|leftimage      = [[File:Pitfall Seed NH Inv Icon.png|30px|link=Category:Upscaled images]]
+
}}<includeonly>[[Category:Upscaled images]]</includeonly><noinclude>{{Documentation}}[[Category:Notice templates]]</noinclude>
|rightimage    =
 
|header         = This is an upscaled {{#if: {{{original|}}} | version of [[:File:{{{original|}}}]] | image }}.
 
|message        = It should typically only be used in articles in situations where custom HTML is not possible (such as template parameters). Usually, the {{#if: {{{original|}}} | [[:File:{{{original|}}}|original file]] | original file }} should be used, and if a larger version is needed, the image may be surrounded by a <code>div</code> or <code>span</code> element with the <code>class="sprite"</code> attribute to enable crisp-edge scaling.
 
}}<includeonly>[[Category:Upscaled images]]</includeonly><noinclude>{{Documentation}}[[Category:Notice Templates]]</noinclude>
 

Revision as of 20:13, April 29, 2021

This image has been upscaled for use in templates. The original file should be displayed where possible with nearest-neighbor interpolation by adding class=sprite.

Template documentation (view)


Usage

{{Upscaled}}

This template is to be used for files that have been upscaled from their original size. There is an optional original parameter to link to the original file.

All pages containing this template will be added to Category:Upscaled images.

Example

{{Upscaled|original=Nia.png}}
This image has been upscaled for use in templates. The original file should be displayed where possible with nearest-neighbor interpolation by adding class=sprite.