Jump to content

Talk:Wikitext Metasyntax

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 17 years ago by Mxn in topic Gallery

How to code lists?

[edit]

Some messing around (with invented syntax, too) :

point1 = * text newline [ point1 | point2 ]
point2 = ** text newline [ point1 | point2 | point3 ]
point3 = *** text newline [ point2 | point3 | point4 ]

a = number>0

point #a = #a * "*" text newline [ point(#a-1) | point(#a) | point(#a+1) ]


pointlist = { ! "*" point }
point = text newline [ !"*"! pointlist ]

point = "*" point



pointlist = { ["*"] text newline }
addpoint = "*" [ addpoint ]



starlist = (1)starlist
(a)starlist = { (a * "*") 1star // [ (a+1)starlist ] }




** GOOD ONE! **

starlist = list < "*" >
hashlist = list < "#" >
indent = list < ":" >
list < input > = { input text newline [ list < input [ "*" | "#" | ":" ] > ] }


reconvert to ENBF via expansion of code paths?




pointlist = { addpoint text newline }
addpoint = "*" [ addpoint ]


a= 6 * ["="]
heading = #a text #a
i.e.
heading = "=" text "=" | "==" text "==" | ...

a = {"*"}
heading = #a text #a
heading = text | a={"*"} : a text a

--Alfakim 23:32, 21 January 2007 (UTC)Reply

[edit]

The Gallery tag now supports an HTML-style caption attribute in the opening tag. – Minh Nguyễn (talk, contribs) 09:20, 22 January 2007 (UTC)Reply

define (or decouple) any arbitrary limits

[edit]

.. such as the maximum topic heading level of 6. not sure why this exists in the code anyway.