On Friday, April 19, 2024 at 10:00 PM New York time, all OpenWiki Project sites will be undergoing scheduled maintenance for about 2 hours. Expect read-only access and brief periods of downtime.

Template:Tab/Content: Difference between revisions

From Fire Emblem Wiki, your source on Fire Emblem information. By fans, for fans.
m (This template looks alllll messed up >_>)
mNo edit summary
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{4|}}}|<div class="content" style="
<div class="tab_content" style="
{{#ifeq:{{{1}}}|{{{2}}}
{{#ifeq:{{{1}}}|{{{2}}}
  |display:block
  |display:block;
  |{{#ifeq:{{{1}}}|{{{3}}}
  |{{#ifeq:{{{1}}}|{{{3}}}
   |
   |
   |display:none
   |display:none;
  }}
  }}
}};">
}}">
{{{4}}}
{{{4}}}
</div><noinclude>
</div><noinclude>
Line 19: Line 19:
*'''tabtext''': The parameter containing the tab text (eg. {{{tab2}}})
*'''tabtext''': The parameter containing the tab text (eg. {{{tab2}}})
*'''content''': The parameter containing the content (eg. {{{content2}}})
*'''content''': The parameter containing the content (eg. {{{content2}}})
[[Category:Formatting Templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Revision as of 15:42, 23 January 2019

Purpose

Properly formats the tab contents. For use with the Tab template.

Usage

{{Tab/Content | number | default | tabtext | content }}
  • number: The number of the tab
  • default: The number of the tab to select by default
  • tabtext: The parameter containing the tab text (eg. {{{tab2}}})
  • content: The parameter containing the content (eg. {{{content2}}})