Template:Software: Difference between revisions
Jump to navigation
Jump to search
Tip:This template now supports icons with 32px or larger, this meant that users can upload a large icon (128px for example) directly, without having to downscale the icon to 16px, as the MediaWiki software will do this automatically.
With the higher resolution icon available, these will benefits most 4K and Apple Retina display, and won't look blurry. See File:Icon-HL2.png.
Bug:{{{addtext}}} does not work with all {{{1}}} options. Same is probably the case for {{{addtext-front}}}. [todo tested in ?]
(Added darker background version.) |
SirYodaJedi (talk | contribs) mNo edit summary |
||
Line 38: | Line 38: | ||
|in|also|only|since|removed|not = <span style="{{Offsetable|offset={{{offset|0}}}}}white-space:nowrap; color:{{#switch:{{{1}}}|in=#529352|also=#A5A640|only=#BB8B2D|since=#2ABD2D|removed=#C93214|not=#9D341B}}; background:rgb(0,0,0,.16); font-weight:bold; padding:2px; border-radius:4px"><!-- | |in|also|only|since|removed|not = <span style="{{Offsetable|offset={{{offset|0}}}}}white-space:nowrap; color:{{#switch:{{{1}}}|in=#529352|also=#A5A640|only=#BB8B2D|since=#2ABD2D|removed=#C93214|not=#9D341B}}; background:rgb(0,0,0,.16); font-weight:bold; padding:2px; border-radius:4px"><!-- | ||
-->({{#switch:{{{1|}}}|in|since={{#if:{{{addtext-front|}}}|{{{addtext-front|}}} | -->({{#switch:{{{1|}}}|in|since={{#if:{{{addtext-front|}}}|{{{addtext-front|}}}|}}|also|only|removed|not=}}{{trim|{{in text|{{{1}}}|pl=0|suf={{uselang}}}} <!-- | ||
-->{{#if:{{{eico|}}} | -->{{#if:{{{eico|}}} | ||
|{{{eico}}} | |{{{eico}}} | ||
|<span style="{{Offsetable|offset={{{offset|0}}}}}user-select:none; position:relative; bottom:.1em">[[File:{{{ico}}}|{{#ifeq:{{FULLPAGENAME}}|{{{link|{{{name}}}}}}|link=|link={{{link|{{{name}}}}}}}}|{{{infoname{{{nt|}}}|{{{infoname|{{{name}}}}}}}}}|{{{ico size|}}}]]</span>}}{{{addtext|}}} {{in text|{{{1}}}|pl=1|suf={{uselang}}}} }})</span> | |<span style="{{Offsetable|offset={{{offset|0}}}}}user-select:none; position:relative; bottom:.1em">[[File:{{{ico}}}|{{#ifeq:{{FULLPAGENAME}}|{{{link|{{{name}}}}}}|link=|link={{{link|{{{name}}}}}}}}|{{{infoname{{{nt|}}}|{{{infoname|{{{name}}}}}}}}}|{{{ico size|}}}]]</span>}}{{{addtext|}}} {{in text|{{{1}}}|pl=1|suf={{uselang}}}} }})</span> | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> |
Revision as of 12:53, 22 April 2024

With the higher resolution icon available, these will benefits most 4K and Apple Retina display, and won't look blurry. See File:Icon-HL2.png.

Todo: Use backward compatibility in all child templates. The improvement work may not continue soon, but some progress has already been made.

The above documentation is transcluded from Template:Software/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.