Difference between revisions of "Template:Edit/doc"

From blackwiki
Jump to navigation Jump to search
imported>Litianjiao
imported>DePiep
 
(34 intermediate revisions by 23 users not shown)
Line 1: Line 1:
'''THALES Group''' With operations in 50 countries and 68,000 employees, Thales is a world leader in mission-critical information systems for defence and security, aerospace and transportation.
+
{{Documentation subpage}}
 +
<!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
 +
{{High-use}}
  
Building on its expertise in the most sophisticated technologies and large-scale software systems, Thales is stepping up to the security challenges of its customers in an increasingly complex world. Leveraging its international operations and spanning the entire value chain from equipment to systems and services, Thales is playing a pivotal role in making the world a safer place.
+
It provides a clickable link to edit a page, or a section of the page.
== What is Thales Academia? ==
 
On 15 May 2006, an agreement was signed by Thales Chairman & CEO, Denis Ranque, and the French Foreign Minister at the time, Philippe Douste-Blazy, to launch a joint programme to host and support highly qualified overseas students in France. Since the start of the 2006 academic year, 106 Brazilian, Chinese, Indian and Russian students have benefited from the Thales Academia scholarship programme.
 
 
Six engineering schools, two business schools and two Universities are partners to the Thales Academia programme. They are fully committed to offering students top-quality teaching and support services.
 
 
In 2010, 25 scholarship packages are available : 7 for Indian students, 7 for Chinese students, 6 for Russian students and 5 for Brazilian students.
 
  
== What’s included in the Thales Academia programme? ==
+
== Usage ==
''1 Before leaving for France''
+
<pre>
:*You benefit from support from the French Embassy for all administrative formalities (visas, residency permits, etc.).
+
{{Edit
:*You can also enrol on intensive French language courses, provided by Alliance Française and paid for by the French Embassy, in your country of origin.
+
|1=
''2 In France''
+
|2=
:*You enrol at one of the engineering schools, business schools or universities that are partners to the Thales Academia programme on either a Post-Master’s Certificate, Master’s or Master of Science degree course.
+
|section=
''3 Scholarship package benefits''
+
|editintro=
:*« Thales Academia scholarship » of €13 000.
+
|preload=
:*An official reception by the French Ministry of Foreign Affairs and Thales, attended by all programme partners.
+
|preloadtitle=
:*Medical coverage and ‘French government scholarship student status’.
+
|tooltip=
:*You may also be eligible for accommodation support.
+
}}
:*Personal mentoring by a manager from the Thales Group and help in finding an internship.
+
</pre>
== How to apply ==
 
'''Step 1''' : Download and complete the Thales Academia scholarship application form below and send it to the Thales Academia contact at the French Embassy in your country, by no later than 10 April 2010.
 
 
'''Step 2''' : Apply for a degree course proposed by one or more of the partner schools or universities as part of the Thales Academia programme. Ensure that you comply with the specific enrolment procedures and deadlines set by each place of study.
 
 
'''Warning''' : Proof of application (or admission) to a graduate programme offered by one of the partner schools or universities must be submitted with your scholarship application to the French embassy in your home country.
 
  
==See also==
+
* '''1''': the page to edit. If omitted, it will be the current page.
# http://www.thalesgroup.com/Group/Home/
+
* '''2''': the label text of the edit link. If omitted, it is "edit" by default.
# http://academia.thalesgroup.com/en/
+
* '''section''': the section to edit, in which <code>0</code> for the top (i.e. lead section), <code>1</code> for the first (sub-)section, and <code>new</code> for adding a new section.
 +
* '''editintro''': the content of a page/template that will be transcluded above the edit box when you edit the page. Usually used to load [[Wikipedia:Template messages|template messages]].
 +
* '''preload''': the content of a page/template that will be preloaded into the text area of the edit form. It works only if the page to be edited does not exist.
 +
* '''preloadtitle''': if making a new section (i.e. <code>|section=new</code>), the title to be preloaded into the title box of the edit form.
 +
* '''tooltip''': the text to display when you hover over the link.
 +
 
 +
Notes:
 +
* All parameters are optional.
 +
