Template:Wide image: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "[[Wikipedia:" to "[[wikipedia:") |
mNo edit summary |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="thumb {{#switch:{{{5}}} | <includeonly><div class="thumb {{#switch:{{{5}}} | ||
|left= tleft" style=" | |left=tleft" style=" | ||
|right= tright" style=" | |right=tright" style=" | ||
| | |center=tnone" style="margin-left:auto; margin-right:auto; | ||
|#default=tnone" style=" | |||
}} width:{{{4| | }} width:{{{4|auto}}}; {{#if:{{{2|}}}|max-width:{{#expr:{{{2}}}+8}}px}}"> | ||
<div class="thumbinner"><div class=" | <div class="thumbinner"><div class="noresize" style="overflow:auto; {{#ifeq:{{{dir}}}|rtl|direction:rtl}}">[[File:{{{1}}}|{{{2}}}px|{{#switch:{{{3}}} | ||
|thumb | |thumb|thumbnail|frame|border={{{1}}} | ||
|thumbnail | |#default={{{3|}}}}}]]</div>{{#if:{{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}}]]</div>{{{3}}}</div>}} | ||
|frame | |||
|border={{{1}}} | |||
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}} | |||
</div></div></includeonly><noinclude> | </div></div></includeonly><noinclude> | ||
This template is to be used when setting images that are too wide to fit on the page while maintaining its clear visualization. It works as a thumbnail that uses a scroll box if the image is too large. | This template is to be used when setting images that are too wide to fit on the page while maintaining its clear visualization. It works as a thumbnail that uses a scroll box if the image is too large. | ||
Credit goes to [[wikipedia:Main Page|Wikipedia]]. Click [[wikipedia:Template:Wide image|here]] to check out the original template. | |||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{ | {{wide image | ||
|1=image name | |1=image name | ||
|2=desired image width (use numbers only, don't add "px", i.e 500) | |2=desired image width (use numbers only, don't add "px", i.e 500) | ||
|3=caption | |3=caption | ||
|4=frame width ( | |4=frame width (auto is the default) | ||
|5=frame alignment: left, right or none | |5=frame alignment: left, right, or center (none is the default) | ||
|dir=Insert "rtl" if you want the right side of the image to appear initially (left to right is the default) | |dir=Insert "rtl" if you want the right side of the image to appear initially (left to right is the default) | ||
}} | }} | ||
</pre> | </pre> | ||
'''Note:''' | '''Note:''' Only the parameters 1 and 2 are required. Insert the others if needed on that case. | ||
==Examples== | ==Examples== | ||
===Basic=== | ===Basic=== | ||
This: | '''This:''' <pre>{{wide image|SMB NES World 1-1 Map.png|1992}}</pre> | ||
<pre> | |||
{{ | '''Results in:''' {{wide image|SMB NES World 1-1 Map.png|1992}} | ||
</pre> | |||
===With caption=== | ===With caption=== | ||
This: | '''This:''' <pre>{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}</pre> | ||
<pre> | |||
{{ | '''Results in:''' {{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}} | ||
</pre> | |||
===Aligned left or right=== | |||
'''This:''' | |||
<pre> | <pre> | ||
{{ | {{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|right}} | ||
If ''left'' or ''right'' is used, the text after the template | If ''left'' or ''right'' is used, the text after the template appears next to it. | ||
</pre> | </pre> | ||
'''Results in:''' | |||
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|right}} | |||
{{ | If ''left'' or ''right'' is used, the text after the template appears next to it. | ||
If '' | |||
{{br}} | {{br}} | ||
===Scrolls right to left=== | ===Scrolls right to left=== | ||
This: | '''This:''' <pre>{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}</pre> | ||
<pre> | |||
{{ | '''Results in:''' {{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}} | ||
|dir=rtl}} | |||
</pre> | |||
[[Category:Structural templates]]</noinclude> | |||
[[Category: |
Latest revision as of 14:55, March 2, 2025
This template is to be used when setting images that are too wide to fit on the page while maintaining its clear visualization. It works as a thumbnail that uses a scroll box if the image is too large.
Credit goes to Wikipedia. Click here to check out the original template.
Usage
{{wide image |1=image name |2=desired image width (use numbers only, don't add "px", i.e 500) |3=caption |4=frame width (auto is the default) |5=frame alignment: left, right, or center (none is the default) |dir=Insert "rtl" if you want the right side of the image to appear initially (left to right is the default) }}
Note: Only the parameters 1 and 2 are required. Insert the others if needed on that case.
Examples
Basic
This:
{{wide image|SMB NES World 1-1 Map.png|1992}}
Results in:
With caption
This:
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}
Results in:
World 1-1 of Super Mario Bros..
Aligned left or right
This:
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|right}} If ''left'' or ''right'' is used, the text after the template appears next to it.
Results in:
World 1-1 of Super Mario Bros..
If left or right is used, the text after the template appears next to it.
Scrolls right to left
This:
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}
Results in:
World 1-1 of Super Mario Bros..