Redigerer
Mal:Navbox with columns/dok
(avsnitt)
Hopp til navigering
Hopp til søk
Advarsel:
Du er ikke innlogget. IP-adressen din vil bli vist offentlig om du redigerer. Hvis du
logger inn
eller
oppretter en konto
vil redigeringene dine tilskrives brukernavnet ditt, og du vil få flere andre fordeler.
Antispamsjekk.
Ikke
fyll inn dette feltet!
== Parameters == === Setup parameters === :;''name''<ref name="common">Parameters marked with a footnote '''<sup>[1]</sup>''' are parameters in common with the sister templates {{t1|Navbox}} and {{t1|Navbox with collapsible groups}}. A much more complete description of those parameters is available at {{t1|Navbox}}.</ref> ::The name of the template. The name of this template, for example, is "Navbox with columns". :;''state''<ref name="common"/> ::Possible values are <code>collapsed</code>, <code>uncollapsed</code>, <code>plain</code>, <code>off</code>, and the default <code>autocollapse</code>. See {{t1|Navbox}} for more information. :;''navbar''<ref name="common"/> ::Possible values are <code>plain</code>, <code>off</code>, and the default value of blank. See {{t1|Navbox}} for more information. :;''border''<ref name="common"/> ::Possible values are <code>child</code>, <code>none</code>, and the default value of blank. Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox. The parent navbox may be the list area of {{t1|Navbox}}, a columns of another {{t1|Navbox with columns}}, or a section of {{t1|Navbox with collapsible groups}}. See {{t1|Navbox}} for more information and examples. ===Basic data parameters=== :;'''''title'''''<ref name="common"/> ::The title of the template, displayed centered in the titlebar at the top of the template. :;''above''<ref name="common"/> ::Text or other elements to appear above the columns. :;''image''<ref name="common"/> ::Image to the right of all of the columns. :;''imageleft''<ref name="common"/> ::Image to the left of all of the columns. :;''below''<ref name="common"/> ::Text or other elements to appear below the columns. ===Style parameters=== :;''style''<ref name="common"/> ::CSS style/s to apply to the template's body (i.e. including space not used by columns) :;''titlestyle''<ref name="common"/> ::[[Wikipedia:CSS|CSS]] style/s to apply to titlebar; usually <code>background:''color''</code> (background defaults to [[Wikipedia:NavFrame|NavHead]] default). :;''abovestyle''<ref name="common"/> :;''belowstyle''<ref name="common"/> ::CSS style/s to apply to the ''above'' and ''below'' parameters, respectively. :;''basestyle''<ref name="common"/> ::CSS style/s to apply to the ''title'', ''above'', and ''below'', parameters, all at the same time. :;''imagestyle''<ref name="common"/> ::CSS style/s to apply to the ''image'' parameter. :;''imageleftstyle''<ref name="common"/> ::CSS style/s to apply to the ''imageleft'' parameter :;''colstyle'' ::CSS style/s to apply across all columns; if used, usually <code>background:''color''</code> per ''titlestyle'' above. :;''oddcolstyle'' :;''evencolstyle'' ::CSS style/s to apply to all odd/even-numbered columns, respectively. :;''col<sub>n</sub>style'' ::CSS style/s to apply to the n<sup>th</sup> column only. :;''colheaderstyle'' ::CSS style/s to apply to all column headers. :;''col<sub>n</sub>headerstyle'' ::CSS style/s to apply to the n<sup>th</sup> column header. :;''col<sub>n</sub>footerstyle'' ::CSS style/s to apply to the n<sup>th</sup> column footer cell. ===Columns parameters=== :;''colwidth'' ::Width, preferably in a proportional unit such as '[[Em (typography)|em]]', or as a percentage, used for each column whose width not specified by ''colNwidth'' below. Defaults to 10em. Examples: :::<code>colwidth = 15em</code> :::<code>colwidth = 25%</code> :;''fullwidth'' ::If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%. A rather advanced parameter, this usually need not be used and should be left blank. If a colheader or colfooter is used, then fullwidth is used automatically. Example: :::<code>fullwidth = true</code> :;''padding'' ::Padding before first column, preferably in a proportional unit. Defaults to 5em. Padding is disabled by setting it to 0 (or 0em, or 0%). :;''col<sub>n</sub>width'' ::The n<sup>th</sup> column's width (overrides ''colwidth'' above). :;'''''col<sub>n</sub>''''' ::The content of the n<sup>th</sup> column. If any columns are used, then <code>col1</code> is required. There can be a maximum of 20 columns. :;''col<sub>n</sub>header'' ::A header cell for the n<sup>th</sup> column that appears above the column. See below for examples. :;''col<sub>n</sub>footer'' ::A footer cell that appears below the n<sup>th</sup> column. :;''col<sub>n</sub>headercolspan'' ::A number specifying how many columns the n<sup>th</sup> column header should span. It defaults to 1. If it is greater than one, then do not specify column headers that it covers. For example, if <code>col1headercolspan = 3</code>, then leave <code>col2header</code> and <code>col3header</code> blank. :;''col<sub>n</sub>footercolspan'' ::A number specifying how many columns the n<sup>th</sup> column footer should span. It defaults to 1. If it is greater than one, then do not specify column footers that it covers. For example, if <code>col1footercolspan = 3</code>, then leave <code>col2footer</code> and <code>col3footer</code> blank. ===Additional groups/lists=== You may wish to add a few extra groups and/or lists below the columns. The following parameters are given to provide such functionality. See {{t1|Navbox}} for a more complete description of how they work, and for more examples. :;''group<sub>n</sub>''<ref name="common"/> ::Allows up to 6 additional groups to go along with the lists below the columns. :;''list<sub>n</sub>''<ref name="common"/> ::Allows up to 6 additional lists below the columns. :;''groupstyle''<ref name="common"/> ::The general CSS style/s for the groups. :;''group<sub>n</sub>''style<sup>†</sup> ::CSS style/s for the n<sup>th</sup> group parameter.<ref name="common"/> :;''liststyle''<ref name="common"/> ::The general CSS style/s for the lists. :;''list<sub>n</sub>style'' ::CSS style/s for the n<sup>th</sup> list parameter. :;''listpadding''<ref name="common"/> ::Amount of padding to have in each list cell. :; ''oddstyle'' :; ''evenstyle'' ::Applies to odd/even list numbers. Overrules styles defined by ''liststyle''. The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability. These should not be changed except in extraordinary circumstances. :; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span> ::See {{t1|Navbox}} for description.
Redigeringsforklaring:
Merk at alle bidrag til Wikisida.no anses som frigitt under Creative Commons Navngivelse-DelPåSammeVilkår (se
Wikisida.no:Opphavsrett
for detaljer). Om du ikke vil at ditt materiale skal kunne redigeres og distribueres fritt må du ikke lagre det her.
Du lover oss også at du har skrevet teksten selv, eller kopiert den fra en kilde i offentlig eie eller en annen fri ressurs.
Ikke lagre opphavsrettsbeskyttet materiale uten tillatelse!
Avbryt
Redigeringshjelp
(åpnes i et nytt vindu)
Forhåndsvis en side som bruker denne malen
Denne siden er medlem av 1 skjult kategori:
Kategori:Sider hvor ekspansjonsdybden er overskredet
Navigasjonsmeny
Personlige verktøy
Ikke logget inn
Brukerdiskusjon
Bidrag
Opprett konto
Logg inn
Navnerom
Mal
Diskusjon
norsk bokmål
Visninger
Les
Rediger kilde
Vis historikk
Mer
Navigasjon
Forside
Siste endringer
Tilfeldig side
Hjelp til MediaWiki
Verktøy
Lenker hit
Relaterte endringer
Spesialsider
Sideinformasjon