Nodyn:Cells
{{cells|n|COLOR}}
The {{cells}} template can be used to create up to 20 consecutive table cells with a specified background color.
The command {{cells|4|COLOR}}
is equivalent to {{cell|COLOR}}
{{cell|COLOR}}
{{cell|COLOR}}
{{cell|COLOR}}
Usage[golygu cod]
{{cells|n|COLOR}}
The template takes two unnamed parameters as input
- n is the number of consecutive table cells
- COLOR is the background color
Examples[golygu cod]
- Code
{{scarf|width=30em|{{cell|red}}{{cells|4|blue}}{{cell|green}}}}
- Result
Note[golygu cod]
The {{cell2}} and {{cell3}} templates can be used for a sequence of two or three cells of the same color.
See also[golygu cod]
Mae'r ddogfennaeth uchod wedi ei thrawsgynnwys o Nodyn:Cells/doc. (golygu | hanes) Gall golygyddion arbrofi yn y tudalennau pwll tywod (creu | drych) a testcases (creu). Os gwelwch yn dda, ychwanegwch gategorïau a rhyngwicis at yr is-dudalen /doc. Is-dudalennau'r nodyn hwn. |