DJBWiki:Tutorial (Formatting): Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
(import from google cache)
(import from google cache)
Line 47: Line 47:
<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  ==
The most commonly used wiki tags are '''bold''' and ''italics''. '''Bolding''' and ''italicizing'' are done by surrounding a word or phrase with multiple apostrophes (<tt>'</tt>):
The most commonly used wiki tags are '''bold''' and ''italics''. '''Bolding''' and ''italicizing'' are done by surrounding a word or phrase with multiple apostrophes (<tt>'</tt>):


<table style="border:1px solid #000; text-align:left; background:#236066">
<table style="border:1px solid #000; text-align:left; background:#236066">
Line 63: Line 65:


<tt>''italic''</tt>
<tt>''italic''</tt>


</td>
</td>
<td>
<td>
''italic''
''italic''


</td>
</td>
Line 76: Line 80:


<tt>'''bold'''</tt>
<tt>'''bold'''</tt>


</td>
</td>
<td>
<td>
'''bold'''
'''bold'''


</td>
</td>
Line 86: Line 92:
==  Headings and subheadings  ==
==  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 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:
Headings can be created like this:


<table style="border:1px solid #000; text-align:left; background:#236066">
<table style="border:1px solid #000; text-align:left; background:#236066">
Line 99: Line 107:


<tt>==Heading==</tt>
<tt>==Heading==</tt>


<tt>===Subheading===</tt>
<tt>===Subheading===</tt>


</td>
</td>
Line 111: Line 123:
</tr>
</tr>
</table>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.  
</table>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  ==
==  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:
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><dd>'''Anshar Kahn Tarentae''' is a [[Krath]] [[Dark Jedi Master|Master]].
</dd></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:
</dd></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:


<dl><dd>The '''''Doomsday''''' is a [http://starwars.wikia.com/wiki/Bothan_Assault_Cruiser Bothan Assault Cruiser].  
<dl><dd>The '''''Doomsday''''' is a [http://starwars.wikia.com/wiki/Bothan_Assault_Cruiser Bothan Assault Cruiser].  

Revision as of 06:36, 23 May 2011

<img alt="" src="/code/images/thumb/8/8e/1leftarrow.png/16px-1leftarrow.png" width="16" height="16" border="0"> 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.