Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Scroll box: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>VilkaTheWolf
No edit summary
imported>VilkaTheWolf
Undo revision 848581 by VilkaTheWolf (talk)
Line 1: Line 1:
<table class="scrollbox" cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}};"><tr><td><div style="height:{{{height|400px}}}; width:{{{width|100%}}};">
<table cellpadding="0" cellspacing="0" border="0" style="width:{{{width|100%}}}; margin-bottom:3px; margin-top:3px;"><tr><td style="background:transparent;"><div style="overflow:auto; height:230px; width:{{{width|100%}}};  -moz-border-radius-topleft:0.5em; border:1px solid #AAAAAA; padding-left:0.5em; background:transparent;">
{{{content|{{{1}}}}}}
{{{content|{{{1}}}}}}
</div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__
</div></td><td style="width:8px;"></td></tr></table><noinclude>__NOTOC__
==Usage instructions==
==Usage instructions==
<pre class="wrap"><nowiki>
<pre>
{{Scroll_box|content=
{{scroll box
}}
|width = x%
</nowiki></pre>
|content =  
 
}}</pre>
NOTE: Optional '''height''' and '''width''' variables can be used to control the width of the scroll box (height defaults to 400 pixels; the former "scroll box" template was 230 pixels):
<pre class="wrap"><nowiki>
{{Scroll_box|height=300px|content=
}}
</nowiki></pre>
 
<pre class="wrap"><nowiki>
{{Scroll_box|width=100%|content=
}}
</nowiki></pre>
 
<pre class="wrap"><nowiki>
{{Scroll_box|height=230px|width=100%|content=
}}
</nowiki></pre>
 
==Example==
===Code===
<pre class="wrap"><nowiki>
{{Scroll_box|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
</nowiki></pre>
 
===Result===
{{Scroll_box|content=
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
 
===Alternative code===
If no width or height are defined, the content= variable is not required either.
<pre class="wrap"><nowiki>
{{Scroll_box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
</nowiki></pre>
 
===Result===
{{Scroll_box|
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
*blah
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 05:43, 25 November 2019

{{{1}}}

Usage instructions

{{scroll box
|width = x%
|content = 
}}