Difference between revisions of "Template:EditOptions/doc"

From blackwiki
Jump to navigation Jump to search
imported>Lam-ang
m (extra div to fix layout of transcluded doc)
imported>John of Reading
(Added the "summary" parameter)
Line 9: 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>}}
<div>{{EditOptions|align=right|width=50em|font-size=80%}}
+
<div>{{EditOptions|align=right|width=50em|font-size=80%|summary=/* Later life */ Added references}}
  
 
<includeonly>
 
<includeonly>

Revision as of 08:16, 4 February 2017

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