Difference between revisions of "wikitext"

From GeneWeb
Jump to navigation Jump to search
(→‎Tags of note: Title change, full explanation (tracking french))
Line 106: Line 106:
  
 
The page must have a [[#title of the page|title]] tag and the tags definitions must follow immediately the title tag.
 
The page must have a [[#title of the page|title]] tag and the tags definitions must follow immediately the title tag.
The tool [[Man#Indexer les notes diverses (update_nldb)|{{c|update_nldb}}]] updates the cross references between notes and pages (in which notes and pages a particular individual is mentionned).
+
The tool [[Man|{{c|update_nldb}}]] updates the cross references between notes and pages (in which notes and pages a particular individual is mentionned?). This information is available on the individual's page under the link {{c|linked pages}} (m=LINKED;p=firstname;n=lastname).
  
 
The example above will produce the following result on the page for Bernard Test (note that in most cases, a single tag will appear in a page):
 
The example above will produce the following result on the page for Bernard Test (note that in most cases, a single tag will appear in a page):

Revision as of 07:39, 1 November 2016

150px-Geographylogo svg.png Language:   English • français

GeneWeb uses Wikitext, a markup language that offers a simplified alternative to HTML and is used to write pages in wiki websites such as Wikipedia.

A toolbar around text zones allow to easily add wikitext:

Barre wiki.png

Title of the page

Add the “TITLE=” tag before the text.

TITLE=…

Table of contents

Headings and subheadings are a way to improve the organization of an article.

= Heading =
== Subheading ==

If an article has at least four headings, a table of contents will automatically be generated. Some options are available:

  • hide the table of contents (TOC):
__NOTOC__
  • to place a table of contents at a specific position (overriding ):
__TOC__
  • to place a short table of contents:
__SHORT_TOC__

Text formatting

You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like this:

 ''italic''
 '''bold'''
 '''''bold and italic'''''

For GeneWeb underlining style, green bold by default, use curly brackets: {texte}

To indent text, use a colon at the beginning of the line, as much as needed:

:1st indent
::2nd indent

To add a forced line-break for a new paragraph, leave an empty line or start line with HTML tag <br />.

Bullet list

To create a bullet list simply start each line with an asterisk (*):

* one
* two
* three
** three and one-third
** three and two-thirds

Internal links

You can create links to a page (text+HTML+WikiText) , by putting its name in triple square brackets, like this:

[[[Target_page]]]


If you want to display some other text for the link, you can do so by adding / followed by the alternative name. For example:

[[[Target_page/display text]]]


If the page doesn't exist, the link appears in red. Clicking on the link, you'll reach an empty page you can fill.

One can organize linked pages into folders by prefixing the filename with a folder name as in:

[[[Folder:linked_page/text]]]

To insert a link to an individual, use the following syntax:

[[first_name/surname/number/display text]]

For example:

[[Maria/Baxter/0/Maria Baxter]]

Backlink to a page

When a page contain links to individuals, GeneWeb may add a link back to this page at several locations on the individual page:

  • HEAD=: below the name;
  • OCCU=: below the occupation;
  • DEATH=: at the end the date and place of death, between parenthesis;
  • BIBLIO=: after sources, with a bibliography sub-title;
  • BNOTE=: at the beginning of notes;
  • NOTE=: at the end of notes;

The link to the page appears under the text comprised between ; and ]] in the individual's link. In this text, the character *, if present, is replaced by the content of the tag (Warning, white space before and after the * are taken into account).

Tag syntax is the same as that of the title of the page:

 TITLE=Test2
 HEAD=baron d'Empire
 OCCU=maire de Thionville
 DEATH=raison inconnue
 BIBLIO=documentation personnelle
 BNOTE=remarque de début de note
 NOTE=remarque de fin de note

[[Bernard/Test/Test, Bernard;* texte 1]] texte 2<br>

The page must have a title tag and the tags definitions must follow immediately the title tag. The tool update_nldb updates the cross references between notes and pages (in which notes and pages a particular individual is mentionned?). This information is available on the individual's page under the link linked pages (m=LINKED;p=firstname;n=lastname).

The example above will produce the following result on the page for Bernard Test (note that in most cases, a single tag will appear in a page):

Bernard-Test.png

Special caracters

All the characters used for syntax can be written in notes or in the forum preceded by % :

  • %' gives '.
  • %} and %{ give } and {.
  • %] and %[ give ] and [.
  • %% gives %.


GeneWeb Manual

Rembrandt Old Man Reading a Book.jpg

Use and manage genealogical databases

Technical annex