Difference between pages "Help:Tables" and "Help:Talk pages"

From Event-B
(Difference between pages)
Jump to navigationJump to search
imported>Mathieu
m (Importing help from mediawiki)
 
imported>Mathieu
m (importing help from mediawiki)
 
Line 1: Line 1:
  
Tables may be authored in wiki pages using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
 
  
A good general rule of thumb is to avoid using a table unless you need to. Table markup often complicates page editing.
+
Every wiki page has an associated talk page which can be used for discussion and communicating with other users. Talk pages can be accessed by clicking the ''Discussion'' tab at the top of the page. Simply edit the page as normal to add your comment.
  
== Wiki table markup summary ==
+
A talk page is actually very similar to any other wiki page, but it is in the 'talk' namespace, to keep it separate from the articles in the 'main' namespace (See [[Help:namespaces]]) As with any wiki page, you can edit it, link to it, and view the editing history.
  
{|cellpadding="5" cellspacing="0" border="1" width="600"
+
== Editing conventions on talk pages ==
|<nowiki>{|</nowiki> || start '''table'''
+
Having discussions on a free-form wiki page will seem strange at first. It helps if everyone follows some simple editing conventions:
|-
 
|<nowiki>|+</nowiki> || table '''caption,''' ''optional;'' only one per table and between table start and first row
 
|-
 
|<nowiki>|-</nowiki> || '''table row,''' ''optional on first row'' -- wiki engine assumes the first row
 
|-
 
|<nowiki>!</nowiki>  || '''table header''' cell, ''optional.'' Consecutive table headers may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
 
|-
 
|<nowiki>|</nowiki>  || '''table data''' cell, ''required!'' Consecutive table data cells may be added on same line separated by double marks (<nowiki>||</nowiki>) or start on new lines, each with its own single mark (<nowiki>|</nowiki>).
 
|-
 
|<nowiki>|}</nowiki> || end '''table'''
 
|}
 
*The above marks must '''start on a new line''' except the double || and !! for optionally adding consecutive cells to a line.
 
*'''XHTML attributes.''' Each mark, except table end, optionally accepts one or more XHTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
 
**Cells and caption (<nowiki>| or ||, ! or !!, and |+</nowiki>) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
 
