Anonymous user
Help:Editing: Difference between revisions
From The Blockheads Wiki
Adding everything (except tables)
>Abcboy (Will finish later) |
>Abcboy (Adding everything (except tables)) |
||
Line 1: | Line 1: | ||
This page contains information on how to edit pages as well as basic wikicode. If you have additional questions, please leave a message on the [http://theblockheadswiki.com/index.php?title=Help_talk:Editing&action=edit§ion=new talk page]. | |||
==Editing a page== | |||
To edit a page, click the edit link at the top of the page. To edit only one section, click edit on the section header. A box with the text of the article, as well as all the code, will be shown. You can make your changes by typing, editing, and moving around the various text. Before saving your changes, click "Show preview" underneath the edit box. It will show how the article will look with your edits in place. You can also type in an edit summary to describe the changes you made. If you made a minor edit, such as correcting the spelling of a word, you can click the "This is a minor edit" check box before saving. The checkbox labeled "Watch this page" adds the page to your watchlist so you will be notified of any changes someone else makes. Once you are ready, click "Save page" so your edits can be shown to the world. | |||
You cannot edit [[Special:ProtectedPages|protected pages]]. Those pages are generally protected because they are important enough that only admins are able to edit them. | |||
==Starting a new page== | |||
Before starting a new page, make sure to check that the article has not already been made under a different title or as a section or another article. Once you have confirmed that the article you want to create has not already been created, enter the name of the article you want to create into the search box. Make sure the title is in start case, where every word is capitalized regardless of the part of speech, to conform to guidelines that have been set. Once you have searched for it, click the red link in the sentence "'''Create the page "<span style="color:#C20;"><page name></span>" on this wiki!'''" | |||
An empty box should appear. Here, you can type the code for a new page. In most cases, the [[Template:Stub|<code><nowiki>{{</nowiki>Stub<nowiki>}}</nowiki></code>]] template should be placed on the first line of the article to indicate it could use significant future expansion by other editors. | |||
The first part of the article is the lede. Typically, it describes the topic of the page in a few sentences. The title of the page should be capitalized in the lede. An example of a lede: | |||
<blockquote>'''Vegetables''' are edible [[:Category:Food|food]] [[items]] that a [[blockhead]] can [[Farming|harvest]]. Vegetables restore a medium amount of the [[Hunger Bar|hunger bar]]. [[Flax Seed|Flax]] and [[Sunflower Seed|sunflower]] [[seed]]s similarly grow on plants.</blockquote> | |||
The remainder or an article will vary depending on the topic. Most items have the [[Template:Item Infobox|<code><nowiki>{{</nowiki>Item Infobox<nowiki>}}</nowiki></code>]] at the top of the page, for example. Generally, a new article should be similar structure to a already-existing article. | |||
Don't forget to categorize the new page. If the topic should be illustrated, consider uploading an image for the article. The new article should also be linked to, where appropriate, from other articles. Please also read the [[Help:Contents#Basic Structure of Articles|Basic Structure of Articles]] prior to creating an article. | |||
==Basic wikicode== | |||
===Formatting=== | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Text formatting | |||
|- | |||
| Italic text | |||
| <code><nowiki>''italic''</nowiki></code> | |||
| ''italic'' | |||
|- | |||
| Bold text | |||
| <code><nowiki>'''bold'''</nowiki></code> | |||
| '''bold''' | |||
|- | |||
| Bold and italic | |||
| <code><nowiki>'''''bold & italic'''''</nowiki></code> | |||
| '''''bold & italic''''' | |||
|- | |||
| Strike text | |||
| <code><nowiki><strike>strike text</strike></nowiki></code> | |||
| <strike>strike text</strike> | |||
|- | |||
| Escape wiki markup | |||
| <code><nowiki><nowiki>no ''markup''</nowiki></nowiki></code> | |||
| <nowiki>no ''markup''</nowiki> | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Section formatting | |||
|- | |||
| Heading (level 2) | |||
| <code><nowiki>==Heading text==</nowiki></code> | |||
| <div style="color: black; background: none; margin: 0; overflow: hidden; padding-top: .5em; padding-bottom: .17em; font-size: 150%; margin-bottom: .6em; border-bottom: 1px solid #aaa; page-break-after: avoid;">Heading text</div> | |||
|- | |||
| Heading (level 3) | |||
| <code><nowiki>===Heading text===</nowiki></code> | |||
| <div style="color: black; background: none; margin: 0; overflow: hidden; padding-top: .5em; padding-bottom: .17em; font-size: 132%; font-weight: bold; margin-bottom: .3em; page-break-after: avoid;">Heading text</div> | |||
|- | |||
| Heading (level 4) | |||
| <code><nowiki>====Heading text====</nowiki></code> | |||
| <div style="color: black; background: none; margin: 0; overflow: hidden; padding-top: .5em; padding-bottom: .17em; font-size: 116%; font-weight: bold; margin-bottom: .3em; page-break-after: avoid;">Heading text</div> | |||
|- | |||
| Heading (level 5) | |||
| <code><nowiki>=====Heading text=====</nowiki></code> | |||
| <div style="color: black; background: none; margin: 0; overflow: hidden; padding-top: .5em; padding-bottom: .17em; font-size: 105%; font-weight: bold; margin-bottom: .3em; page-break-after: avoid;">Heading text</div> | |||
|- | |||
| Heading (level 6) | |||
| <code><nowiki>======Heading text======</nowiki></code> | |||
| <div style="color: black; background: none; margin: 0; overflow: hidden; padding-top: .5em; padding-bottom: .17em; font-size: 75%; font-weight: bold; page-break-after: avoid;">Heading text</div> | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Simple lists | |||
|- | |||
| Bulleted list | |||
| <code><nowiki>*Some [[fruit]]</nowiki><br><nowiki>**[[Apple]]</nowiki><br><nowiki>**[[Cherry]]</nowiki><br><nowiki>**[[Mango]]</nowiki><br><nowiki>*Types of [[Vegetable|vegetables]]</nowiki><br><nowiki>**[[Carrot]]</nowiki><br><nowiki>**[[Chilli]]</nowiki><br><nowiki>**[[Corn]]</nowiki></code> | |||
| | |||
*Some [[fruit]] | |||
**[[Apple]] | |||
**[[Cherry]] | |||
**[[Mango]] | |||
*Types of [[Vegetable|vegetables]] | |||
**[[Carrot]] | |||
**[[Chilli]] | |||
**[[Corn]] | |||
|- | |||
| Numbered list | |||
| <code><nowiki>#Create an account.</nowiki><br><nowiki>#Confirm your email.</nowiki><br><nowiki>#Find a page to edit.</nowiki><br><nowiki>#Edit it.</nowiki><br><nowiki>#Preview your edit.</nowiki><br><nowiki>#Edit it again.</nowiki><br><nowiki>#Save edit.</nowiki></code> | |||
| | |||
#Create an account. | |||
#Confirm your email. | |||
#Find a page to edit. | |||
#Edit it. | |||
#Preview your edit. | |||
#Edit it again. | |||
#Save edit. | |||
|- | |||
| Indented text | |||
| <code><nowiki>:One indent</nowiki><br><nowiki>::Two indents</nowiki><br><nowiki>:::Three indents</nowiki><br><nowiki>::::Four indents</nowiki></code> | |||
| | |||
:One indent | |||
::Two indents | |||
:::Three indents | |||
::::Four indents | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Additional code | |||
|- | |||
| Comment | |||
| <code><nowiki><!--This is a comment--></nowiki><br>This is not a comment.</code> | |||
| <!--This is a comment-->This is not a comment. | |||
|} | |||
===Links=== | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Internal links | |||
|- | |||
| Internal link | |||
| <code><nowiki>[[Main Page]]</nowiki></code><br><code><nowiki>[[Help:Contents]]</nowiki></code> | |||
| [[Main Page]]<br>[[Help:Contents]] | |||
|- | |||
| Piped link | |||
| <code><nowiki>[[Main Page|different text]]</nowiki></code> | |||
| [[Main Page|different text]] | |||
|- | |||
| Pipe trick | |||
| <code><nowiki>[[Help:Contents|]]</nowiki></code><br><code><nowiki>[[Fish (creature)|]]</nowiki></code><br> | |||
| [[Help:Contents|Contents]]<br>[[Fish (creature)|Fish]] | |||
|- | |||
| Word-ending links | |||
| <code><nowiki>[[Shark]]s</nowiki></code><br><code><nowiki>[[Sleep]]ing</nowiki></code> | |||
| [[Shark]]s<br>[[Sleep]]ing | |||
|- | |||
| rowspan="2" | Redirects | |||
| <code><nowiki>#REDIRECT [[Main Page]]</nowiki></code> | |||
| #REDIRECT [[Main Page]] | |||
|- | |||
| colspan="2" | Note: A page with '''only''' this text will redirect to you directly to the linked page. | |||
|- | |||
| Link to a section | |||
| <code><nowiki>[[#See also]]</nowiki></code> | |||
| [[#See also]] | |||
|- | |||
| Link to a section with different text | |||
| <code><nowiki>[[#See also|different text]]</nowiki></code> | |||
| [[#See also|different text]] | |||
|- | |||
| Link to a section on another page | |||
| <code><nowiki>[[Getting Started#Blockhead Creation]]</nowiki></code> | |||
| [[Getting Started#Blockhead Creation]] | |||
|- | |||
| Link to a category | |||
| <code><nowiki>[[:Category:Guide]]</nowiki></code><br><code><nowiki>[[:Category:Food|Food]]</nowiki></code> | |||
| [[:Category:Guide]]<br>[[:Category:Food|Food]] | |||
|- | |||
| Link to a image | |||
| <code><nowiki>[[:File:Blockhead-icon.png]]</nowiki></code> | |||
| [[:File:Blockhead-icon.png]] | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | External links | |||
|- | |||
| External link | |||
| <code><nowiki>http://theblockheads.net</nowiki></code> | |||
| http://theblockheads.net | |||
|- | |||
| External link with different label | |||
| <code><nowiki>[http://theblockheads.net The Blockheads website]</nowiki></code> | |||
| [http://theblockheads.net The Blockheads website] | |||
|- | |||
| Numbered external link | |||
| <code><nowiki>[http://theblockheads.net]</nowiki></code><br><code><nowiki>[http://theblockheads.net/forum/]</nowiki></code> | |||
| [http://theblockheads.net]<br>[http://theblockheads.net/forum/] | |||
|- | |||
| Avoiding external links | |||
| <code><nowiki><nowiki>http://theblockheads.net</nowiki></nowiki></code> | |||
| <nowiki>http://theblockheads.net</nowiki> | |||
|} | |||
===Images=== | |||
Additional information can be found [[Help:Contents#Using Images|on Help:Contents]]. Also see our [[The Blockheads Wiki:Image guidelines|image guidelines]]. | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Linking to an image | |||
|- | |||
| Link to a image's description page | |||
| <code><nowiki>[[:File:Blockhead-icon.png]]</nowiki></code> | |||
| [[:File:Blockhead-icon.png]] | |||
|- | |||
| Link to a image directly | |||
| <code><nowiki>[[Media:Blockhead-icon.png]]</nowiki></code> | |||
| [[Media:Blockhead-icon.png]] | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Showing an image on a page | |||
|- | |||
| Inline images | |||
| <code><nowiki>[[File:Dirt Icon.png]]</nowiki></code> | |||
| [[File:Dirt Icon.png]] | |||
|- | |||
| Thumbnail images | |||
| <code><nowiki>[[File:Dirt Icon.png|thumb]]</nowiki></code> | |||
| [[File:Dirt Icon.png|thumb]] | |||
|- | |||
| rowspan="2" | Changing the size | |||
| <code><nowiki>[[File:Kelp HD.png|40px]]</nowiki></code><br><code><nowiki>[[File:Kelp HD.png|x40px]]</nowiki></code> | |||
| [[File:Kelp HD.png|40px]]<br>[[File:Kelp HD.png|x40px]] | |||
|- | |||
| colspan="2" | Note: The first image is set to width 40 pixels, while the second is set to height 40 pixels. | |||
|- | |||
| Adding a caption | |||
| <code><nowiki>[[File:Dirt Icon.png|thumb|40px|Dirt]]</nowiki></code> | |||
| [[File:Dirt Icon.png|thumb|40px|Dirt]] | |||
|- | |||
| Aligning an image | |||
| <code><nowiki>[[File:Dirt Icon.png|thumb|left|40px|L]]</nowiki></code><br><code><nowiki>[[File:Dirt Icon.png|thumb|center|40px|C]]</nowiki></code><br><code><nowiki>[[File:Dirt Icon.png|thumb|right|40px|R]]</nowiki></code> | |||
| [[File:Dirt Icon.png|thumb|left|40px|L]]<br clear="all">[[File:Dirt Icon.png|thumb|center|40px|C]]<br clear="all">[[File:Dirt Icon.png|thumb|right|40px|R]] | |||
|- | |||
| Linking to a page with an image | |||
| <code><nowiki>[[File:Apple Icon.png|40px|link=Apple]]</nowiki><br>Click the apple</code> | |||
| [[File:Apple Icon.png|40px|link=Apple]]<br>Click the apple | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Galleries | |||
|- | |||
| Basic | |||
| colspan="2" | <code><nowiki><gallery></nowiki></code><br><code><nowiki>File:Young Shark.png|A young shark</nowiki></code><br><code><nowiki>File:Shark Beneath Boat.png|Shark below boat</nowiki></code><br><code><nowiki>File:Shark Pack.png|Three sharks together</nowiki></code><br><code><nowiki>File:Shark Swarm 121.png|Lots of sharks</nowiki></code><br><code><nowiki>File:Shark Blocked.png|Weird shark</nowiki></code><br><code><nowiki> | |||
</gallery></nowiki></code> | |||
|- | |||
| style="background:#fff;" colspan="3" | | |||
<gallery> | |||
File:Young Shark.png|A young shark | |||
File:Shark Beneath Boat.png|Shark below boat | |||
File:Shark Pack.png|Three sharks together | |||
File:Shark Swarm 121.png|Lots of sharks | |||
File:Shark Blocked.png|Weird shark | |||
</gallery> | |||
|} | |||
===Categories=== | |||
A list of categories can be found [[Special:Categories|here]]. | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Categorizing pages | |||
|- | |||
| rowspan="2" | Categorizing a page | |||
| <code><nowiki>[[Category:The Blockheads Wiki]]</nowiki></code><br><code><nowiki>[[Category:Guide]]</nowiki></code> | |||
| style="background:#fff;" | | |||
{| class="wikitable" style="width:100%;" | |||
| style="padding:4.5px 5px;" | [[Special:Categories|Categories]]:  [[:Category:The Blockheads Wiki|The Blockheads Wiki]]  <hr style="display: inline-block; width: 1px; height: 16px; color: #9a9a9a; vertical-align: top">  [[:Category:Guide|Guide]] | |||
|} | |||
|- | |||
| colspan="2" | Note: When editing, categories should be put at the bottom of the page. When viewing, they are shown at the bottom of the page in a gray box. | |||
|- | |||
| rowspan="2" | Using sort keys | |||
| <code><nowiki>[[Category:The Blockheads Wiki|Help]]</nowiki></code><br><code><nowiki>[[Category:Guide|Help]]</nowiki></code> | |||
| style="background:#fff;" | | |||
{| class="wikitable" style="width:100%;" | |||
| style="padding:4.5px 5px;" | [[Special:Categories|Categories]]:  [[:Category:The Blockheads Wiki|The Blockheads Wiki]]  <hr style="display: inline-block; width: 1px; height: 16px; color: #9a9a9a; vertical-align: top">  [[:Category:Guide|Guide]] | |||
|} | |||
|- | |||
| colspan="2" | Note: In this example, the page would be sorted in the categories as if the page's title was "Help". | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Linking to a category | |||
|- | |||
| Link to a category | |||
| <code><nowiki>[[:Category:Guide]]</nowiki></code><br><code><nowiki>[[:Category:Food|Food]]</nowiki></code> | |||
| [[:Category:Guide]]<br>[[:Category:Food|Food]] | |||
|} | |||
===Templates=== | |||
A list of templates can be found [[:Category:Templates|here]]. Different templates are used differently. Look at the template page for documentation or at a page where it's used to see how it's used. | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="2" | Calling a template with no inputs | |||
|- | |||
| <code><nowiki>{{disambig}}</nowiki></code> | |||
|- | |||
| style="background:#fff;" | | |||
''This disambiguation page lists articles associated with the same title. If a link led you here, you may wish to change the link to point directly to the intended article.'' | |||
{| class="wikitable" style="width:100%;" | |||
| style="padding:4.5px 5px;" | [[Special:Categories|Category]]:  [[:Category:Disambiguation pages|Disambiguation pages]] | |||
|} | |||
|- | |||
| Note: This template, [[Template:Disambig|<code><nowiki>{{</nowiki>disambig<nowiki>}}</nowiki></code>]], labels a page as a disambiguation page and categorizes it as one. | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! Calling a template with one input | |||
|- | |||
| <code><nowiki>{{See also|Donkey}}</nowiki></code> | |||
|- | |||
| style="background:#fff;" | {{See also|Donkey}} | |||
|- | |||
| Note: This template, [[Template:See also|<code><nowiki>{{</nowiki>See also<nowiki>}}</nowiki></code>]], is used at the beginning of an article or section to direct people to related articles. | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! Calling a template with multiple unnamed inputs | |||
|- | |||
| <code><nowiki>{{See also|Dodo|Scorpion}}</nowiki></code> | |||
|- | |||
| style="background:#fff;" | {{See also|Dodo|Scorpion}} | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! Calling a template with multiple named inputs | |||
|- | |||
| <code><nowiki>{{Achievement Infobox</nowiki></code><br><code><nowiki>|Name=Storyteller</nowiki></code><br><code><nowiki>|Image=Storyteller Ach.png</nowiki></code><br><code><nowiki>|Points=10</nowiki></code><br><code><nowiki>}}</nowiki></code> | |||
|- | |||
| style="background:#fff;" | {{Achievement Infobox|Name=Storyteller|Image=Storyteller Ach.png|Points=10}} | |||
|- | |||
| Note: This template, [[Template:Achievement Infobox|<code><nowiki>{{</nowiki>Achievement Infobox<nowiki>}}</nowiki></code>]], is used on articles about an [[Achievements|achievement]] to display small bits of information. | |||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! Calling a table template with a mixture of unnamed and named inputs | |||
|- | |||
| <code><nowiki>{{Bench|header}}</nowiki></code><br><code><nowiki>{{Bench|entry|Steam Generator|Burns fuel for electricity.|1|Steel Block|1|Steam Engine|1|Electric Motor|Time2=8}}</nowiki></code><br><code><nowiki>|}</nowiki></code> | |||
|- | |||
| style="background:#fff;" | | |||
{{Bench|header}} | |||
{{Bench|entry|Steam Generator|Burns fuel for electricity.|1|Steel Block|1|Steam Engine|1|Electric Motor|Time2=8}} | |||
|} | |||
|- | |||
| Note: This template, [[Template:Bench|<code><nowiki>{{</nowiki>Bench<nowiki>}}</nowiki></code>]], is used on articles about a [[Crafting Surface|crafting surface]] to display crafting recipes. To create this table, the Bench template is called with the first parameter "header", which creates the column labels. The Bench template is then called again, with the parameters "entry", "Steam Generator", "Burns fuel for electricity.", "1", "Steel Block", "1", "Steam Engine", "1", "Electric Motor", and the Time2 parameter is set to "8". This lets it display the crafting recipe for a steam generator (one steel block, one steam engine, and one electric motor), with the slogan "Burns fuel for electricity." and a rush cost with double-time of eight time crystals. Lastly, the table is closed with a |}. | |||
|} | |||
===Tables=== | |||
Tables are very complicated. The chart below will be filled out soon. Please inspect an already-made table for how to make a table until further notice. | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="3" | Tables | |||
|- | |||
| XXX | |||
| <code><nowiki>XXX</nowiki></code> | |||
| XXX | |||
|} | |||
==See also== | ==See also== | ||
*[[Help:Contents]] | *[[Help:Contents]] | ||
*[[The Blockheads Wiki:Sandbox]] | |||
==External links== | ==External links== | ||
*[http://www.mediawiki.org/wiki/Help:Editing More information on MediaWiki] | *[http://www.mediawiki.org/wiki/Help:Editing More information on MediaWiki] | ||
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Wikipedia editing cheatsheet] | *[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Wikipedia editing cheatsheet] |