Form header

From Redazione
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly>{{#var:default_path | }}{{#switch: {{{form}}}   
{{#var:default_path | }}{{#switch: {{{form}}}   
+
| Organization = {{#vardefine:default_path| [Organization name]}}
| Organization = {{#vardefine:default_path| [Organization name] }}
+
| Opportunity = {{#vardefine:default_path| Opportunities/[Provider] - [Title]}}
| Opportunity = {{#vardefine:default_path| Opportunities/[Provider] - [Title] }}
+
| Reading suggestion = {{#vardefine:default_path| Reading suggestions/[Book author] - [Book title]}}
| Reading suggestion = {{#vardefine:default_path| Reading suggestions/[Book author] - [Book title] }}
+
| Digital library = {{#vardefine:default_path| Digital libraries/[Name]}}
| Digital library = {{#vardefine:default_path| Digital libraries/[Name] }}
+
| Article = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Articles/[Authors] - [Title]}}
| Article = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Articles/[Authors] - [Title] }}
+
| Post = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Posts/[Month literal] [year] - [Title]}}
| Post = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Posts/[Month literal] - [Title] }}
+
| News = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/News/[year]/[day] - [month literal]}}
| News = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/News/[year]/[day] - [month] }}
+
| Language course = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Language courses/[Title] [Academic year] [Level]}}
| Language course = {{#vardefine:default_path|{{#ci_userAffiliatedTo:}}/Language courses/[Title] [Academic year] [Level] }}
+
| 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]}}
| Meeting = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Meetings/[Title] - [Date] }}
+
| Organization member = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Members/[First name] [Last name]}} }}{{#if: {{{return only path|}}} | {{#var:default_path}} | {{CI notice box | {{#ifeq: {{PAGENAME}} | FormEdit/{{{form}}} | The form will be created in the path {{CI text highlight|{{#var:default_path}}}}. If you want to add it to an existing page, navigate there and use the menu on top. | The form will be created in the current page ({{CI text highlight|{{#titleparts: {{PAGENAME}} |  | 3 }}}}). If you want to create the form in a new page, [[Special:FormEdit/{{{form}}}|go here]].
| Organization member = {{#vardefine:default_path| {{#ci_userAffiliatedTo:}}/Members/[First name] [Last name] }}
+
}} }} }}</includeonly>
}}{{#if: {{{return only path|}}} | {{#var:default_path}} | {{CI notice box |  
 
{{#ifeq: {{PAGENAME}} | FormEdit/{{{form}}} |  
 
The form will be created in the path {{CI text highlight|{{#var:default_path}}}}. If you want to add it to an existing page, use the menu on top.
 
| The form will be created in the current page ({{CI text highlight|{{#titleparts: {{PAGENAME}} |  | 3 }}}}). If you want to create the form in a new page, [[Special:FormEdit/{{{form}}}|go here]].
 
}} }} }}
 
</includeonly>
 

Latest revision as of 07:04, 5 September 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.