Difference between revisions of "Template:Collapse top/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Ludwigs2
(adding parameter list)
imported>Ludwigs2
Line 12: Line 12:
 
;''positional parameter 1'', title, reason: these three 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'', title, reason: these three 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 (is not 0, false, or empty) it will display a default warning line under the main title which reads 'The following is an archived debate. <span style="color:red;">'''Please do not modify it.'''</span>'
 
;warning: if this parameter evaluates to true (is not 0, false, or empty) it will display a default warning line under the main title which reads 'The following is an archived debate. <span style="color:red;">'''Please do not modify it.'''</span>'
;''positional parameter 2'': This is an optional warning line text.  it will override the standard warning line above, and obviate he need for setting the 'warning' parameter.
+
;''positional parameter 2'': This is an optional warning line text.  it will override the standard warning line above, and obviate the need for setting the 'warning' parameter.
 
</noinclude>
 
</noinclude>

Revision as of 06:09, 13 March 2010

Parameters

positional parameter 1, title, reason
these three 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 (is not 0, false, or empty) it will display a default warning line under the main title which reads 'The following is an archived debate. Please do not modify it.'
positional parameter 2
This is an optional warning line text. it will override the standard warning line above, and obviate the need for setting the 'warning' parameter.