Template:Collapse top/doc: Difference between revisions

Jump to navigation Jump to search
m
typo
w:en>Mrjulesd
(added examples and clean-up)
w:en>Mrjulesd
m (typo)
Line 35: Line 35:
;padding: Sets the padding on the collapsed material in the colored area. Defaults to 8px. For example <code><nowiki>{{cot|This is the title text|padding=16px}}</nowiki></code>
;padding: Sets the padding on the collapsed material in the colored area. Defaults to 8px. For example <code><nowiki>{{cot|This is the title text|padding=16px}}</nowiki></code>
;width: Sets the width of the overall template. Use {{para|width|50%}}, not {{para|Width|50%}} as upper case "W" doesn't work. Or <code>|width=200px</code> (if you omit "px" it doesn't work).
;width: Sets the width of the overall template. Use {{para|width|50%}}, not {{para|Width|50%}} as upper case "W" doesn't work. Or <code>|width=200px</code> (if you omit "px" it doesn't work).
;border2: Sets the border of the box that appears when template is expanded; defaults to "1px silver" (there is no provision to change from a solid line). For example <code><nowiki>{{cot|This is the title text|border=2px}}</nowiki></code>
;border2: Sets the border of the box that appears when template is expanded; defaults to "1px silver" (there is no provision to change from a solid line). For example <code><nowiki>{{cot|This is the title text|border2=2px}}</nowiki></code>
;bg2: Sets background of the box that appears when template is expanded; defaults to white. For example <code><nowiki>{{cot|This is the title text|bg2=#F0F2F5}}</nowiki></code>
;bg2: Sets background of the box that appears when template is expanded; defaults to white. For example <code><nowiki>{{cot|This is the title text|bg2=#F0F2F5}}</nowiki></code>
;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" (i.e. 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" (i.e. 0px). Each ":" in wiki-markup is approximately equivalent to 25px indent.
Anonymous user

Navigation menu