Difference between revisions of "Template:Collapsible/doc"

From Freephile Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 +
== Example ==
 +
<pre>
 +
{{Collapsible
 +
|visible_text=Greeking is a term for putting non-sensical fill content in the process of copyrighting when you want to establish a placeholder
 +
|collapsed_content=
 +
{{Lorem}}
 +
}}
 +
</pre>
 +
Produces:
 +
 +
 +
{{Collapsible
 +
|visible_text=Greeking is a term for putting non-sensical fill content in the process of copyrighting when you want to establish a placeholder
 +
|collapsed_content=
 +
{{Lorem}}
 +
}}
 +
 +
 +
 
See https://www.mediawiki.org/wiki/Manual:Collapsible_elements for more details
 
See https://www.mediawiki.org/wiki/Manual:Collapsible_elements for more details
 
<templatedata>
 
<templatedata>

Latest revision as of 14:09, 31 January 2024

Example[edit source]

{{Collapsible
|visible_text=Greeking is a term for putting non-sensical fill content in the process of copyrighting when you want to establish a placeholder
|collapsed_content=
{{Lorem}}
}}

Produces:


Greeking is a term for putting non-sensical fill content in the process of copyrighting when you want to establish a placeholder

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.



See https://www.mediawiki.org/wiki/Manual:Collapsible_elements for more details

A simple template to apply the jQuery collapsible handlers built-in to MediaWiki core

Template parameters

ParameterDescriptionTypeStatus
Visible textvisible_text

This text is not collapsible; used to "announce" the gory details

Stringsuggested
This text is collapsible and hidden by defaultcollapsed_content

Note that hidden text will not be found by in-browser search

Stringrequired