* The parameter names '''must be''' in lowercase or they will fail.
 +
 
 +
== Examples ==
 +
{| class="wikitable"
 +
|-
 +
!style="width: 35%;"| Code
 +
!style="width: 15%;"| Output
 +
!| Notes
 +
|-
 +
| <nowiki>{{edit}}</nowiki> || {{edit}} || Edit current page
 +
|-
 +
| <nowiki>{{edit| |edit template doc}}</nowiki> || {{edit| |edit template doc}} ||
 +
|-
 +
| <nowiki>{{edit|1=Infobox foo|2=E}}</nowiki> || {{edit|1=Infobox foo|2=E}} ||
 +
|-
 +
| <nowiki>{{edit|2=edit template doc}}</nowiki> || {{edit|2=edit template doc}} ||
 +
|-
 +
| <nowiki>{{edit|friendship}}</nowiki> || {{edit|friendship}} || Edit the article [[friendship]]
 +
|-
 +
| <nowiki>{{edit|friendship|section=3}}</nowiki> || {{edit|friendship|section=3}} || Edit the third order of a (sub-)section of the article [[friendship]], which is [https://en.wikipedia.org/w/index.php?title=Friendship&oldid=930460849#Adolescence 1.2 Adolescence] as of 10 Jan 2020
 +
|-
 +
| <nowiki>{{edit|Draft:Sandbox|editintro=Template:Disambig editintro}}</nowiki> || {{edit|Draft:Sandbox|editintro=Template:Disambig editintro}} || Load {{tl|Disambig editintro}} when you edit
 +
|-
 +
| <nowiki>{{edit|Template:Some new template|preload=Template:Documentation/preload}}</nowiki> || {{edit|Template:Some new template|preload=Template:Documentation/preload}} || Preload the whoole content of {{tl|Documentation/preload}} when you create a new template
 +
|-
 +
| <nowiki>{{edit|Wikipedia talk:Sandbox|section=new||preloadtitle=Custom title of the new section}}</nowiki> || {{edit|Wikipedia talk:Sandbox|section=new||preloadtitle=Custom title of the new section}} || Create a new section of a custom title
 +
|-
 +
| <nowiki>{{edit|2=link with tooltip|tooltip=This is a tooltip}}</nowiki> || {{edit| |tooltip=This is a tooltip}} || Hover over the link to see the tooltip
 +
|}
 +
 
 +
== TemplateData ==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Page",
 +
"description": "The page to edit",
 +
"example": "Example",
 +
"type": "wiki-page-name",
 +
"default": "The current page",
 +
"suggested": true
 +
},
 +
"2": {
 +
"label": "Label",
 +
"description": "The link label",
 +
"example": "Edit this page",
 +
"type": "string",
 +
"default": "Edit"
 +
},
 +
"section": {
 +
"label": "Section",
 +
"description": "The section to edit; 0 for the top section; new for a new section",
 +
"example": "0",
 +
"type": "string",
 +
"default": "None (whole page gets edited)"
 +
},
 +
"editintro": {
 +
"label": "Edit Intro",
 +
"description": "Content that will be rendered above the edit box",
 +
"example": "Template:Disambig editintro"
 +
},
 +
"preload": {
 +
"label": "Preload",
 +
"description": "Content to preload in the edit form when creating a new page or section"
 +
},
 +
"preloadtitle": {
 +
"label": "Preload title",
 +
"description": "If making a new section, preload text into the title box"
 +
},
 +
                "tooltip": {
 +
                        "label": "Tooltip",
 +
                        "description": "Text to display on mouseover",
 +
                        "default": "Page or section name",
 +
                        "type": "string"
 +
                }
 +
},
 +
"description": "Displays a link to edit a page.",
 +
"paramOrder": [
 +
"1",
 +
"2",
 +
"section",
 +
"editintro",
 +
"preload",
 +
"preloadtitle",
 +
                "tooltip"
 +
]
 +
}
 +
</templatedata>
 +
 
 +
== Comparison ==
 +
{{edit templates}}
 +
 
 +
== See also ==
 +
* {{tl|Navbox}}
 +
 
 +
