To request editing rights on the Wiki, click here.

Wikitext - Lesson Four

From FamilySearch Wiki
Jump to navigation Jump to search

Lesson One > Lesson Two > Lesson Three > Lesson Four

Elements

This is the HTML code

FamilySearch Wiki
Attributes
Attributes go inside Element tags


Templates[edit | edit source]

Something you will see often in articles are templates.

  • Templates are basically boxes of information or links that you want to be able to place on many pages. This cuts down on typing code when all you have to do is install a short code for the template you want to place.
  • If you look in Wikitext they are usually enclosed in double curly brackets like so: {{Name of Template}}
  • By retyping the template code you can reinstall it in another place on the page without having to retype all the information in it.
  • It is a very useful tool.
  • They are created just like a regular article but you save them with Template:Name of Article.
  • You have to put the words: Template: before the name you want for the article.
  • And to place the template you just type: {{Name of Template}}.
  • It will show on the page where you typed the code.
  • If you want to move it, just retype it somewhere else on the page.
  • Nearly all articles have templates on them. To see a list click Edit This Page and go to the very bottom of the page for a list. You can click on them to see how they are coded.

Sidebars[edit | edit source]

  • Sidebars are templates.
  • They are usually placed on one side or other in an article.
  • Left sidebar above along with the sidebars on the right are examples.
  • They are created just like templates.

Breadcrumbs[edit | edit source]

Breadcrumbs are trails at the top of a page which show the patron the main topic from where the article came from.

  • They are basically internal links separated by an arrows.
  • Here is the coding for the breadcrumb at the top of this lesson:

[[HTML and Wikitext - Lesson One| Lesson 1]] > [[HTML and Wikitext - Lesson Two|Lesson 2]] > [[HTML and Wikitext - Lesson Three|Lesson 3]] > [[HTML and Wikitext - Lesson Four|Lesson 4]] > [[HTML and Wikitext - Lesson Five|Lesson 5]] > [[{{PAGENAME}}]]


  • Notice the a > was used to separate each internal link. There are some custom arrows in the image data base you can use as well.
  • If you are wondering about the [[{{PAGENAME}}]], it is a small template which automatically puts the name of the article in the spot this template is embedded which in this case is in the breadcrumb at the top of the article in black font. It saves a little typing and also in making a mistake in typing if it is a long title.
  • For more information on breadcrumbs see: Breadcrumb Trails.

References[edit | edit source]

References are nothing more than footnotes.

  • The coding <ref>Reference</ref> is installed just after the word you want to put a footnote on like so:

Who said; "No other success can compansate for failure in the home."<ref>Quoted from J. E> McCullough, Home: The Savior of Civilization [1924], 42; Conference Report Apr. 1935, 116.</ref>

  • The sentence with the ref will look like so in the article:

Who said; "No other success can compansate for failure in the home."[1]

  • Notice a superscript number inside brackets.
  • Click on the number and you will be taken to the reference at the bottom of the page or wherever you have placed the footnotes.
  • At the bottom of the page or wherever you want the footnotes to appear you install this coding:

{{reflist}}.

  1. Quoted from J. E&amp;amp;gt; McCullough, Home: The Savior of Civilization [1924}, 42; Conference Report Apr. 1935, 116.

Categories[edit | edit source]

  • Every article needs to be placed into a category.
  • The coding is

[[Category:Name of category]]

Bold and Italics[edit | edit source]

  • To make words bold.
  • Install three apostrophes before and after the word or words to be embolden.

'''bold'''

  • To make words italics
  • Install two apostrophes before and after the word or words to be italics.
  • ''italicized word''