Difference between revisions of "Template:EditOptions/doc"

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
imported>Certes
m (Closing <div> tag)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{notice|The editing interface is being updated. When it has stabilized, this template will be updated to match.}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
  
 
== Usage ==
 
== Usage ==
Line 11: Line 9:
 
* '''width''': The width of the quote box in % or em. Defaults to 50em.
 
* '''width''': The width of the quote box in % or em. Defaults to 50em.
 
* '''caption''': Caption
 
* '''caption''': Caption
 +
* '''summary''': Text to appear within the edit summary box
  
 
== Examples ==  
 
== Examples ==  
{{pre2|<nowiki>{{EditOptions|align=right|width=50em|font-size=80%}}</nowiki>}}
+
{{pre2|<nowiki>{{EditOptions|align=right|width=50em|font-size=80%|summary=/* Later life */ Added references}}</nowiki>}}
{{EditOptions|align=right|width=50em|font-size=80%}}
+
<div>{{EditOptions|align=right|width=50em|font-size=80%|summary=/* Later life */ Added references}}</div>
 
 
== See also ==
 
  
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
[[tr:Şablon:Düzenleme işlevleri]]
 
[[fa:الگو:گزینه‌های ویرایش]]
 
  
 
</includeonly>
 
</includeonly>

Latest revision as of 12:51, 18 March 2018

Usage

This template uses HTML to replicate the edit options that are displayed below the edit window. MediaWiki interface pages are transcluded so that the template is always current.

Options:

  • font-size: Set to the desired size in % or em.
  • align: Alignment of the quote box on the page- left/right/center/none. Defaults to none.
  • width: The width of the quote box in % or em. Defaults to 50em.
  • caption: Caption
  • summary: Text to appear within the edit summary box

Examples

Template:Pre2

Summary:

/* Later life */ Added references

This is a minor edit Watch this page

Publish changes Show preview Show changes Cancel