top | item 46842462

(no title)

firasd | 29 days ago

It's interesting to think about how complex the wikipedia text is compared to something like github flavored markdown or even standard html tables (although I guess it eventually renders into standard html so it's not more complex than the latter when all other html elements are considered in addition to <table>)

For example the swatch internet time infobox is dynamically updated

{{short description|Alternate time system by watch maker Swatch}} {{Infobox | image = [[File:Swatch beat Logo.svg|200px|alt=Logo of Swatch Internet Time]] | caption = Logo of Swatch Internet Time | title = Time{{efn|at page generation }} {{purge|(update to view correct time)}} | label1 = 24-hour time (UTC) | data1 = {{nowrap|{{#time:H:i:s}}}} | label2 = 24-hour time (CET) | data2 = {{Time|CET|dst=no|df-cust=H:i:s|hide-refresh=yes}} | label3 = .beat time (BMT) | data3 = {{nowrap|@{{#expr: floor( {{#expr:{{#expr:{{#expr:{{#time:H|now + 1 hour}}3600}}+{{#expr:{{#time:i}}60}}+{{#time:s}}}}/86.4}} )}}}} }}

discuss

order

sph|29 days ago

Day 1: we’ll adopt a simple markup language because our users are not programmers

Day 2: our users have complicated needs so we’ll basically reinvent Lisp expressions, but worse.

Day N: whatever this markup language is

——

I’ve seen this happen so many times it’s not even funny anymore. Well, at least it’s not YAML.

bawolff|28 days ago

Ironically it wasn't even intentional. Wikipedia users discovered a way to create an if statement by themselves, originally there was no conditionals.

Anyways, now a days you can use lua, so most of the wikisyntax is just glue code calling a lua program

bawolff|29 days ago

I always found it ironic that the table syntax is designed to resemble ascii-art type tables, and then literally nobody writes it in a way that looks like an ascii art table.

notpushkin|29 days ago

Yeah, because it’s a PITA to align everything by hand.

But the spaces around | make it easier to read, than, say, CSV.

popalchemist|29 days ago

It's basically wordpress era PHP templating.

stogot|29 days ago

I’ve spent countless hours at employers fixing Xwiki syntax errors mixed with HTML. The parsing engine must be complex