Template:Collapse top/doc: Difference between revisions
Jump to navigation
Jump to search
archived-->closed
w:en>SMcCandlish (Use % not px for width of large elements - you have no idea what size & resolution people's monitors are or how wide their windows are) |
w:en>PBS (archived-->closed) |
||
Line 22: | Line 22: | ||
;''positional parameter 1'', named parameter 'title': These parameters give the main title of collapsed box, which occurs on the same line as the ''show'' link and is always visible. It defaults to 'Extended content'. | ;''positional parameter 1'', named parameter 'title': These parameters give the main title of collapsed box, which occurs on the same line as the ''show'' link and is always visible. It defaults to 'Extended content'. | ||
;warning: If this parameter evaluates to true (i.e. is not empty) it will display a default warning line under the main title which reads "The following is | ;warning: If this parameter evaluates to true (i.e. is not empty) it will display a default warning line under the main title which reads "The following is a closed debate. {{strongbad|Please do not modify it.}}" | ||
;''positional parameter 2'': This is optional warning-line text. It will override the standard warning line above, and obviate the need for setting the 'warning' parameter. | ;''positional parameter 2'': This is optional warning-line text. It will override the standard warning line above, and obviate the need for setting the 'warning' parameter. | ||
;'expand': If this parameter evaluates to true (i.e. is not empty) it will leave the material uncollapsed with the border and coloring. Default is to collapse the material. | ;'expand': If this parameter evaluates to true (i.e. is not empty) it will leave the material uncollapsed with the border and coloring. Default is to collapse the material. | ||
Line 34: | Line 34: | ||
;'indent': indents the box from the left of the page. Use: {{para|indent|50px}} not {{para|Indent|50px}} (Upper case "I" doesn't work). Defaults to "do not indent" (ie, 0px). Each ":" in wiki-markup is approximately equivalent to 25px indent. | ;'indent': indents the box from the left of the page. Use: {{para|indent|50px}} not {{para|Indent|50px}} (Upper case "I" doesn't work). Defaults to "do not indent" (ie, 0px). Each ":" in wiki-markup is approximately equivalent to 25px indent. | ||
If an entire section is being | If an entire section is being closed, remove the section header and add it as the first parameter of the template. This keeps the section header from showing in the TOC. | ||
== Examples == | == Examples == |