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 ?]
mNo edit summary |
No edit summary |
||
Line 48: | Line 48: | ||
|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=#458846|removed=#B24732|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=#458846|removed=#B24732|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|}}}|}}|also|only|removed|not=}}{{trim|{{in text|{{{1}}}|pl=0|suf={{ | -->({{#switch:{{{1|}}}|in|since={{#if:{{{addtext-front|}}}|{{{addtext-front|}}}|}}|also|only|removed|not=}}{{trim|{{in text|{{{1}}}|pl=0|suf={{pagelang}}}} <!-- | ||
-->{{#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={{#if:{{{noprefix|}}}||{{langprefix}}}}{{{link|{{{name}}}}}}}}|{{{infoname{{{nt|}}}|{{{infoname|{{{name}}}}}}}}}|{{{ico size|}}}]]</span>}}{{{addtext|}}} {{in text|{{{1}}}|pl=1|suf={{ | |<span style="{{Offsetable|offset={{{offset|0}}}}}user-select:none; position:relative; bottom:.1em">[[File:{{{ico}}}|{{#ifeq:{{FULLPAGENAME}}|{{{link|{{{name}}}}}}|link=|link={{#if:{{{noprefix|}}}||{{langprefix}}}}{{{link|{{{name}}}}}}}}|{{{infoname{{{nt|}}}|{{{infoname|{{{name}}}}}}}}}|{{{ico size|}}}]]</span>}}{{{addtext|}}} {{in text|{{{1}}}|pl=1|suf={{pagelang}}}} }})</span> | ||
}}</onlyinclude> | }}</onlyinclude> | ||
</includeonly> | </includeonly> |
Revision as of 21:05, 14 August 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.