Template:Collapse paragraph/doc

From Wikiversity
Jump to navigation Jump to search

Usage[edit source]

This templates transcludes the |abstract= parameter from a page using {{article info}} and checks to see if text is longer than 1000 characters. If it is, it creates a collapsed version truncated to the first paragaphs under 1000 characters, with the subsequent paragraphs shown upon clicking.

{{Collapse paragraph
|1          = pagename to extract abstract from 
|characters = number of characters to crop to (default = 1000)
|paragraphs = max number of paragraphs to truncate to (default = 100)
}}

Example[edit source]

{{Collapse paragraph|WikiJournal_of_Medicine/Dyslexia}}

Produces:

See also[edit source]