Welcome, Guest. Please login or register.
Did you miss your activation email?
2020-Oct-20 08:18

Login with username, password and session length

Recent

Shoutbox

break:
May. 09 2020 - 10:02am
Awesome, happy to be back on the forums !
I hope everyone is in good health.
ADMIN:
May. 01 2020 - 6:54pm
new domain: ieants.cc
Den:
Mar. 20 2020 - 2:40am
possible delay of service
break:
Mar. 14 2020 - 1:05pm
@Den
Hey, had some issues opening the Worksheet in the new MS-Excel. Made a topic about it.
break:
Mar. 07 2020 - 12:19pm
@Den 
You are awesome, this helps a lot !  Really appreciate your help.
Den:
Mar. 07 2020 - 4:07am
.tbl file and translation program
break:
Mar. 05 2020 - 10:44pm
@Den Wow friend, you are blazing with these updates ! Question, how did you edit the names of things ?
Den:
Mar. 03 2020 - 1:21am

Author Topic: Better Tables in SMF forums  (Read 1292 times)

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1356
  • Selina is my Superstar
    • View Profile
    • Amuseum
Better Tables in SMF forums
« on: 2017-Oct-27 11:10 »
Need for simple ways to create tables in SMF forums.

1. Extend table code to allow various types of formats.
Ex.
tables=csv

2. Common types of formats: VSV, csv, wiki, markdown, reStructuredText
« Last Edit: 2020-Sep-26 06:20 by Den »
Support me on Patreon

I saw. I conquered. I came.

Den

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1356
  • Selina is my Superstar
    • View Profile
    • Amuseum
Re: Better Tables in SMF forums
« Reply #1 on: 2020-Sep-26 06:17 »
Alternative ways to create tables. These use the "tables" tag, instead of the default "table" (note the extra "s" for our new method.)



VSV (Versatile Separated Values) is my own creation and proposal for a simple way to create lists and tables in any plaintext file, yet easily converted into HTML code for websites (via dedicated plugins for specific forum or content frameworks; e.g. SMF forums and WordPress blogs).

Traditionally only commas, tabs, and spaces were allowed to be delimiters. However, in VSV, any character can be used as delimiters. The delimiter of each line is the first nonspace character at the beginning of that line. (Learn more about VSV)

Code: [Select]
[tables=vsv]
[[Name]] {{Age}} ((Gender))
,Hammie, 20.5, F
-Chow, Vivian-40-F
:Amuseum:25:M:
*Shena'Fu *18+5/12 *F
|Grndr-1245|21 months||
Fairy Nuff 14 K N/A
[/tables]

Name{{Age}}Gender
Hammie 20.5 F
Chow, Vivian40F
Amuseum25M
Shena'Fu 18+5/12 F
Grndr-124521 months
Fairy Nuff14 KN/A


Comma separated values
Code: [Select]
[tables=csv]
Name, Score 1, Score 2
BEAKL 9, 120, 144
BEAKL 10, 44, 99
[/tables]

NameScore 1Score 2
BEAKL 9 120 144
BEAKL 10 44 99


VSV (compare to CSV above)
Code: [Select]
[tables=vsv]
((Name)) ((Score 1)) ((Score 2))
,BEAKL 9, 120, 144
,BEAKL 10, 44, 99
[/tables]

NameScore 1Score 2
BEAKL 9 120 144
BEAKL 10 44 99


Markdown #1
Code: [Select]
[tables=md]
Name     Score 1 Score 2
-------- ------- -------
BEAKL 9  120     144
BEAKL 10 44      99
-------- ------- -------
[/tables]

Name     Score 1 Score 2
BEAKL 9  120     144
BEAKL 10 44      99


Markdown #2
Code: [Select]
[tables=md]
+----------+---------+---------+
| Name     | Score 1 | Score 2 |
+----------+---------+---------+
| BEAKL 9  | 120     | 144     |
| BEAKL 10 | 44      | 99      |
+----------+---------+---------+
[/tables]

Name      Score 1 Score 2
BEAKL 9  120      144     
BEAKL 10 44      99     


reStructuredText #1
Code: [Select]
[tables=rst]
======== ======= =======
Name     Score 1 Score 2
======== ======= =======
BEAKL 9  120     144
BEAKL 10 44      99
======== ======= =======
[/tables]

Name     Score 1 Score 2
BEAKL 9  120     144
BEAKL 10 44      99


reStructuredText #2
Code: [Select]
[tables=rst]
+----------+---------+---------+
| Name     | Score 1 | Score 2 |
+==========+=========+=========+
| BEAKL 9  | 120     | 144     |
| BEAKL 10 | 44      | 99      |
+----------+---------+---------+
[/tables]

Name      Score 1 Score 2
BEAKL 9  120      144     
BEAKL 10 44      99     


wikiTables
Code: [Select]
[tables=wiki]
{|
!Name!!Score 1
!Score 2
|-
|BEAKL 9||120
|144
|-
|BEAKL 10
|44||99
|}
[/tables]

Name Score 1 Score 2
BEAKL 9 120 144
BEAKL 10 44 99



The following is the default method, using the "table" tag.
Code: [Select]
[table]
[tr]
[td]Name[/td]
[td]Score 1[/td]
[td]Score 2[/td]
[/tr]
[tr]
[td]BEAKL 9[/td]
[td]120[/td]
[td]144[/td]
[/tr]
[tr]
[td]BEAKL 10[/td]
[td]44[/td]
[td]99[/td]
[/tr]
[/table]

NameScore 1Score 2
BEAKL 9120144
BEAKL 104499


 

2 Guests, 0 Users