مندرجات کا رخ کریں

سانچہ:Edit

آزاد دائرۃ المعارف، ویکیپیڈیا سے

ترمیم

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 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 the article دوستی
{{edit|friendship|section=3}}ترمیمEdit the third order of a (sub-)section of the article دوستی, which is Adolescence as of 10 Jan 2020
{{edit|Draft:Sandbox|editintro=Template:Disambig editintro}}ترمیمLoad {{Disambig editintro}} when you edit
{{edit|Template:Some new template|preload=Template:Documentation/preload}}ترمیم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}}Create a new section of a custom title
{{edit|2=link with tooltip|tooltip=This is a tooltip}}ترمیمHover over the link to see the tooltip

TemplateData

[ترمیم]
ذیل میں اس سانچہ کی معلومات سانچہ دستاویز درج ہے جنہیں بصری خانہ ترمیم اور دیگر آلات استعمال کرتے ہیں۔

معلومات سانچہ Edit

Displays a link to edit a page.

محددات سانچہ[انتظام TemplateData]

پیرامیٹروضاحتطرزحالت
Page1

The page to edit

طے شدہ
The current page
مثال
Example
صفحہتجویز کردہ
Label2

The link label

طے شدہ
Edit
مثال
Edit this page
اِسٹرنگاختیاری
Sectionsection

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

طے شدہ
None (whole page gets edited)
مثال
0
اِسٹرنگاختیاری
Edit introeditintro

Content that will be rendered above the edit box

مثال
Template:Disambig editintro
صفحہاختیاری
Preloadpreload

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

مثال
Template:Documentation/preload
صفحہاختیاری
Preload titlepreloadtitle

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

اِسٹرنگاختیاری
Tooltiptooltip

Text to display on mouseover

طے شدہ
Page or section name
اِسٹرنگاختیاری

Comparison

[ترمیم]
  • {{Ed}} – navbar style edit link
  • {{Ed right}} – navbar style edit link aligned to right of page
  • {{Edit}} – plain edit link
  • {{Edit section}} – edit link aligned to right of page
  • {{Navbar}} – with additional links
  • {{Vedit}} – edit with the Visual Editor