Difference between revisions of "Template talk:Prettytable"
Jump to navigation
Jump to search
m (Responding to Steve.) |
m (Fixed code sample rendering (use a space before <nowki>).) |
||
Line 1: | Line 1: | ||
− | == Usage == | + | ==Usage== |
− | |||
You can use the <nowiki>{{prettytable}}</nowiki> template instead of typing out all the HTML attributes every time. | You can use the <nowiki>{{prettytable}}</nowiki> template instead of typing out all the HTML attributes every time. | ||
− | + | The following is the MediaWiki code for a simple table: | |
− | + | <nowiki>{| {{prettytable}} | |
− | <nowiki>{| {{prettytable}} | ||
! Column | ! Column | ||
! Column | ! Column | ||
Line 19: | Line 17: | ||
|}</nowiki> | |}</nowiki> | ||
− | + | The above code will turn into the following table when saved: | |
− | |||
− | |||
{| {{prettytable}} | {| {{prettytable}} | ||
! Column | ! Column |
Latest revision as of 12:43, 6 March 2006
Usage
You can use the {{prettytable}} template instead of typing out all the HTML attributes every time.
The following is the MediaWiki code for a simple table:
{| {{prettytable}} ! Column ! Column ! Column |- | Value | Value | Value |- | 2nd row | 2nd row | 2nd row |}
The above code will turn into the following table when saved:
Column | Column | Column |
---|---|---|
Value | Value | Value |
2nd row | 2nd row | 2nd row |
Comments
Another page created by someone simply to play around. Stuff like this should be done in the sandbox or in the user's personal page. --Cerbera 07:34, 18 Jan 2006 (Central Standard Time)
Open your eyes Cerb, this is a template. --steve-m 05:59, 20 Jan 2006 (Central Standard Time)
- Oops! I understand its purpose now. --Cerbera 11:21, 22 Jan 2006 (Central Standard Time)