Difference between revisions of "Template:Collapsed2/doc"

From Help Wiki
Line 1: Line 1:
[[Template:Collapsed2]] Is used to embed content within a overarching category. It can be used within other templates. For example the page [[WordPress Tutorial for sites.evergreen.edu]] uses the [[Template:WPTutorial]] but includes the Collapsed2 template to organize it's content.  
+
[[Template:Collapsed2]] Is used to create collapsible sections for a page. It can be used within other templates. For example the page [[WordPress Tutorial for sites.evergreen.edu]] uses the [[Template:WPTutorial]] but includes the Collapsed2 template to organize it's content.  
 
<div>
 
<div>
 
'''Example:''' [[WordPress Tutorial for blogs.evergreen.edu]]
 
'''Example:''' [[WordPress Tutorial for blogs.evergreen.edu]]
Line 5: Line 5:
 
<pre>
 
<pre>
 
{{Collapsed2
 
{{Collapsed2
  |lead=Leading Text
+
  |1=Leading Text
  |content= Secondary Text
+
  |2= Secondary Text
 
}}
 
}}
 
</pre>
 
</pre>
  
 
===Parameters===
 
===Parameters===
;Lead: A few words to sum up what is embedded into the page  
+
;1: A few words to sum up what is embedded into the page  
;Content: Content that is embedded into the page  
+
;2: Content that is embedded into the page  
  
  
 
[[category:Template Documentation Pages]]
 
[[category:Template Documentation Pages]]

Revision as of 16:14, 19 October 2016

Template:Collapsed2 Is used to create collapsible sections for a page. It can be used within other templates. For example the page WordPress Tutorial for sites.evergreen.edu uses the Template:WPTutorial but includes the Collapsed2 template to organize it's content.

Example: WordPress Tutorial for blogs.evergreen.edu

Usage

{{Collapsed2
 |1=Leading Text
 |2= Secondary Text
}}

Parameters

1
A few words to sum up what is embedded into the page
2
Content that is embedded into the page