Difference between revisions of "Template:Background"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
(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...")
 
(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

Template documentation[view] [edit] [history] [purge]

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}}


concrete

{{Catalog2|title=Backgrounds
|{{Background|aegir_castle|name=y}}
|{{Background|title_newyear2017|name=y}}
|{{Background|gachacutin|name=y}}
}}
Backgrounds

aegir_castle

title_newyear2017

gachacutin