Template:Wide image: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
Line 18: Line 18:
==Usage==
==Usage==
<pre>
<pre>
{{Wide image
{{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)
Line 34: Line 34:
This:
This:
<pre>
<pre>
{{Wide image|SMB NES World 1-1 Map.png|1992}}
{{wide image|SMB NES World 1-1 Map.png|1992}}
</pre>
</pre>


Results in:
Results in:
{{Wide image|SMB NES World 1-1 Map.png|1992}}
{{wide image|SMB NES World 1-1 Map.png|1992}}
{{br}}
{{br}}


Line 44: Line 44:
This:
This:
<pre>
<pre>
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}
</pre>
</pre>


Results in:
Results in:
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}


===Aligned on left or right===
===Aligned on left or right===
This:
This:
<pre>
<pre>
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|right}}
{{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 will be aligned with it.
If ''left'' or ''right'' is used, the text after the template will be aligned with it.
</pre>
</pre>


Results in:
Results in:
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|right}}
{{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 will be aligned with it.
If ''left'' or ''right'' is used, the text after the template will be aligned with it.
{{br}}
{{br}}
Line 64: Line 64:
This:
This:
<pre>
<pre>
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|none}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|none}}
If ''none'' is used, the text after the template will appear under it.
If ''none'' is used, the text after the template will appear under it.
</pre>
</pre>


Results in:
Results in:
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|none}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|none}}
If ''none'' is used, the text after the template will appear under it.
If ''none'' is used, the text after the template will appear under it.


Line 75: Line 75:
This:
This:
<pre>
<pre>
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}
</pre>
</pre>


Results in:
Results in:
{{Wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}
{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|dir=rtl}}


[[Category:Structural templates]]</noinclude>
[[Category:Structural templates]]</noinclude>

Revision as of 09:25, June 4, 2024

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 (99% is the default)
|5=frame alignment: left, right or none (center 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:

Page Template:Wide image/styles.css has no content.

World 1 (SMB)

With caption

This:

{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.}}

Results in:

Page Template:Wide image/styles.css has no content.

Aligned on 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 will be aligned with it.

Results in:

Page Template:Wide image/styles.css has no content.

If left or right is used, the text after the template will be aligned with it.

Not aligned

This:

{{wide image|SMB NES World 1-1 Map.png|1992|'''World 1-1''' of ''[[Super Mario Bros.]]''.|45%|none}}
If ''none'' is used, the text after the template will appear under it.

Results in:

Page Template:Wide image/styles.css has no content.

If none is used, the text after the template will appear under 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:

Page Template:Wide image/styles.css has no content.