DJBWiki:Tutorial (Formatting): Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (Tutorial 3)
 
(import from google cache)
Line 1: Line 1:
{{Help contents back}}
<table style="background:transparent"><tr>
{{Template:TabsTop}}
<td> [[Help:Contents|<img alt="" src="/code/images/thumb/8/8e/1leftarrow.png/16px-1leftarrow.png" width="16" height="16" border="0">]]
{{Template:Tab2|[[DJBWiki:Tutorial|Front&nbsp;page]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Editing)|Editing]]}}
<td> <big>[[Help:Contents]]</big>
{{Template:Tab1|[[DJBWiki:Tutorial (Formatting)|Formatting]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Wiki links)|Wiki&nbsp;links]]}}
</tr></table>
{{Template:Tab2|[[DJBWiki:Tutorial (External links)|External&nbsp;links]]}}
<table style="text-align:center; padding: 0" width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
{{Template:Tab2|[[DJBWiki:Tutorial (Talk pages)|Talk&nbsp;pages]]}}
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial|Front page]]</div>
{{Template:Tab2|[[DJBWiki:Tutorial (Keep in mind)|Keep&nbsp;in&nbsp;mind]]}}
</td>
{{Template:Tab2|[[DJBWiki:Tutorial (Registration)|Registration]]}}
<td style="border-bottom:2px solid #236066" width="3"> 
{{Template:Tab2|[[DJBWiki:Tutorial (Wrap-up and more info)|Wrap-up]]}}
</td>
{{Template:TabsBottom}}
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Editing)|Editing]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td style="padding:0; background-color: #236066; line-height:0.95em; font-weight:bold;" valign="top" width="20"> <span class="content-bg rtop" style="background: #000000"><span class="r1" style="background: #236066"></span><span class="r2" style="background: #236066"></span><span class="r3" style="background: #236066"></span><span class="r4" style="background: #236066"></span></span> <div style="padding: 0.5em">[[Formatting]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3">  
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Wiki links)|Wiki links]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (External links)|External links]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Talk pages)|Talk pages]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Keep in mind)|Keep in mind]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Registration)|Registration]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td valign="top" style="border-bottom:2px solid #236066; background-color:#4d4e52; font-size:90%; line-height:0.95em; margin: 0; padding: 0" width="20"> <span class="content-bg rtop" style="background: #236066"><span class="r1" style="background: #4d4e52"></span><span class="r2" style="background: #4d4e52"></span><span class="r3" style="background: #4d4e52"></span><span class="r4" style="background: #4d4e52"></span></span> <div style="padding: 0.5em">[[DJBWiki:Tutorial (Wrap-up and more info)|Wrap-up]]</div>
</td>
<td style="border-bottom:2px solid #236066" width="3"> 
</td>
<td style="border-bottom:2px solid #236066" width="3000">  
</td>
</tr></table>
<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.
__NOTOC__
 
==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>):


{| style="border:1px solid #000; text-align:left; background:#236066"
<table style="border:1px solid #000; text-align:left; background:#236066">
|-<!--COLUMN HEADINGS-->
<tr>
| style="background: #111; padding: 0.3em; text-align:center;"|'''You type'''
<td style="background: #111; padding: 0.3em; text-align:center;">'''You type'''
| width="25%" style="background: #111; padding: 0.3em; text-align:center;"|'''You get'''
</td>
|-<!--1ST ROW 1ST COLUMN-->
<td width="25%" style="background: #111; padding: 0.3em; text-align:center;">'''You get'''
|<!--2ND COLUMN-->
</td>
<tt><nowiki>''italic''</nowiki></tt>
</tr>
|<!--3RD COLUMN-->
<tr>
<td>
 
<tt>''italic''</tt>
 
</td>
<td>
''italic''
''italic''
|-<!--HORIZONTAL LINE-->
 
|colspan="3" style="border-top:1px solid #D8E9FC;"|
</td>
|-<!--2ND ROW 1ST COLUMN-->
</tr>
|
<tr><td colspan="3" style="border-top:1px solid #D8E9FC;">
<tt><nowiki>'''bold'''</nowiki></tt>
</td></tr>
|
<tr>
<td>
 
<tt>'''bold'''</tt>
 
</td>
<td>
'''bold'''
'''bold'''
|}


==Headings and subheadings==
</td>
</tr>
</table>
== 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">
<tr>
<td style="background: #111; padding: 0.3em; text-align:center;">'''You type'''
</td>
<td width="25%" style="background: #111; padding: 0.3em; text-align:center;">'''You get'''
</td>
</tr>
<tr>
<td>


{| style="border:1px solid #000; text-align:left; background:#236066"
<tt>==Heading==</tt>
|-<!--COLUMN HEADINGS-->
| style="background: #111; padding: 0.3em; text-align:center;"|'''You type'''
| width="25%" style="background: #111; padding: 0.3em; text-align:center;"|'''You get'''
|-
|
<tt><nowiki>==Heading==</nowiki></tt><br /><br />
<tt><nowiki>===Subheading===</nowiki></tt><br />
|
==Heading==
===Subheading===
|}


If an article has at least four headings, a table of contents will automatically be generated. Try creating a heading on your [[Special:Mypage|User page]]. It will be added automatically to the table of contents for the page, assuming three others already exist.
<tt>===Subheading===</tt>


==Formatting conventions==
</td>
<td>


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:
==  Heading  ==


:'''Anshar Kahn Tarentae''' is a [[Krath]] [[Dark Jedi Master|Master]].
===  Subheading  ===
</td>
</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.  


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 [[starwars:Bothan Assault Cruiser|Bothan Assault Cruiser]].
==  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:


<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:
<dl><dd>The '''''Doomsday''''' is a [http://starwars.wikia.com/wiki/Bothan_Assault_Cruiser Bothan Assault Cruiser].
</dd></dl>
<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>
</div>
</div>
</div>
[[Category:DJB Tutorial]]
[[Category:DJB Tutorial]]

Revision as of 06:12, 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.