Form header

From Redazione
Jump to navigation Jump to search
Line 15: Line 15:
 
| Teacher = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Teachers/[First name] [Last name] }}  
 
| Teacher = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Teachers/[First name] [Last name] }}  
 
| Meeting = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Meetings/[Title] - [Date] [Last name] }}  
 
| Meeting = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Meetings/[Title] - [Date] [Last name] }}  
}}{{#if: {{{return only path|}}} | {{#var:default_path}} | <html><div style="display: block;
+
}}{{#if: {{{return only path|}}} | {{#var:default_path}} | {{CI notice box |
    background: #f5f5f5;
 
    padding: 12px;
 
    border: 1px solid #ccc;
 
    font-weight: bold;
 
"></html>
 
 
{{#ifeq: {{PAGENAME}} | FormEdit/{{{form}}} |  
 
{{#ifeq: {{PAGENAME}} | FormEdit/{{{form}}} |  
 
The form will be created in the path  
 
The form will be created in the path  
Line 27: Line 22:
 
  | The form will be created in the current page ({{CI inline highlight|{{#titleparts: {{PAGENAME}} |  | 3 }}}}).
 
  | The form will be created in the current page ({{CI inline highlight|{{#titleparts: {{PAGENAME}} |  | 3 }}}}).
 
If you want to create the form in a new page, [[Special:FormEdit/{{{form}}}|go here]].
 
If you want to create the form in a new page, [[Special:FormEdit/{{{form}}}|go here]].
}}<html>
+
}} }} }}
</div>
 
</html>}}
 
 
</includeonly>
 
</includeonly>

Revision as of 09:59, 21 August 2020

This is the "Form header" template. It should be called in the following format:

{{Form header
|form=
|return only path=
}}

Set "return only path" to 1 if you want to retrieve only the form default path (currently used in the Special:ImportData page)

Edit the page to see the template text.