Difference between revisions of "Template talk:Prettytable"
Jump to navigation
Jump to search
(Another pointless and malformed page.) |
m (Fixed code sample rendering (use a space before <nowki>).) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | ==Usage== | ||
+ | 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}} | ||
+ | ! Column | ||
+ | ! Column | ||
+ | ! Column | ||
+ | |- | ||
+ | | Value | ||
+ | | Value | ||
+ | | Value | ||
+ | |- | ||
+ | | 2nd row | ||
+ | | 2nd row | ||
+ | | 2nd row | ||
+ | |}</nowiki> | ||
+ | |||
+ | The above code will turn into the following table when saved: | ||
+ | {| {{prettytable}} | ||
+ | ! 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. | 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. | ||
--[[User:Cerbera|Cerbera]] 07:34, 18 Jan 2006 (Central Standard Time) | --[[User:Cerbera|Cerbera]] 07:34, 18 Jan 2006 (Central Standard Time) | ||
+ | |||
+ | Open your eyes Cerb, this is a template. --[[User:steve-m|steve-m]] 05:59, 20 Jan 2006 (Central Standard Time) | ||
+ | |||
+ | :Oops! I understand its purpose now. --[[User:Cerbera|Cerbera]] 11:21, 22 Jan 2006 (Central Standard Time) |
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)