FANDOM


m (Bot.)
 
 
Line 4: Line 4:
 
{{!}}-
 
{{!}}-
 
{{!}} colspan=2 class="clearcell" {{!}}
 
{{!}} colspan=2 class="clearcell" {{!}}
{{{!}} class="box cellbox collapsible {{#switch:{{lc:{{{collapsed|}}}}}|yes|true|collapsed=collapsed| }} {{{class|}}}"
+
{{{!}} class="box cellbox {{#switch:{{{hide|}}}|always=collapsible collapsed|never=|collapsible {{#switch:{{lc:{{{collapsed|}}}}}|yes|true|collapsed=collapsed| }}}} {{{class|}}}"
 
! class="mainheader {{{labelclass|}}}" {{!}} {{{1|}}}
 
! class="mainheader {{{labelclass|}}}" {{!}} {{{1|}}}
 
{{!}}-
 
{{!}}-
Line 11: Line 11:
 
{{!}}}
 
{{!}}}
 
| }}</includeonly><noinclude>{{Tlx|iBox/Box}} is part of the {{Tlx|iBox}} system. It <section begin=info />is used to make a collapsible data box in an ''iBox''.<section end=info />
 
| }}</includeonly><noinclude>{{Tlx|iBox/Box}} is part of the {{Tlx|iBox}} system. It <section begin=info />is used to make a collapsible data box in an ''iBox''.<section end=info />
  +
  +
   
 
==Usage==
 
==Usage==
{{Tlx|iBox/Box|''Label''|''Value''|4=condition=''Conditional''|5=default=''Default''|6=collapsed=''Collapsed''|7=class=''Classes''|8=labelclass=''Label Classes''|9=valueclass=''Value Classes''}}
+
{{Tlx|iBox/Box|''Label''|''Value''|4=condition=''Conditional''|5=default=''Default''|6=hide=''Hide state''|7=class=''Classes''|8=labelclass=''Label Classes''|9=valueclass=''Value Classes''}}
   
 
* ''Label'' is the text to display in the info label on the left column of the row.
 
* ''Label'' is the text to display in the info label on the left column of the row.
Line 21: Line 23:
 
** When you do use the condition parameter the row will display when the condition parameter is not empty. So if you used something like <code><nowiki>condition={{{1|}}}</nowiki></code> then the row would display whenever someone entered information into the parameter <code><nowiki>{{{1}}}</nowiki></code> for your infobox. This parameter works good as the same value you use for the ''Value'' in the template. If you put the same stuff into both parameters then your row will display when there is information to display, and disappear when no information is entered. (Meaning the row is nice and optional)
 
** When you do use the condition parameter the row will display when the condition parameter is not empty. So if you used something like <code><nowiki>condition={{{1|}}}</nowiki></code> then the row would display whenever someone entered information into the parameter <code><nowiki>{{{1}}}</nowiki></code> for your infobox. This parameter works good as the same value you use for the ''Value'' in the template. If you put the same stuff into both parameters then your row will display when there is information to display, and disappear when no information is entered. (Meaning the row is nice and optional)
 
* ''Default'' is a default to use when the ''Value'' is blank. This is good if you have a row which is always displayed or is not using the method where the ''Value'' and ''Conditional'' are the same if you wish to have the row display something like "''None''" when no information is entered.
 
* ''Default'' is a default to use when the ''Value'' is blank. This is good if you have a row which is always displayed or is not using the method where the ''Value'' and ''Conditional'' are the same if you wish to have the row display something like "''None''" when no information is entered.
* ''Collapsed'' allows the collapsible box to have a default state of collapsed. Use the value ''yes'', ''true'', or ''collapsed'' to have the collapsible box collapsed by default. Normally without this parameter the collapsible box is not collapsed by default.
+
* ''Hide state'' controls the collapsibility of the box. The default (left blank, shown, etc...) will show the box but allow it to be collapsed, you can also use ''always'' to have it hide by default, or ''never'' to remove the ability to hide the box.
  +
* '''''Depreciated use hide''''' - ''Collapsed'' allows the collapsible box to have a default state of collapsed. Use the value ''yes'', ''true'', or ''collapsed'' to have the collapsible box collapsed by default. Normally without this parameter the collapsible box is not collapsed by default.
 
* ''Classes'' is a list of css classes to add to the row's classes.
 
* ''Classes'' is a list of css classes to add to the row's classes.
 
* ''Label Classes'' is a list of css classes to add to the label cell's classes.
 
* ''Label Classes'' is a list of css classes to add to the label cell's classes.

Latest revision as of 04:12, January 15, 2009

Network-Logo-Animepedia Please Note, this page is synced using the TagSyncBot. When the bot is run any change you have made to this page will be overwritten. Please make changes on its page on the Animepedia at Anime:Template:IBox/Box.

{{iBox/Box}} is part of the {{iBox}} system. It is used to make a collapsible data box in an iBox.


UsageEdit

{{iBox/Box|Label|Value|condition=Conditional|default=Default|hide=Hide state|class=Classes|labelclass=Label Classes|valueclass=Value Classes}}
  • Label is the text to display in the info label on the left column of the row.
  • Value is the text to display in the information cell on the right column of the row.
  • Conditional is a condition to display the row under.
    • If you omit this parameter (Remove it completely, do not use |condition=| or else your row will never display) then the row will always be there. (Meaning the row is required not optional)
    • When you do use the condition parameter the row will display when the condition parameter is not empty. So if you used something like condition={{{1|}}} then the row would display whenever someone entered information into the parameter {{{1}}} for your infobox. This parameter works good as the same value you use for the Value in the template. If you put the same stuff into both parameters then your row will display when there is information to display, and disappear when no information is entered. (Meaning the row is nice and optional)
  • Default is a default to use when the Value is blank. This is good if you have a row which is always displayed or is not using the method where the Value and Conditional are the same if you wish to have the row display something like "None" when no information is entered.
  • Hide state controls the collapsibility of the box. The default (left blank, shown, etc...) will show the box but allow it to be collapsed, you can also use always to have it hide by default, or never to remove the ability to hide the box.
  • Depreciated use hide - Collapsed allows the collapsible box to have a default state of collapsed. Use the value yes, true, or collapsed to have the collapsible box collapsed by default. Normally without this parameter the collapsible box is not collapsed by default.
  • Classes is a list of css classes to add to the row's classes.
  • Label Classes is a list of css classes to add to the label cell's classes.
  • Value Classes is a list of css classes to add to the value cell's classes.
Community content is available under CC-BY-SA unless otherwise noted.