![]() The token should always be sent as the last parameter, or at least after the text parameter. One of the following values: wikitext, javascript, json, css, text tokenĪ "csrf" token retrieved from action=query&meta=tokens One of the following values: text/x-wiki, text/javascript, application/json, text/css, text/plain contentmodel If not set, just undo one revision.Ĭontent serialization format used for the input text. Undo all revisions from undo to this one. Overrides text, prependtext and appendtext. Use section=new to append a new section, rather than this parameter. Overrides text.Īdd this text to the end of the page. ![]() If set, the edit won't be done unless the hash is correct.Īdd this text to the beginning of the page. The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. One of the following values: watch, unwatch, preferences, nochange Default: preferences md5 Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch. Remove the page from the current user's watchlist. Type: boolean ( details) unwatch Deprecated. Type: boolean ( details) watch Deprecated.Īdd the page to the current user's watchlist. Throw an error if the page doesn't exist. Override any errors about the page having been deleted in the meantime.ĭon't edit the page if it exists already. Type: timestamp ( allowed formats) recreate ![]() An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. Timestamp when the editing process began, used to detect edit conflicts. Type: timestamp ( allowed formats) starttimestamp May be obtained through action=query&prop=revisions&rvprop=timestamp. Timestamp of the base revision, used to detect edit conflicts. Also section title when section=new and sectiontitle is not set. 0 for the top section, new for a new section.Įdit summary. That forces the button images sprite to show, and all is good.Title of the page to edit. And to that wiki page, add this and save it: /***** Overcome mediawiki bug whereby the WikiEdit sprite is a no-show *****/īackground-image: linear-gradient(transparent, transparent), url("/extensions/WikiEditor/modules/images/toolbar/button-sprite.svg?v=001") !important īackground-position: 0px 0px /* This gets over-ridden with inline style to move sprite into view of relevant part */ Then go to the /MediaWiki%3ACommon.css page of your wiki, which is where you can add your custom style to apply to all pages in your site. Log in to your wiki as someone with Administrator privileges (WikiSysop or whatever). But meanwhile, here's an effective workaround: Hopefully the mediawiki team will mend this soon. If you're using a browser that allows you to inspect CSS, right-click one of the invisible buttons and choose to 'inspect element', and you'll see that the background-image CSS instruction is getting overridden, so the button graphics are all a no-show. The buttons are done with a sprite (one graphic with all the buttons on it, shifted around to show the correct button at the right place). Customizing TOC edit edit source There are various ways how to customize the table of contents. For a complex way requiring the adjustment of the MediaWiki software, see Meta:Help:Section. If you click around on the tool bar, the clickable spots are all there, just the graphics for them are not showing. Headings not in TOC edit edit source There is no simple way to make a heading not appear in the table of contents. I am getting it on v1.24.2, in all browsers. To add, I have accessed the site on both normal Chrome (cleared cache) and Incognito. No error or log has been found with the console. The editor shows up when I use the default skins provided out-of-the-box by MediaWiki, however not with the custom skin I am using. I also changed skins to check if the set default has any issues. I tried playing with User Preferences, however the settings shows that my account enables the WikiEditor by default. It returned a positive, showing WikiEditor in its list of installed Extensions. Editing Articles MediaWiki articles are written not in plain text, but with wikitext, a special language for typesetting we saw briefly in. $wgDefaultUserOptions = 1 Īfterwards, I verified that WikiEditor is already installed by checking Special:Version. Require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ) Require_once( "$IP/skins/Fresh/Fresh.php" ) I have done as instructed in the MediaWiki page about WikiEditor(Extension:WikiEditor).īelow, I provided the lines I've added after the end of the default configuration in LocalSettings.php: # End of automatically generated settings. ![]() I am running MediaWiki 1.23 with a custom skin under Chrome.
0 Comments
Leave a Reply. |