Anonymous

Help:Editing: Difference between revisions

From The Blockheads Wiki
1,310 bytes added ,  24 November 2024
no edit summary
>Abcboy
mNo edit summary
No edit summary
 
(3 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 lede. Typically, it describes the topic of the page in a few sentences. The title of the page should be put in bold in the lede. An example of a lede:
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 [[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>
<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>
Line 331: Line 331:


===Tables===
===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.
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="3" | Tables
! colspan="2" | Tables
|-
|-
| XXX
| Starting a table
| <code><nowiki>XXX</nowiki></code>
| <code><nowiki>{|</nowiki></code>
| XXX
|-
| 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==
Administrators, uploadaccess
1

edit