FANDOM


 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
This is "common" template doc page pattern usage notes from in {{lts|Top/doc}}
 
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<div style="width:100%;border:1px solid silver;padding-left:.5ex;padding-right:.5ex; background:#DFFFE0; "> </noinclude>
 
   
: ''Note: For archival templates, such as {{tl|Discussion top}}, see [[:Category:Archival templates]]''
+
This is "common" template doc page pattern usage notes from in {{t|Top/doc}}
  +
  +
<div style="width:100%;border:1px solid silver;padding-left:.5ex;padding-right:.5ex; background:#DFFFE0; ">
   
 
;Note--hidden content above works only when included as is wikitable head end.
 
;Note--hidden content above works only when included as is wikitable head end.
   
 
:This template is a '''First of three''' needed column templates when desiring to '''display two formatted columns side by side'''.
 
:This template is a '''First of three''' needed column templates when desiring to '''display two formatted columns side by side'''.
:It was adapted from a {{wpd|Wiktionary}} template set with the same names.
+
:It was adapted from a {{wikipedia:|Wiktionary}} template set with the same names.
   
*'''It must be used with {{Tl2|Mid}} and {{Tl2|Bottom}} to form a complete table of two columns.'''
+
*'''{{Tl2|Top}}, {{Tl2|Mid}} and {{Tl2|Bottom}} must be used together to form a complete table of two columns.'''
   
The additional parameter (either) '''bgcolor''' or '''bgColor''' can be defined to change the default color of the template display, from the default "Transparent" color. Such an override must be applied to both {{tl|Top}} and {{tl2|mid}} as well... or one gets columns of two different colors.
+
The additional parameter (either) '''bgcolor''' or '''bgColor''' can be defined to change the default color of the template display, from the default "Transparent" color. Such an override must be applied to both {{tl|Top}} and {{tl2|Mid}} as well... or one gets columns of two different colors.
   
 
;Default parameters:
 
;Default parameters:
Line 27: Line 25:
 
{| border={{{border|0}}} width={{{width|100%}}}
 
{| border={{{border|0}}} width={{{width|100%}}}
 
|-
 
|-
|bgcolor={{bgColor|{{{bgcolor|"#FFFFE0"}}}}}} valign=top width={{{width2|48%}}}|
+
|bgcolor={{{bgColor|{{{bgcolor|#FFFFE0}}} }}} valign=top width={{{width2|48%}}}|
 
... data within table
 
... data within table
 
...
 
...
 
Parameters are:
 
Parameters are:
bgColor or bgcolor affecting bgcolor
+
bgColor + bgcolor affecting bgcolor
 
border affecting border style, including color, width, etc.
 
border affecting border style, including color, width, etc.
 
width affecting overall width, within which the inner column width is applied.
 
width affecting overall width, within which the inner column width is applied.
Line 61: Line 59:
 
*3...
 
*3...
 
{{Bottom}}
 
{{Bottom}}
__NOTOC__
 
{{Col-begin/doc}}
 
 
</div>
 
</div>
   

Latest revision as of 00:15, March 25, 2010

This is "common" template doc page pattern usage notes from in {{Top/doc}}

Note--hidden content above works only when included as is wikitable head end.
This template is a First of three needed column templates when desiring to display two formatted columns side by side.
It was adapted from a {{wikipedia:|Wiktionary}} template set with the same names.
  • {{Top}}, {{Mid}} and {{Bottom}} must be used together to form a complete table of two columns.

The additional parameter (either) bgcolor or bgColor can be defined to change the default color of the template display, from the default "Transparent" color. Such an override must be applied to both {{Top}} and {{Mid}} as well... or one gets columns of two different colors.

Default parameters
Note on the relationship between the two width parameters "width" and "width2": a width of 1% always occupies a center (empty) column, so
width (outer) must be set to satisfy the relation: width >= (2 * width2 + 1%)
border=0 (none) width=100% (overall width) width2=48% (see below, each column's width)
|-
|bgcolor= was once "#FFFFE0" (a [[web color|light yellow]]), now "transparent", 
          so takes on the page background color, whatever that may be.
Default perameters may be overridden by expressing the matching named parameter.
{| border={{{border|0}}}  width={{{width|100%}}}
|-
|bgcolor={{{bgColor|{{{bgcolor|#FFFFE0}}} }}} valign=top width={{{width2|48%}}}|
... data within table
...
Parameters are:
bgColor +  bgcolor affecting bgcolor
border             affecting border style, including color, width, etc.
width              affecting overall width, within which the inner column width is applied.
width2             setting the inner column width, should also apply same value to {{Mid}}.

Use Example shown below:
{{Top}}
*The first list of items, usually bulleted links
*2...
*3...
{{Mid}} <!-- Mid must be placed in the wrap point of the table... 
        half or so above, half or so below. Contrast with {{Top2}} below.
*The second list of items, usually bulleted links
*2...
*3...
{{Bottom}}
Appearance of above example
  • The first list of items, usually bulleted links
  • 2...
  • 3...
  • The second list of items, usually bulleted links
  • 2...
  • 3...



Community content is available under CC-BY-SA unless otherwise noted.