18,567
edits
Changes
ADVERTISEMENT
From Diablo Wiki
no edit summary
==Wiki Code==
Wikis use their own syntax (markup) for creating formatting text formatting. Below is a list of common syntax you can use to format your pages. A more extensive guide to wiki editing can be found [http://meta.wikimedia.org/wiki/Help:Editing on Wikimedia's site].
===Text Formatting===
===Section HeadersText Layout===To keep pages readable and organized, separate the text into sections. Section headers do this nicely, and are automatically added to the table of contents. Headers should be hierarchical and descending, as needed. There are several levels of headers, and the text so offset by equals signs will display in descending point size and font colour.* Heading 1 <nowiki>==Your heading==</nowiki><br>* Heading 2 <nowiki>===Your heading===</nowiki><br>* Heading 3 <nowiki>====Your heading====</nowiki><br>
{| width="70%"! What you see! What you type|-| :Indented text| <nowiki>: Indented text.</nowiki>|-| <center>Centered text</center>| <nowiki><center>Centered text</center></nowiki>|-| <blockquote>The single equal sign is ''not'blockquote' used in articles'' command produces block quotations, typically by surrounding them with whitespace. It</blockquote>| <nowiki><blockquote>The '''s used for the formatting for the title of pages. Use the double equal signs for the first heading and replace any heading hierarchies on article pages that might use the single oneblockquote''' command produces block quotations, typically by surrounding them with whitespace.</blockquote></nowiki>|}
===Footers (Sources/Citations)===
{| ! width="20%" | What you're doing! width="30%" | What you see! width=="50%" | What you type|-| Assigning reference number| High proportion of women play with their romantic partner <ref>[http://news.bbc.co.uk/1/hi/technology/7796482.stm The virtual battle of the sexes] - BBC 23/12/08</ref>.| High proportion of women play with their romantic partner <nowiki><ref>[http://news.bbc.co.uk/1/hi/technology/7796482.stm The Table virtual battle of Contents Box===the sexes] - BBC 23/12/08</ref>.</nowiki> |-| Assigning reference id| Used to reference a single source multiple times in the same article <ref name=incgamers>[http://www.incgamers.com/Columns/59/2010-year-of-the-sandbox 2010: Year Of The Sandbox] - IncGamers 19/02/10</ref>.Wiki format is pretty clever and can automatically create TOC boxes like you see at | Used to reference a single source multiple times in the top same article <nowiki><ref name=incgamers>[http://www.incgamers.com/Columns/59/2010-year-of -the page-sandbox 2010: Year Of The Sandbox] - IncGamers 19/02/10</ref></nowiki>. A content box is automatically |-| Reference a reference id already created when you use 4 or more headlines, which are formatted as explained above| 2010 promises to be very different from 2009. All headlines will show up in the TOC, which is <ref name="incgamers"/>| 2010 promises to be very handydifferent from 2009.<nowiki><ref name="incgamers"/></nowiki>|}
Add <nowiki><references/></nowiki> where you want the list of citations to appear (usually at the foot of the page), and the list will appear thus:
===The Table of Contents Box===
Wiki format automatically creates ToC boxes like you see at the top of this page, after 4 headings have been created. If you have only 3 headlines but need a ToC box then type <nowiki>__toc__</nowiki>.
{| width==Creating Links=="70%"! What you see! What you type|-|* Item One* Item Two** Item Two and a half*** Item two and three quarters* Item Three| <nowiki>*</nowiki> Item One<br><nowiki>*</nowiki> Item Two<br>Creating links is very simple <nowiki>**</nowiki> Item Two and there are a half<br><nowiki>***</nowiki> Item two methods to do soand three quarters<br><nowiki>*</nowiki> Item Three|-|# Item One# Item Two## Sub item## Sub item## Sub item# Item Three# Item Four| <nowiki>#</nowiki> Item One<br><nowiki>#</nowiki> Item Two<br><nowiki>##</nowiki> Sub item<br><nowiki>##</nowiki> Sub item<br><nowiki>##</nowiki> Sub item<br><nowiki>#</nowiki> Item Three<br><nowiki>#</nowiki> Item Four|-|* Female Classes**Amazon<br>Assassin<br>Sorceress* Male Classes**Barbarian<br>Druid<br>Necromancer<br>Paladin|<nowiki>*</nowiki> Female Classes<br><nowiki>**</nowiki>Amazon<nowiki><br></nowiki>Assassin<nowiki><br></nowiki>Sorceress<br><nowiki>*</nowiki> Male Classes<br><nowiki>**</nowiki>Barbarian<nowiki><br></nowiki>Druid<nowiki><br></nowiki>Necromancer<nowiki><br></nowiki>Paladin|-|; List Heading : with an external site link for outside sources and automatic indent; Bolds it : then will: list: your: items: below|<nowiki>;</nowiki> List Heading<nowiki>:</nowiki> with an internal site link for content inside the {{WikiTitle}automatic indent<br><nowiki>;</nowiki> And no bullets<nowiki>:</nowiki> then will<br><nowiki>:</nowiki> list<br><nowiki>:</nowiki> your<br><nowiki>:</nowiki> items<br><nowiki>:</nowiki> below<br>|}.
===Internal LinksSoft Returns===An internal site link use two brackets <nowiki>[[ ]]</nowiki> on either side of the title, with an optional title (if specified, separate with The wiki script ignores single returns. If you wish to create a | character). <nowiki>[[Topic|Link Title]]</nowiki>new paragraph you need to hit return twice to leave one blank line. If you add link brackets want to the same article currently shown, the link will turn '''bold''' instead list something directly underneather another line of into a link. It's also possible text then you need to modify the link title without changing the link by adding characters after the right side brackets (<nowiki>]]use </nowiki>) like this: <nowikibr>[[Topic|Link Title]]ing</nowiki>.
===Preformatted Boxes===
Aren't I dramatic!
====InterWiki Creating Links====Links between the main {{wl|[http://www.diablowiki.net/ Diablo Wiki]}} and other DiabloWikis like {{wl|[http://diablo2.diablowiki.net/ Diablo 2 Wiki]}} can use a shortcut called "[[Template:Iw|InterWiki]]". It's a [[Help:Template|template]] that makes it quick Creating links is very simple and easy to make a link across wikis. You can use it like this:<blockquote><pre>{{iw|Article_Name Article Name]}}</pre></blockquote> Will display like this: {{iw|Article_Name Article Name}} (mind you, this article does not exist). The first time the article name is written, underscores '''MUST''' be used. The second time does not need to be the exact article name as you can write it in plural or singular, or perhaps a completely different word. ====Linking to Images====Sometimes you might want to link directly to an image instead of embedding it on the page. If so there are two ways methods to do this:* Use a direct, external, link to the image urlso: [http://www.diablowiki.net/images/2/24/Jay_Wilson.jpg Image]* Use an internal wiki link to the image page: [[:Image:Jay_Wilson.jpg| Image]]The former way works exactly like any external site link (read more about that later), for the link title, URL or a little bracketed link. The latter works just like Category Links, with a ":" in front, outside sources and with the possibility to change title with a pipe ("|"). All about [[Help:Image| uploading, adding and organising]] images in the wiki. ===External Links===External links are made similarly to internal links. The difference is that it uses single brackets (<nowiki>[ ]</nowiki>) and naturally also must contain an external URL. Another difference between internal and external links is that instead of a pipe ("|") to separate the site link source with an alternative title, it uses a simple space. This naturally means that it isn't possible to link to pages that uses spaces in for content inside the URL. It's easy to distinguish external links in the wiki by the "external link icon" that appears on those links ([http://www.diii.net/ example]). There are three types of links that can be used; either a clickable URL, a clickable number in brackets, or a clickable link title. The last one work very similar to internal links. Do note that it isn't possible to add letters at the end of an external link to make it part of the link title. The entire link title needs to be within the brackets. ====Regular URL Link====Writing the following:<blockquote><pre>http://www.diii.net/</pre></blockquote>Will display like this: http://www.diii.net/ In cases where it's needed to show the whole URL, just write it out in the document, and it will automatically be parsed. ====Numbered Link====Writing the following:<blockquote><pre>[http://www.diii.net/]</pre></blockquote>Will display like this: [http://www.diii.net/] This is a numbered link that is excellent to use when sourcing other pages{{WikiTitle}}. It will be numbered from how many similar links are on a document, so the first such link is <nowiki>[1]</nowiki>, and the third one is <nowiki>[3]</nowiki>. ====Link in Title====Writing the following:<blockquote><pre>[http://www.diii.net/ Diii.net with custom title]</pre></blockquote>Will display like this: [http://www.diii.net/ Diii.net with custom title] This is naturally the most commonly used link, and is used much like the internal links.
==Images==
To insert an image, just add the following code, that you can see is very similar to other wiki links: <nowiki>[[File:filename.jpg]]</nowiki>. Make sure you don't forget to write have the correct file extension. The valid image files for {{WikiTitle}} are:
* .gif
* .jpg
* .png
Images will are automatically be justificated justified to the left side on a page, but it's easy to change this with variables, to make boxes around images and to change their size. Read more about images on the '''[[Help:Image|Image Help page]]'''.
==Categories==
* Read more about categories in the [[Help:Category|Category Help page]].
==Creating Tables==
----
<nowiki>{|</nowiki><br>
|}
The tables are automatically formatted with the site style so you '''aren't required to add any style elements''' to the tables. The only time you would really need to add an element to the table is if you want to specify a width or want to make a table that is different than the standard {{WikiTitle}} style.
As you can see the wiki code 'looks' like a table and you can expand on this and format more complex tables. It's easy enough to look at other tables as well, to get inspiration if you want to do more advanced things with it.
* [[Help:FAQ|Onsite Wiki FAQ]]
* Advanced image technique placement, making thumbnails, captions, etc can be found in Wikipedia's article on [http://en.wikipedia.org/wiki/Wikipedia:Extended_image_syntax extended image syntax].
{{Help_navbox}}