Anonymous

TOUD:Using the TOUD Wiki: Difference between revisions

From Time of Unparalleled Darkness Wiki
(Add Syntax Highlighting section)
(→‎Syntax Highlighting: Add note about highlighting language, and link to the extension page for the full list of what's supported.)
Line 26: Line 26:


== Syntax Highlighting ==
== Syntax Highlighting ==
For example,
For example:
</translate>


<syntaxhighlight lang="python" line>
<syntaxhighlight lang="python" line>
Line 52: Line 51:
  pass
  pass
  <nowiki></syntaxhighlight></nowiki>
  <nowiki></syntaxhighlight></nowiki>
NWScript highlighting is generally best under C++, but a full list of supported languages is available on the [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight extension page].

Revision as of 14:43, 13 November 2025

Hi! Thanks for wanting to participate in the Time of Unparalleled Darkness wiki! This page provides documentation on how to use the wiki in terms of creating and editing pages, and specific instructions in how to use the special extensions our wiki has.

Changing the title, description, and keywords for a page

When you enter the following in a wiki page:

<seo title="word1,word2" metakeywords="word3,word4" metadescription="word5,word6" google-site-verification="123456789-abfd123456" />

...or the shorter...

<seo title="word1,word2" metak="word3,word4" metad="word5,word6" google-site-verification="123456789-abfd123456" />

...these words are added to the HTML title and meta headers. This makes SEO (search engine optimization) with MediaWiki easier.

For example, the above would become:

<title>word1,word2 - Wiki Name</title>         (the string "word1,word2" replaces page title)
<meta name="keywords" content="word3,word4" />
<meta name="description" content="word5,word6" />
<meta google-site-verification="123456789-abfd123456" />

Syntax Highlighting

For example:

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass

is the result of the following wikitext markup:

<syntaxhighlight lang="python" line>
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
</syntaxhighlight>

NWScript highlighting is generally best under C++, but a full list of supported languages is available on the extension page.