Open main menu
Home
Random
Recent changes
Special pages
Community portal
Settings
About NowMusic Wiki
NowMusic Wiki
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Template:Alternating rows table/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{Uses TemplateStyles|Template:alternating rows table/styles.css}} This template may be used to generate a table with alternating row shading. == Usage == <syntaxhighlight lang="mediawiki"> {{alternating rows table|class=wikitable}} ! Number !! Cell name |- | 1 || Cell 1 |- | 2 || Cell 2 |- | 3 || Cell 3 |- | 4 || Cell 4 |- {{end}}</syntaxhighlight> {{alternating rows table|class=wikitable}} ! Number !! Cell name |- | 1 || Cell 1 |- | 2 || Cell 2 |- | 3 || Cell 3 |- | 4 || Cell 4 |- {{end}} == Parameters == The default class is {{para|class|wikitable}}, for a sortable table, use {{para|class|wikitable sortable}}. == Known issues == Background color on rows will look off if one of the cells spans multiple rows (ex. <code>rowspan="2"</code>). If the table is sortable, then this gets fixed once sorted since sortable collapses row spans. == See also == * [[:wikipedia:MediaWiki:Common.css]] which includes the <code>alternance</code> class (the inspiration for this template). <includeonly>{{Sandbox other|| <!-- Categories below this line --> }}</includeonly>
Summary:
Please note that all contributions to NowMusic Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
NowMusic Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Alternating rows table
(
edit
)
Template:Alternating rows table/styles.css
(
edit
)
Template:Documentation subpage
(
edit
)
Template:End
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Para
(
edit
)
Template:Strong
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Uses TemplateStyles
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:TNT
(
edit
)
Module:TableTools
(
edit
)
Module:Text
(
edit
)
Module:Uses TemplateStyles
(
edit
)
Module:Yesno
(
edit
)