DJBWiki:Tutorial (Formatting): Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (On second thought...no TOC)
m (html works in this scenario *shrug* -14185)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__


Line 15: Line 17:
<div style="border:2px solid #236066; padding:0.5em 1em 1em 1em; border-top:none; background-color:#000; color:#fff">
<div style="border:2px solid #236066; padding:0.5em 1em 1em 1em; border-top:none; background-color:#000; color:#fff">
Formatting DJBWiki articles is a bit different from writing on a standard word processor. Instead of a strict ("what you see is what you get") approach, DJBWiki uses text codes to create particular elements of the page (e.g. headings). This "language" is known as '''Wikicode''' (or '''Wiki-markup''') and is designed for ease of editing.
Formatting DJBWiki articles is a bit different from writing on a standard word processor. Instead of a strict ("what you see is what you get") approach, DJBWiki uses text codes to create particular elements of the page (e.g. headings). This "language" is known as '''Wikicode''' (or '''Wiki-markup''') and is designed for ease of editing.


==  Bold and italics  ==
==  Bold and italics  ==
Line 31: Line 31:
<tr>
<tr>
<td>
<td>
<tt>''italic''</tt>
<tt><nowiki>''italic''</nowiki></tt>
</td>
</td>
<td>
<td>
Line 41: Line 41:
<tr>
<tr>
<td>
<td>
<tt>'''bold'''</tt>
<tt><nowiki>'''bold'''</nowiki></tt>
</td>
</td>
<td>
<td>
Line 65: Line 65:
<td>
<td>
<tt>==Heading==</tt>
<tt>==Heading==</tt>
<br/><br/>
<tt>===Subheading===</tt>
<tt>===Subheading===</tt>
</td>
</td>
Line 76: Line 77:
If an article has at least four headings, a table of contents will automatically be generated. Try creating a heading in the [[DJBWiki:Sandbox|Sandbox]]. It will be added automatically to the table of contents for the page, assuming three others already exist.  
If an article has at least four headings, a table of contents will automatically be generated. Try creating a heading in the [[DJBWiki:Sandbox|Sandbox]]. It will be added automatically to the table of contents for the page, assuming three others already exist.  


==  Formatting conventions  ==
It is a DJBWiki convention to mark in '''bold''' the names of an article's subject when they are first mentioned in the article. For example, the article [[Anshar Kahn Tarentae]] begins:


==  Formatting conventions  ==
:'''Anshar Kahn Tarentae''' is a [[Krath]] [[Dark Jedi Master|Master]].
It is a DJBWiki convention to mark in '''bold''' the names of an article's subject when they are first mentioned in the article. For example, the article ''[[Anshar Kahn Tarentae]]'' begins:


<dl><dd>'''Anshar Kahn Tarentae''' is a [[Krath]] [[Dark Jedi Master|Master]]. </dl>
Another Wookieepedia convention is to ''italicize'' ship names. If the first mention of the subject of an article is also a book or movie title then '''''bold italics''''' is used. For example, the article ''[[BAC Doomsday]]'' starts:
Another Wookieepedia convention is to ''italicize'' ship names. If the first mention of the subject of an article is also a book or movie title then '''''bold italics''''' is used. For example, the article ''[[BAC Doomsday]]'' starts:


<dl><dd>The '''''Doomsday''''' is a [http://starwars.wikia.com/wiki/Bothan_Assault_Cruiser Bothan Assault Cruiser]. </dl>
:The '''''Doomsday''''' is a [[starwars:Bothan Assault Cruiser|Bothan Assault Cruiser]].
 
<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: #4d4e52; padding: .2em .6em; font-size: 130%; border:2px solid #236066;">'''Next:''' '''[[DJBWiki:Tutorial (Wiki links)|Let's learn about Wiki links]]''' <span style="font-size: larger; font-weight: bold;">→</span>
<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: #4d4e52; padding: .2em .6em; font-size: 130%; border:2px solid #236066;">'''Next:''' '''[[DJBWiki:Tutorial (Wiki links)|Let's learn about Wiki links]]''' <span style="font-size: larger; font-weight: bold;">→</span>
<div style="clear:both"></div>
<div style="clear:both"></div>

Latest revision as of 07:43, 4 September 2017



Help:Contents
                   

Formatting DJBWiki articles is a bit different from writing on a standard word processor. Instead of a strict ("what you see is what you get") approach, DJBWiki uses text codes to create particular elements of the page (e.g. headings). This "language" is known as Wikicode (or Wiki-markup) and is designed for ease of editing.

Bold and italics

The most commonly used wiki tags are bold and italics. Bolding and italicizing are done by surrounding a word or phrase with multiple apostrophes ('):


You type You get

''italic''

italic

'''bold'''

bold


Headings and subheadings

Headings and subheadings are an easy way to improve the organization of an article. If you can see two or more distinct topics being discussed, you can break up the article by inserting a heading for each section.

Headings can be created like this:

You type You get

==Heading==

===Subheading===

Heading

Subheading

If an article has at least four headings, a table of contents will automatically be generated. Try creating a heading in the Sandbox. It will be added automatically to the table of contents for the page, assuming three others already exist.

Formatting conventions

It is a DJBWiki convention to mark in bold the names of an article's subject when they are first mentioned in the article. For example, the article Anshar Kahn Tarentae begins:

Anshar Kahn Tarentae is a Krath Master.

Another Wookieepedia convention is to italicize ship names. If the first mention of the subject of an article is also a book or movie title then bold italics is used. For example, the article BAC Doomsday starts:

The Doomsday is a Bothan Assault Cruiser.