User:Gwideman/Editing notes

From RAD Studio
Jump to: navigation, search

Wiki editing

Multiple wikis

(From Kris Houser) We have three wikis, and inter-wiki links require a prefix. The Help:Editing page exists on the topics wiki, so to link there from one of the two other wikis requires a prefix in the link, like this:

[[rad_en:Help:Editing|Help:Editing]]

The wikis and their respective prefixes are:
===============================
Topics           rad_en
Libraries        lib_en
Code Examples    samp_en

Uploading an image

(From Kris Houser) Just enter this in a page:

    [[image:imagename.jpg]]  (bmp and png also work)
or:
    [[file:imagename.jpg]]
  • Save the page
  • Click the red link.
  • On the Upload File page, enter the file name or browse to the file.
  • Click Upload.

One pointer -- if you need to upload a new version of an image, I recommend actually changing the name of the file in the wiki page (and also delete the original, unwanted image from the wiki -- double-click the image). I do this renaming so that I can see the actual new image in place immediately . Otherwise, due to caching, the original image will continue to appear on the wiki page (even after being deleted) for some unknown amount of time. I just like to be sure. But presumably, one can just upload a new version of the image, and trust to mediawiki to eventually display the correct version.

Test image

Image:

Testimage.png

After image

Deleting a page

  • There appears no way to delete a page unless logged in as admin. Makes sense for community pages, but applies to user/xxx pages also. Therefore -- don't create subsidiary pages willy nilly.
  • Possible workaround would be to move unwanted user/xxx page to a new name or location, say [user]/Deleted/OldPage001. Unfortunately, though the page does indeed get moved, the move operation leaves a redirect from the original name/location. So this does not improved tidiness.
  • Apparently Template:Delete is a way to signal an admin to delete a page. However, that template doesn't seem to be installed on this wiki.

Overstrike

Does mediawiki del tag work?

In the following paragraph, is the word "deleted" marked with strikethough?

Here is the word deleted to test strikethrough.

Code formatting samples

  • Start a line with a space
  • pre gt/lt brackets
    • style options
  • source gt/lt brackets
    • language options, e.g.: lang=delphi
  • nowiki: this doesn't set monospace, it merely disables interpretation of wiki markup

Space

destructor TNewObject.Destroy;
begin
  { Show a message whenever an object is destroyed. }
  MessageDlg('Object "' + FName + '" was destroyed!', mtInformation, [mbOK], 0);
  inherited;
end;

pre

destructor TNewObject.Destroy;
begin
  { Show a message whenever an object is destroyed. }
  MessageDlg('Object "' + FName + '" was destroyed!', mtInformation, [mbOK], 0);
  inherited;
end;


source

destructor TNewObject.Destroy;
begin
  { Show a message whenever an object is destroyed. }
  MessageDlg('Object "' + FName + '" was destroyed!', mtInformation, [mbOK], 0);
  inherited;
end;