Difference between revisions of "Help:ToggleDisplay"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Created page with 'See: [http://www.mediawiki.org/wiki/Extension:ToggleDisplay Extension:ToggleDisplay] This extension allows you to show and hide regions on a page by clicking on a link. The sim…')
 
 
Line 13: Line 13:
 
What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.
 
What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.
  
The following optional parameters can be provided in the <tt><nowiki><toggledisplay></nowiki></tt> tag:
+
The following optional parameters can be used with the <tt><nowiki><toggledisplay></nowiki></tt> tag:
  
 
{|
 
{|

Latest revision as of 11:48, 17 November 2009

See: Extension:ToggleDisplay

This extension allows you to show and hide regions on a page by clicking on a link.

The simplest usage is:

<toggledisplay>
hidable text
</toggledisplay>

What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.

The following optional parameters can be used with the <toggledisplay> tag:

Parameter Default Explanation
status hide Initial state when the page is first displayed. May be hide or show.
showtext [show details] Link text when hidable area is hidden.
hidetext [hide details] Link text when hidable area is shown.
linkstyle font-size:smaller CSS style specification for the link.
Personal tools