**Table and row marks (<nowiki>{| and |-</nowiki>) do not directly hold content. Do ''not'' add pipe (|) after their optional attributes. If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it ''and'' your final attribute if it was touching the erroneous pipe!
 
*'''Content''' may (a) follow its cell mark on the same line after any optional XHTML attributes or (b) on lines below the cell mark. Content that uses wiki markup that itself needs to start on a new line, such as lists, headers, or nested tables, must of course be on its own new line.
 
  
==Simple table==
+
* Always sign your name after your comments. Use the four tildes '<tt><nowiki>~~~~</nowiki></tt>' wiki syntax (or the toolbar button)
 +
* Start a new discussion with a <tt><nowiki>==level 2 heading==</nowiki></tt> at the bottom of the page (or use the '+' tab)
 +
* Indent replies with colons (':') at the beginning of the line.
  
===Plain===
+
== Example ==
The following table lacks borders and good spacing but shows the simplest wiki markup table structure
+
Here is an example discussion, following the talk page conventions:
{| width="100%"
 
|width="50%"|
 
{|
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{|
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
===Alternative===
 
For more table-ish looking wiki markup cells can be listed on one line separated by ||. This does not scale well for longer cell content such as paragraphs. It works well for short bits of content however, such as our example table.
 
 
 
Extra spaces within cells in the wiki markup can be added, as I have done in the wiki markup below, to make the wiki markup itself look better but they do not affect the actual table rendering.
 
  
HTML attributes can be added to tables on this page but have been left out of the following example for simplicity.
+
{| align="center" {{Prettytable}}
{| width="100%"
 
|width="50%"|
 
{|
 
|  Orange    ||  Apple  ||  more
 
|-
 
|  Bread    ||  Pie    ||  more
 
|-
 
|  Butter  || Ice cream ||  and more
 
|}
 
|width="50%"|
 
<pre>
 
{|
 
|  Orange    ||  Apple  ||  more
 
 
|-
 
|-
|   Bread    ||   Pie    ||  more
+
|{{Hl2}} |'''Wiki text'''
 +
|{{Hl2}} |'''Formatted talk page'''
 
|-
 
|-
|   Butter  || Ice cream ||  and more
+
|
|}
 
</pre>
 
|}
 
 
 
===With HTML attributes===
 
You can add HTML attributes to make your table look better
 
====border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
====align="center" border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| align="center" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| align="center" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
====Attributes on cells ====
+
<tt><nowiki>== More spiders information needed ==</nowiki></tt><br/>
You can put attributes on individual '''cells.''' Numbers for example may look better aligned right
+
<tt><nowiki>This page has a lot of detail about the web, but I really dont understand a single word of it, and it doesn't mention the spider once -- [[User:Bob Smith|Bob Smith]] 18:07, 26 August 1991 (UTC)</nowiki></tt><br/>
{| width="100%"
+
<tt><nowiki>: No no. This page is talking about the "world wide web". I have added a clarification at the top - [[User:Simon Brown|Simon Brown]] 11:21, 28 August 1991(UTC)</nowiki></tt><br/>
|width="50%"|
+
<tt><nowiki>:: Oh I see... So what's the big deal about hyperlinked documents? Seems like a stupid idea to me. -- [[User:Bob Smith|Bob Smith]] 14:11, 3 September 1991 (UTC)</nowiki></tt><br/>
{| border="1"
+
<tt><nowiki>::: Well I think we should have some information about it here on our wiki, but you're probably right. It'll never catch on. -- [[User:Simon Brown|Simon Brown]] 21:55, 3 September 1991 (UTC)</nowiki></tt>
|Orange
+
|
|Apple
+
== More spiders information needed ==
|align="right"|12,333.00
+
This page has a lot of detail about the web, but I really dont understand a single word of it, and it doesn't mention the spider once -- [[User:Bob Smith|Bob Smith]] 18:07, 26 August 1991 (UTC)
|-
+
: No no. This page is talking about the "world wide web". I have added a clarification at the top - [[User:Simon Brown|Simon Brown]] 11:21, 28 August 1991(UTC)
|Bread
+
:: Oh I see... So what's the big deal about hyperlinked documents? Seems like a stupid idea to me. -- [[User:Bob Smith|Bob Smith]] 14:11, 3 September 1991 (UTC)
|Pie
+
::: Well I think we should have some information about it here on our wiki, but you're probably right. It'll never catch on. -- [[User:Simon Brown|Simon Brown]] 21:55, 3 September 1991 (UTC)
|align="right"|500.00
 
|-
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|-
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
</pre>
 
 
|}
 
|}
  
====Attributes on rows====
 
You can put attributes on individual '''rows,''' too.
 
{| width="100%"
 
|width="50%"|
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|- style="font-style:italic;color:green;"
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1"
 
|Orange
 
|Apple
 
|align="right"|12,333.00
 
|-
 
|Bread
 
|Pie
 
|align="right"|500.00
 
|- style="font-style:italic;color:green;"
 
|Butter
 
|Ice cream
 
|align="right"|1.00
 
|}
 
</pre>
 
|}
 
  
====cellspacing="0" border="1"====
+
== Editing discussions ==
{| width="100%"
+
Having discussions on a free-form wiki page will seem strange at first. It has some advantages over the conventional rigid forum format, but it can get a little messy. As with other wiki pages, anyone can help with tidying up discussions, to conform to the editing conventions e.g. add signatures and headings where they are missing.
|width="50%"|
 
{| cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
====cellpadding="20" cellspacing="0" border="1"====
+
Clearly we also have the opportunity to edit other people's comments. It is generally bad etiquette to modify somebody else's wording (Better to just add your own comment with your corrections) But it can be acceptable to...
{| width="100%"
 
|width="50%"|
 
{| cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
''Note: This cellpadding example is not currently working properly on mediawiki.org  It is supposed to look like [http://test.wikipedia.org/wiki/Table_test this]''
+
;Modify discussion headings
 +
:Change wording or append words to the discussion headings, to better describe the topic of discussion. Note that good descriptive headings become important when many discussions start to fill the page.
 +
;Move discussions to a different page
 +
:If discussions are put in the wrong place on the wiki, and are better associated with different talk page, then you could just move the discussion by cut & paste. This is potentially confusing, for the people posting, but can be important for keeping things tidy. You could leave the discussion in the wrong place for a few days/weeks grace before tidying it. You could leave a link behind explaining that a discussion was moved, or if not, you should link within the edit summary.
 +
;Delete discussions when they are out-of-date
 +
:Discussions can often get left lying around on a talk page long after the issue is no longer relevant. It's usually a good idea to reply to saying "I think this is now resolved", but sooner or later it's time to just blow away the old discussions (they are of course preserved in the editing history)
 +
;Split a post into several discussions
 +
:It may appropriate to do this, if somebody has raised several points which need to be answered separately. However you should always be respectful to other people's words. Does their post still make sense if you split it up?
  
===With HTML attributes and CSS styles===
+
== Building articles - Discussing articles ==
CSS style attributes can be added with or without other HTML attributes
+
It is usually best to keep focused on the task of building a wiki article, and use discussion pages only to support this process. The topic of conversation should generally revolve around what needs to be done to make the associated article better. Remember that editing the article itself is often a more effective means of communicating. It can be more difficult, requiring you to balance your views alongside those of others, but it can also be more rewarding. This is how the community of wiki editors will make progress. Often it will feel more natural to engage in heated debate on a talk page (or indeed any other contact channel) but in fact the wiki article itself can offer a powerful means of reaching middle-ground. Think about how to portray both sides of the argument (e.g. listing advantages and disadvantages) and you may find the debate evaporates.
====style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"====
 
{| width="100%"
 
|width="50%"|
 
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| style="color:green;background-color:#ffffcc;" cellpadding="20" cellspacing="0" border="1"
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
  
==Table with TH headings==
+
== User Talk pages ==
 +
A "user talk page" is a talk page associated with somebody's "user page" (See [[Help:User page]])  This is a place to leave messages for a particular wiki user.
  
TH (HTML table headings) can be created by using ! instead of |. Headings usually show up bold and centered by default.
+
This can function as a kind of messaging system. Users receive a prominent notification when new messages have been left on their talk page. They may be notified by email as well, although this cannot always be relied upon (since the email notification feature must be activated by supplying a valid email address, and clicking a confirmation link). If you don't get a response to your user talk page message, try looking for other contact details which they may have supplied on their user page.
  
===Top headings===
+
Note that the messages are not private, and others can join in the conversation.
====Each column====
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
!Yummy
 
!Yummier
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
!Yummy
 
!Yummier
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
====Colspan="2"====
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
!colspan="2"|Yummies
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
! colspan="2"|Yummies
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
===Side headings===
 
====Default====
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
!Fruit
 
|Orange
 
|Apple
 
|-
 
!Dish
 
|Bread
 
|Pie
 
|-
 
!Complement
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
!Fruit
 
|Orange
 
|Apple
 
|-
 
!Dish
 
|Bread
 
|Pie
 
|-
 
!Complement
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
====Right justify====
 
Right justified side headings can be done as follows
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
!align="right" |Fruit
 
|Orange
 
|Apple
 
|-
 
!align="right" |Dish
 
|Bread
 
|Pie
 
|-
 
!align="right" |Complement
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
!align="right" |Fruit
 
|Orange
 
|Apple
 
|-
 
!align="right" |Dish
 
|Bread
 
|Pie
 
|-
 
!align="right" |Complement
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
==Caption==
 
A '''table caption''' can be added to the top of any table as follows
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
|+Food complements
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
|+Food complements
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
'''Attributes''' can be added to the caption as follows
 
 
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
|+align="bottom" style="color:#e76700;"|''Food complements''
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
|width="50%"|
 
<pre>
 
{| border="1" cellpadding="20" cellspacing="0"
 
|+align="bottom" style="color:#e76700;"|''Food complements''
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
</pre>
 
|}
 
 
 
==Table with H1, H2, H3 etc. headings==
 
 
 
HTML H1, H2, H3, H4 etc. headings can be created the standard wiki markup way with ==equal== signs and '''must be on a line all by themselves''' to work.
 
 
 
'''Preview the whole table.''' If you click on an edit tab for a heading ''within'' a table, edit, and preview, the parent table will display erroneously broken because part of it will be missing.
 
 
 
Keep the heading hierarchy consistent with the rest of the page so that the table of contents at page top works correctly.
 
 
 
{| width="100%"
 
|width="50%"|
 
{| border="1" cellpadding="20" cellspacing="0"
 
|colspan="2"|
 
====Yummiest====
 
|-
 
|Orange
 
|Apple
 
|-
 
|Bread
 
|Pie
 
|-
 
|Butter
 
|Ice cream
 
|}
 
  
==Caveat==
 
===Negative numbers===
 
Negative value minus sign can break your table (it may display missing some values) if you start a cell on a new line with a negative number or a parameter that evaluates to a negative number (|-6) because that is the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (||-6).
 
  
{{Languages|Help:Tables}}
+
[[Category:Help|Talk pages]]
[[Category:Help|Tables]]
 

Latest revision as of 08:57, 5 July 2008


Every wiki page has an associated talk page which can be used for discussion and communicating with other users. Talk pages can be accessed by clicking the Discussion tab at the top of the page. Simply edit the page as normal to add your comment.

A talk page is actually very similar to any other wiki page, but it is in the 'talk' namespace, to keep it separate from the articles in the 'main' namespace (See Help:namespaces) As with any wiki page, you can edit it, link to it, and view the editing history.

Editing conventions on talk pages

Having discussions on a free-form wiki page will seem strange at first. It helps if everyone follows some simple editing conventions:

  • Always sign your name after your comments. Use the four tildes '~~~~' wiki syntax (or the toolbar button)
  • Start a new discussion with a ==level 2 heading== at the bottom of the page (or use the '+' tab)
  • Indent replies with colons (':') at the beginning of the line.

Example

Here is an example discussion, following the talk page conventions:

Wiki text Formatted talk page


== More spiders information needed ==
This page has a lot of detail about the web, but I really dont understand a single word of it, and it doesn't mention the spider once -- [[User:Bob Smith|Bob Smith]] 18:07, 26 August 1991 (UTC)
: No no. This page is talking about the "world wide web". I have added a clarification at the top - [[User:Simon Brown|Simon Brown]] 11:21, 28 August 1991(UTC)
:: Oh I see... So what's the big deal about hyperlinked documents? Seems like a stupid idea to me. -- [[User:Bob Smith|Bob Smith]] 14:11, 3 September 1991 (UTC)
::: Well I think we should have some information about it here on our wiki, but you're probably right. It'll never catch on. -- [[User:Simon Brown|Simon Brown]] 21:55, 3 September 1991 (UTC)

More spiders information needed

This page has a lot of detail about the web, but I really dont understand a single word of it, and it doesn't mention the spider once -- Bob Smith 18:07, 26 August 1991 (UTC)

No no. This page is talking about the "world wide web". I have added a clarification at the top - Simon Brown 11:21, 28 August 1991(UTC)
Oh I see... So what's the big deal about hyperlinked documents? Seems like a stupid idea to me. -- Bob Smith 14:11, 3 September 1991 (UTC)
Well I think we should have some information about it here on our wiki, but you're probably right. It'll never catch on. -- Simon Brown 21:55, 3 September 1991 (UTC)


Editing discussions

Having discussions on a free-form wiki page will seem strange at first. It has some advantages over the conventional rigid forum format, but it can get a little messy. As with other wiki pages, anyone can help with tidying up discussions, to conform to the editing conventions e.g. add signatures and headings where they are missing.

Clearly we also have the opportunity to edit other people's comments. It is generally bad etiquette to modify somebody else's wording (Better to just add your own comment with your corrections) But it can be acceptable to...

Modify discussion headings
Change wording or append words to the discussion headings, to better describe the topic of discussion. Note that good descriptive headings become important when many discussions start to fill the page.
Move discussions to a different page
If discussions are put in the wrong place on the wiki, and are better associated with different talk page, then you could just move the discussion by cut & paste. This is potentially confusing, for the people posting, but can be important for keeping things tidy. You could leave the discussion in the wrong place for a few days/weeks grace before tidying it. You could leave a link behind explaining that a discussion was moved, or if not, you should link within the edit summary.
Delete discussions when they are out-of-date
Discussions can often get left lying around on a talk page long after the issue is no longer relevant. It's usually a good idea to reply to saying "I think this is now resolved", but sooner or later it's time to just blow away the old discussions (they are of course preserved in the editing history)
Split a post into several discussions
It may appropriate to do this, if somebody has raised several points which need to be answered separately. However you should always be respectful to other people's words. Does their post still make sense if you split it up?

Building articles - Discussing articles

It is usually best to keep focused on the task of building a wiki article, and use discussion pages only to support this process. The topic of conversation should generally revolve around what needs to be done to make the associated article better. Remember that editing the article itself is often a more effective means of communicating. It can be more difficult, requiring you to balance your views alongside those of others, but it can also be more rewarding. This is how the community of wiki editors will make progress. Often it will feel more natural to engage in heated debate on a talk page (or indeed any other contact channel) but in fact the wiki article itself can offer a powerful means of reaching middle-ground. Think about how to portray both sides of the argument (e.g. listing advantages and disadvantages) and you may find the debate evaporates.

User Talk pages

A "user talk page" is a talk page associated with somebody's "user page" (See Help:User page) This is a place to leave messages for a particular wiki user.

This can function as a kind of messaging system. Users receive a prominent notification when new messages have been left on their talk page. They may be notified by email as well, although this cannot always be relied upon (since the email notification feature must be activated by supplying a valid email address, and clicking a confirmation link). If you don't get a response to your user talk page message, try looking for other contact details which they may have supplied on their user page.

Note that the messages are not private, and others can join in the conversation.