ទំព័រគំរូ:Do list
Usage
[កែប្រែ]This template simulates proper inline lists, with an option for arbitrary delimiters. It does not emit proper HTML list amrkup. Only use it for nested lists otherwise, use {{Flatlist}}
List items are only wrapped immediately after bullets. To force a line wrap, add {{wrap}} in the text at an appropriate place.
Currently, the template supports 50 entries. Place a request on the talk page if more are needed.
Examples
[កែប្រែ]Code | Result | |
---|---|---|
Basic form | {{do list | Alpha | Beta | Gamma | Delta | Epsilon | Zeta | Eta | Theta | Iota | Kappa | Lambda | Mu | Nu | Xi | Omicron | Pi | Rho | Sigma | Tau | Upsilon | Phi | Chi | Psi | Omega }} |
Alpha • Beta • Gamma • Delta • Epsilon • Zeta • Eta • Theta • Iota • Kappa • Lambda • Mu • Nu • Xi • Omicron • Pi • Rho • Sigma • Tau • Upsilon • Phi • Chi • Psi • Omega |
Dash separated | {{do list | delim = - | Alpha | Beta | Gamma | Delta | Epsilon | Zeta | Eta | Theta | Iota | Kappa | Lambda | Mu | Nu | Xi | Omicron | Pi | Rho | Sigma | Tau | Upsilon | Phi | Chi | Psi | Omega }} |
Alpha - Beta - Gamma - Delta - Epsilon - Zeta - Eta - Theta - Iota - Kappa - Lambda - Mu - Nu - Xi - Omicron - Pi - Rho - Sigma - Tau - Upsilon - Phi - Chi - Psi - Omega |
double-bar separated | {{do list | delim = || | Alpha | Beta | Gamma | Delta | Epsilon | Zeta | Eta | Theta | Iota | Kappa | Lambda | Mu | Nu | Xi | Omicron | Pi | Rho | Sigma | Tau | Upsilon | Phi | Chi | Psi | Omega }} |
Alpha || Beta || Gamma || Delta || Epsilon || Zeta || Eta || Theta || Iota || Kappa || Lambda || Mu || Nu || Xi || Omicron || Pi || Rho || Sigma || Tau || Upsilon || Phi || Chi || Psi || Omega |
Space separated: | {{do list | delim = | Alpha | Beta | Gamma | Delta | Epsilon | Zeta | Eta | Theta | Iota | Kappa | Lambda | Mu | Nu | Xi | Omicron | Pi | Rho | Sigma | Tau | Upsilon | Phi | Chi | Psi | Omega }} |
Alpha Beta Gamma Delta Epsilon Zeta Eta Theta Iota Kappa Lambda Mu Nu Xi Omicron Pi Rho Sigma Tau Upsilon Phi Chi Psi Omega |
Longer phrases (no wrap): | {{do list | All's well that ends well | Do unto others as you would have them do unto you | All the world's a stage | No pain, no gain | Six to one, half dozen the other | A stitch in time saves nine | One fish, two fish, red fish, blue fish }} |
All's well that ends well • Do unto others as you would have them do unto you • All the world's a stage • No pain, no gain • Six to one, half dozen the other • A stitch in time saves nine • One fish, two fish, red fish, blue fish |
Longer phrases (forced wrap in second phrase): | {{do list | All's well that ends well | Do unto others {{wrap}}as you would have them do unto you | All the world's a stage | No pain, no gain | Six to one, half dozen the other | A Journey of a thousand miles begins with | A stitch in time saves nine | One fish, two fish, red fish, blue fish }} |
All's well that ends well • Do unto others as you would have them do unto you • All the world's a stage • No pain, no gain • Six to one, half dozen the other • A stitch in time saves nine • One fish, two fish, red fish, blue fish |
note that for some potential delimiters - vertical pipes or equals signs, for instance - the HTML character entity should be used instead of the actual character, otherwise the template will not behave as expected.
See also
[កែប្រែ]- {{flatlist}}
- {{multi-column numbered list}}
- {{pagelist}}