<includeonly>{{sandbox other||
 +
<!-- Add categories below this line, and interwikis at Wikidata -->
 +
[[Category:Internal link maintenance templates]]
 +
[[Category:Internal link templates]]
 +
}}</includeonly>

Latest revision as of 20:38, 4 January 2021

It provides a clickable link to edit a page, or a section of the page.

Usage

{{Edit
|1=
|2=
|section=
|editintro=
|preload=
|preloadtitle=
|tooltip=
}}
  • 1: the page to edit. If omitted, it will be the current page.
  • 2: the label text of the edit link. If omitted, it is "edit" by default.
  • section: the section to edit, in which 0 for the top (i.e. lead section), 1 for the first (sub-)section, and new for adding a new section.
  • editintro: the content of a page/template that will be transcluded above the edit box when you edit the page. Usually used to load template messages.
  • preload: the content of a page/template that will be preloaded into the text area of the edit form. It works only if the page to be edited does not exist.
  • preloadtitle: if making a new section (i.e. |section=new), the title to be preloaded into the title box of the edit form.
  • tooltip: the text to display when you hover over the link.

Notes:

  • All parameters are optional.
  • The parameter names must be in lowercase or they will fail.

Examples

Code Output Notes
{{edit}} edit Edit current page
{{edit| |edit template doc}} edit template doc
{{edit|1=Infobox foo|2=E}} E
{{edit|2=edit template doc}} edit template doc
{{edit|friendship}} edit Edit the article friendship
{{edit|friendship|section=3}} edit Edit the third order of a (sub-)section of the article friendship, which is 1.2 Adolescence as of 10 Jan 2020
{{edit|Draft:Sandbox|editintro=Template:Disambig editintro}} edit Load {{Disambig editintro}} when you edit
{{edit|Template:Some new template|preload=Template:Documentation/preload}} edit Preload the whoole content of {{Documentation/preload}} when you create a new template
{{edit|Wikipedia talk:Sandbox|section=new||preloadtitle=Custom title of the new section}} [1] Create a new section of a custom title
{{edit|2=link with tooltip|tooltip=This is a tooltip}} edit Hover over the link to see the tooltip

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Edit

Displays a link to edit a page.

Template parameters

ParameterDescriptionTypeStatus
Page1

The page to edit

Default
The current page
Example
Example
Pagesuggested
Label2

The link label

Default
Edit
Example
Edit this page
Stringoptional
Sectionsection

The section to edit; 0 for the top section; new for a new section

Default
None (whole page gets edited)
Example
0
Stringoptional
Edit Introeditintro

Content that will be rendered above the edit box

Example
Template:Disambig editintro
Unknownoptional
Preloadpreload

Content to preload in the edit form when creating a new page or section

Unknownoptional
Preload titlepreloadtitle

If making a new section, preload text into the title box

Unknownoptional
Tooltiptooltip

Text to display on mouseover

Default
Page or section name
Stringoptional

Comparison

[] Compare different edit templates:
  • {{Ed}} —– plain-style edit link surrounded by <small> tags, specifically for templates only
  • {{Ed right}} —– plain-style edit link surrounded by <small> tags and aligned to right of page, specifically for templates only
  • {{Edit}} —– plain-style edit link, applicable to all Wikipedia namespaces
  • {{Edit section}} —– edit link surrounded by <div> tags by default which can specify which section to edit on a page, applicable to all Wikipedia namespaces
  • {{Edit sup}} —– plain-style edit link surrounded by <sup> tags, applicable to all Wikipedia namespaces
  • {{Edit sub}} —– plain-style edit link surrounded by <sub> tags, applicable to all Wikipedia namespaces
  • {{Vedit}} —– plain-style edit link which edit with the Wikipedia:VisualEditor, applicable to all Wikipedia namespaces

Templates with view, talk and edit links:

  • {{Navbar}} —– navigation bar with configurable caption and view·talk·edit links, specifically for templates only
  • {{View}} —– navbar-style view·talk·edit links, specifically for templates only
  • {{VTE}} & {{V}} —– navbar-style V·T·E links (i.e. view·talk·edit links in short forms), specifically for templates only

See also