Difference between revisions of "Template:CreateFormHeader"

From OPENRESEARCH integration copy Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This template creates a header tab which is collapsible and can be used above collapsible content. Provides a Header and the information of the header. If the collapsible content has to be in collapsed state at the start a 3rd argument 'mw-collapsed' can be given  
+
This template creates a header tab which is collapsible and can be used above collapsible content. Provides a Header and the information of the header. If the collapsible content has to be in collapsed state at the start a 3rd argument 'mw-collapsed' can be given. 4th argument color can be given  
 
You can use it like this:  
 
You can use it like this:  
<pre> {{CreateFormHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields}}</pre>
+
<pre> {{CreateNormalHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields||lightgrey}}</pre>
For the content to be collapsed at start use:  
+
For the content to be coCrellapsed at start use:  
<pre>{{CreateFormHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields|mw-collapsed}}</pre>
+
<pre>{{CreateNormalHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields|mw-collapsed}}</pre>
 
Demo Run:  
 
Demo Run:  
{{CreateFormHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields|mw-collapsed}}
+
{{CreateNormalHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields|mw-collapsed|lightgrey}}
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
Test Run Successfull
 
Test Run Successfull
Line 12: Line 12:
 
</div>
 
</div>
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div id="collapse-pre-one" class="mw-collapsible {{{3}}}">
+
<div id="collapse-pre-one" class="mw-collapsible {{{3}}}">
  <div class="mw-collapsible-toggle toccolours" style="float: none;background-color: lightblue;">
+
  <div class="mw-collapsible-toggle toccolours" style="float: none;background-color: {{{4}}};">
 
   <div class="mw-collapsible-toggle-row">
 
   <div class="mw-collapsible-toggle-row">
 
   <div class="mw-collapsible-toggle-header"><big>'''{{{1}}}'''<br>{{{2}}}</big></div>
 
   <div class="mw-collapsible-toggle-header"><big>'''{{{1}}}'''<br>{{{2}}}</big></div>

Latest revision as of 02:21, 25 March 2021

This template creates a header tab which is collapsible and can be used above collapsible content. Provides a Header and the information of the header. If the collapsible content has to be in collapsed state at the start a 3rd argument 'mw-collapsed' can be given. 4th argument color can be given You can use it like this:

 {{CreateNormalHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields||lightgrey}}

For the content to be coCrellapsed at start use:

{{CreateNormalHeader|General Information| Includes all the field with general information of the Event. This does include some mandatory fields|mw-collapsed}}

Demo Run: Template:CreateNormalHeader

Test Run Successfull