• New article from the Springfield Shopper: The Simpsons are trapped on a flight from Hell this December!
  • New article from the Springfield Shopper: A Sneak Peek for “Treehouse of Horror Presents: Simpsons Wicked This Way Comes” has been released!
  • New article from the Springfield Shopper: Season 36 News: Even more Preview Images for “O C’mon All Ye Faithful” have been released!
  • Wikisimpsons needs more Featured Article, Picture, Quote, Episode and Comprehensive article nominations!
  • Wikisimpsons has a Discord server! Click here for your invite! Join to talk about the wiki, Simpsons and Tapped Out news, or just to talk to other users.
  • Make an account! It's easy, free, and your work on the wiki can be attributed to you.
TwitterFacebookDiscord

Difference between revisions of "Template:Tab"

Wikisimpsons - The Simpsons Wiki
(this is how it could work but doesn't right now)
Line 1: Line 1:
<div style="text-align:center">
+
<onlyinclude><div style="text-align:center">
 
<div style="float:left; width:19%; padding: .5em 0;font-weight:bold; color: black; background-color:yellow;   
 
<div style="float:left; width:19%; padding: .5em 0;font-weight:bold; color: black; background-color:yellow;   
 
border:2px solid #000000; border-bottom:0px; border-bottom:0; font-size:120%;">General</div>
 
border:2px solid #000000; border-bottom:0px; border-bottom:0; font-size:120%;">General</div>
Line 5: Line 5:
 
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Appearances|Appearances]]</div>
 
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Appearances|Appearances]]</div>
 
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Credits|Credits]]</div>
 
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Credits|Credits]]</div>
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Quotes|Quotes]]</div>
+
<div style="float:left; width:19%; padding: .5em 0;">[[{{{title|}}}/Quotes|Quotes]]</div></div>
 
<div style="clear:both; width:99%; padding:5px; border:2px solid #000000; background-color:#FFFDD0">
 
<div style="clear:both; width:99%; padding:5px; border:2px solid #000000; background-color:#FFFDD0">
 +
</onlyinclude>
 +
'' Tab content ''
 +
</div>
  
<noinclude>
+
==Note==
 +
Make sure to place a &lt;/div> on the page where you wish the box that encloses the tab content to end. If you don't, the page interface will look funny.
 +
 
 +
It should look like this:
 +
<pre>
 +
{{Tab}}
 +
''Tab content''
 +
</div>
 +
</pre>
 
[[Category:Templates|Tab]]
 
[[Category:Templates|Tab]]
</noinclude>
 

Revision as of 18:01, November 16, 2010

Tab content

Note

Make sure to place a </div> on the page where you wish the box that encloses the tab content to end. If you don't, the page interface will look funny.

It should look like this:

{{Tab}}
''Tab content''
</div>