Difference between revisions of "Template:Background"
Jump to navigation
Jump to search
SurtrFan8511 (talk | contribs) (Created page with "<includeonly><onlyinclude><span class="plainlinks">[https://cdn.housamo.xyz/housamo/bg/bg_{{lc:{{{1|white}}}}}.png {{#tag:mediator|https://api.housamo.xyz/housamo/thumbnail/?p...") |
SurtrFan8511 (talk | contribs) (added lazy loading) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><span class="plainlinks">[https://cdn.housamo.xyz/housamo/bg/bg_{{lc:{{{1|white}}}}}.png {{#tag:mediator|https://api.housamo.xyz/housamo/thumbnail/?path=/housamo/bg/bg_{{lc:{{{1|white}}}}}.png|width={{{width|auto}}}|height={{{height|auto}}}}}{{#ifeq:{{{name|n}}}|y|<br>{{lc:{{{1|white}}}}}}}]</span></onlyinclude></includeonly> | <includeonly><onlyinclude><span class="plainlinks">[https://cdn.housamo.xyz/housamo/bg/bg_{{lc:{{{1|white}}}}}.png {{#tag:mediator|https://api.housamo.xyz/housamo/thumbnail/?path=/housamo/bg/bg_{{lc:{{{1|white}}}}}.png|width={{{width|auto}}}|height={{{height|auto}}}|loading=lazy}}{{#ifeq:{{{name|n}}}|y|<br>{{lc:{{{1|white}}}}}}}]</span></onlyinclude></includeonly> | ||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 09:59, 30 January 2023
Description
This template shows a background thumbnail with a hyperlink to the full image and an optional filename. Thumbnails are used to load images faster and reduce data usage.
Background filenames can be found here.
Usage
{{Background|<filename>|name=<y/n>|width=<width>px|height=<height>px}}
Examples
{{Background|concert}}
{{Background|concrete|name=y|width=40px|height=70px}}
{{Catalog2|title=Backgrounds |{{Background|aegir_castle|name=y}} |{{Background|title_newyear2017|name=y}} |{{Background|gachacutin|name=y}} }}
Backgrounds | ||
---|---|---|
aegir_castle |
title_newyear2017 |
gachacutin |
The above documentation is transcluded from Template:Background/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |