Help:Editing

From EDukeWiki
Jump to navigation Jump to search

Note that Wikipedia has a lot of formatting extensions installed that we don't have (or need).

Summary

(<nowiki> tags have been applied to the text below so that wiki markup appears literally.)

  • Links to other pages on the same wiki are formatted [[page title]]; if you have plurals something like [[gamevar]]s shows up neatly formatted; the pipe '|' character can be used to change the displayed text (the example from the first paragraph: [[palette (environment)|palette swaps]])
  • URLs can have custom text in the format [http://www.url.com link title]
  • [[Wikipedia:article]] will link to a Wikipedia article
  • Script files and code can be formatted by putting a blank space before each line. If you have an empty line in the code, add a space to it too, or the code blocks will appear separate. Some examples use the <pre></pre> tags but I discourage this because it disables wiki formatting within the code.
  • Unordered lists, useful for sets of links, can be made by prepending each line with an asterisk '*'. (Ordered lists use '#'.) Multiple list symbols can be used for sublevels and they can be mixed and matched.
  • Avoid using * on lines of text that don't need it, such as normal text or section headings.
  • In most cases the "----" can be better served by a level two ==section heading==, and it is always made redundant by one right below it.