Wiktionary:Parsing:Translations

Basic EBNF grammar
translation-section  = entry, { entry } ;

entry                = language-name, ":" , translations | translation-request ;

language-name        = plain-language-name | linked-language-name | special-language-name ;

plain-language-name  = letter-string ;

linked-language-name = start-link, plain-language-name , end-link ;

special-language-name = start-ttbc, plain-language-name , end-ttbc ;

translations         = translation, { "," | ";" , translation } ;

translation-request  = start-trreq, plain-language-name , end-trreq ;

translation          = term, [ inline-interwiki ] , [ transliteration ] , [ gender ] ;

term                 = plain-term | linked-term ;

plain-term           = letter-string ;

linked-term          = start-link, plain-term , end-link ;

inline-interwiki     = start-sup, "(" , language-code , ")" , end-sup ;

transliteration      = "(", letter-string , ")" ;

gender               = "m" | "f" | "n" | "c", [ "." ] ;

letter-string        = letter, { letter } ;

letter               = all letters in all scripts including han characters but excluding most punctuation

start-link (wikitext)          = "[[" ; (HTML/DOM)           =  ;

end-link (wikitext)          = "]]" ; (HTML/DOM)          =  ;

start-ttbc (wikitext)          = "" ; (HTML/DOM)          = ;

start-trreq (wikitext)          = "" ; (HTML/DOM)          = ;

start-sup (HTML/DOM)          = ;

end-sup (HTML/DOM)          = ;