Difference between revisions of "Template talk:Prettytable"

From GTAMods Wiki
Jump to navigation Jump to search
(Usage: <pre> tags not working)
m (Fixed code sample rendering (use a space before <nowki>).)
 
(4 intermediate revisions by 3 users not shown)
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.
  
'''Wiki code:'''
+
The following is the MediaWiki code for a simple table:
 
+
<nowiki>{| {{prettytable}}
<nowiki>{| {{prettytable}}
 
 
! Column
 
! Column
 
! Column
 
! Column
Line 19: Line 17:
 
|}</nowiki>
 
|}</nowiki>
  
(<nowiki><pre></nowiki> tags not parsing properly, edit to see source)
+
The above code will turn into the following table when saved:
 
 
'''Displays as:'''
 
 
{| {{prettytable}}
 
{| {{prettytable}}
 
! Column
 
! Column
Line 35: Line 31:
 
| 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)