Help:Editing: Difference between revisions
no edit summary
>Abcboy (Adding everything (except tables)) |
No edit summary |
||
| (11 intermediate revisions by one other user not shown) | |||
| Line 11: | Line 11: | ||
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. | 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 | The first part of the article is the lead paragraph. Typically, it describes the topic of the page in a few sentences. The title of the page should be put in bold in the lead. An example of a lead: | ||
<blockquote>'''Vegetables''' are edible [[ | <blockquote>'''Vegetables''' are edible [[food]] [[item]]s 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. | 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. | ||
| Line 249: | Line 249: | ||
| style="background:#fff;" | | | style="background:#fff;" | | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
| style="padding:4.5px 5px;" | [[Special:Categories|Categories]]:& | | 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]] | ||
|} | |} | ||
|- | |- | ||
| Line 258: | Line 258: | ||
| style="background:#fff;" | | | style="background:#fff;" | | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
| style="padding:4.5px 5px;" | [[Special:Categories|Categories]]:& | | 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]] | ||
|} | |} | ||
|- | |- | ||
| Line 283: | Line 283: | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
| style="padding:4.5px 5px;" | [[Special:Categories|Category]]:& | | style="padding:4.5px 5px;" | [[Special:Categories|Category]]:  [[:Category:Disambiguation pages|Disambiguation pages]] | ||
|} | |} | ||
|- | |- | ||
| Line 314: | Line 314: | ||
| style="background:#fff;" | {{Achievement Infobox|Name=Storyteller|Image=Storyteller Ach.png|Points=10}} | | 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 [[ | | Note: This template, [[Template:Achievement Infobox|<code><nowiki>{{</nowiki>Achievement Infobox<nowiki>}}</nowiki></code>]], is used on articles about an [[achievement]] to display small bits of information. | ||
|}<br clear="all"> | |}<br clear="all"> | ||
| Line 331: | Line 331: | ||
===Tables=== | ===Tables=== | ||
Table styling is done using CSS and a few HTML attributes. | |||
{| class="wikitable" style="margin:auto; width:90%;" | {| class="wikitable" style="margin:auto; width:90%;" | ||
! colspan=" | ! colspan="2" | Tables | ||
|- | |- | ||
| | | Starting a table | ||
| <code><nowiki> | | <code><nowiki>{|</nowiki></code> | ||
| | |- | ||
| Creating a header | |||
| <code><nowiki>! Header content</nowiki></code> | |||
|- | |||
| Creating a row | |||
| <code><nowiki>|-</nowiki></code> | |||
|- | |||
| Creating a cell | |||
| <code><nowiki>| Cell content</nowiki></code> | |||
|- | |||
| Ending a table | |||
| <code><nowiki>|}</nowiki></code> | |||
|- | |||
| <pre>{| | |||
! Header 1 | |||
! Header 2 | |||
|- | |||
| Cell 1 | |||
| Cell 2 | |||
|}</pre> | |||
| style="background:#fff;" | | |||
{| | |||
! Header 1 | |||
! Header 2 | |||
|- | |||
| Cell 1 | |||
| Cell 2 | |||
|} | |} | ||
|}<br clear="all"> | |||
{| class="wikitable" style="margin:auto; width:90%;" | |||
! colspan="2" | Attributes | |||
|- | |||
| Assigning attributes to a table | |||
| <code><nowiki>{| class="wikitable" style="margin:auto;"</nowiki></code> | |||
|- | |||
| Assigning attributes to a cell | |||
| <code><nowiki>| style="text-align:right;" | Cell content</nowiki></code> | |||
|- | |||
| Vertically merged cells | |||
| <code><nowiki>| rowspan="2" | Cell content</nowiki></code> | |||
|- | |||
| Horizontally merged cells | |||
| <code><nowiki>| colspan="2" | Cell content</nowiki></code> | |||
|- | |||
| <pre>{| class="wikitable" style="margin:auto;" | |||
! Fruit | |||
! Price | |||
! Location | |||
|- | |||
| colspan="2" | No apples | |||
| rowspan="3" | Shop A | |||
|- | |||
| Oranges | |||
| style="text-align:right;" | 12 | |||
|- | |||
| Mangos | |||
| style="text-align:right;" | 15 | |||
|}</pre> | |||
| style="background:#fff;" | | |||
{| class="wikitable" style="margin:auto;" | |||
! Fruit | |||
! Price | |||
! Location | |||
|- | |||
| colspan="2" | No apples | |||
| rowspan="3" | Shop A | |||
|- | |||
| Oranges | |||
| style="text-align:right;" | 12 | |||
|- | |||
| Mangos | |||
| style="text-align:right;" | 15 | |||
|} | |||
|}<br clear="all"> | |||
==See also== | ==See also== | ||
| Line 345: | Line 418: | ||
==External links== | ==External links== | ||
*[ | *[https://www.mediawiki.org/wiki/Help:Editing_pages More information on MediaWiki] | ||
*[ | *[https://en.wikipedia.org/wiki/Help:Cheatsheet Wikipedia editing cheatsheet] | ||