Template:EditOptions: Difference between revisions
(Undid revision 1030699688 by Trialpears (talk) sorry we want clickable button to generate a non-clickable button of course) |
imported>MJL (use {{clickable button 2}}) |
||
(One intermediate revision by one other user not shown) | |||
Line 12: | Line 12: | ||
<span style="font-size: 115%">☐</span> {{MediaWiki:minoredit}} <span style="font-size: 115%">☑</span> [[Help:watchlist|{{MediaWiki:watchthis}}]] | <span style="font-size: 115%">☐</span> {{MediaWiki:minoredit}} <span style="font-size: 115%">☑</span> [[Help:watchlist|{{MediaWiki:watchthis}}]] | ||
<div style="font-size: 90%">{{MediaWiki:Wikimedia-copyrightwarning}}</div> | <div style="font-size: 90%">{{MediaWiki:Wikimedia-copyrightwarning}}</div> | ||
{{Clickable button|{{MediaWiki:Publishchanges}}| | {{Clickable button 2|{{MediaWiki:Publishchanges}}|style=font-weight:{{#ifeq:{{{boldsave|yes}}}|yes|bold|normal}}|color=blue|link=no}} {{Clickable button 2|Help:show preview|{{MediaWiki:showpreview}}}} {{Clickable button 2|Help:Diff|{{MediaWiki:showdiff}}}} <span style="position:relative; bottom:-2px;">{{font color | #d33 | '''Cancel''' }}</span> | ||
{{#if: {{{caption|}}}|<div>{{{caption}}}</div>}}</div><noinclude> | {{#if: {{{caption|}}}|<div>{{{caption}}}</div>}}</div><noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 19:19, 27 March 2022
Edit summary (Briefly describe your changes)
☐ This is a minor edit ☑ Watch this page
By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
This template uses HTML to replicate the edit options that are displayed below the edit window.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Alignment | align | Set the position of the quote box on the page—left, right, center or none
| Unknown | optional |
Text size | font-size | Set the font size in em or as a percentage
| String | optional |
Box width | width | Set how wide the quote box to be in em or as a percentage
| String | optional |
Style | style | no description | Unknown | deprecated |
Edit summary | summary | Note to show in the 'edit summary' text box. | Content | optional |
Boldsave | boldsave | no description | Unknown | deprecated |
Caption | caption | Text to show at the bottom of the box | Content | optional |
NB: MediaWiki interface pages are transcluded so the template is always current.
Examples
Markup | Renders as |
---|---|
{{ EditOptions }} |
Edit summary (Briefly describe your changes) ☐ This is a minor edit ☑ Watch this page By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license. Cancel |
Markup | Renders as |
---|---|
{{ EditOptions | align = center | width = 35em | font-size = 105% | summary = /* Later life */ Added references | caption = Click SHOW PREVIEW to check your work! }} |
Edit summary (Briefly describe your changes) /* Later life */ Added references
☐ This is a minor edit ☑ Watch this page By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license. Cancel Click SHOW PREVIEW to check your work! |