User talk:Count Zero: Difference between revisions
From ReplayResources
Jump to navigationJump to search
Count Zero (talk | contribs) No edit summary |
Count Zero (talk | contribs) No edit summary |
||
Line 120: | Line 120: | ||
{{clear}} | {{clear}} | ||
<br/><hr/> | |||
; Code | |||
<pre> | |||
{{columns |bgcol=beige |width=8.5em |gap=3.25em | |||
|col1 = | |||
* These | |||
* columns | |||
* are | |||
* more | |||
* complex | |||
|col2 = | |||
The<br/>background<br/>is<br/>beige | |||
|col3 = | |||
; Each : column | |||
; is : 8.5[[Em (typography)|em]] | |||
; wide | |||
|col4 = | |||
{{{!}} | |||
!colspan="2"{{!}} and | |||
{{!-}} | |||
{{!}} the {{!!}} gap | |||
{{!-}} | |||
{{!}}colspan="2"{{!}} between | |||
{{!-}} | |||
{{!}} each {{!!}} is | |||
{{!-}} | |||
!colspan="2" align="center"{{!}} 3.25em | |||
{{!}}} | |||
}} | |||
</pre> | |||
; Result | |||
{{columns |bgcol=beige |width=8.5em |gap=3.25em | |||
|col1 = | |||
* These | |||
* columns | |||
* are | |||
* more | |||
* complex | |||
|col2 = | |||
The<br/>background<br/>is<br/>beige | |||
|col3 = | |||
; Each : column | |||
; is : 8.5[[Em (typography)|em]] | |||
; wide | |||
|col4 = | |||
{{{!}} | |||
!colspan="2"{{!}} and | |||
{{!-}} | |||
{{!}} the {{!!}} gap | |||
{{!-}} | |||
{{!}}colspan="2"{{!}} between | |||
{{!-}} | |||
{{!}} each {{!!}} is | |||
{{!-}} | |||
!colspan="2" align="center"{{!}} 3.25em | |||
{{!}}} | |||
}} |
Revision as of 14:18, 22 November 2009
Templates
For file uploads:
== {{int:filedesc}} == {{Information |Description= |Source= |Date= |Author= }} [[Category:Hardware Gallery]]
Infobox
Examples
File:Example.png Caption for example.png | |
Header defined alone | |
---|---|
Data defined alone | |
All three defined (header) | |
Label and data defined (label) | Label and data defined (data) |
Below text |
{{Infobox |name = Infobox/doc |bodystyle = |title = Test Infobox |titlestyle = |image = [[File:example.png|200px|alt=Example alt text]] |imagestyle = |caption = Caption for example.png |captionstyle = |headerstyle = background:#ccf; |labelstyle = background:#ddf; |datastyle = |header1 = Header defined alone |label1 = |data1 = |header2 = |label2 = Label defined alone |data2 = |header3 = |label3 = |data3 = Data defined alone |header4 = All three defined (header) |label4 = All three defined (label) |data4 = All three defined (data) |header5 = |label5 = Label and data defined (label) |data5 = Label and data defined (data) |belowstyle = background:#ddf; |below = Below text }}
Notice how when a label is defined without an accompanying data cell the row doesn't appear in the displayed infobox, and when a header is defined on the same row as a data cell the header takes precedence.
For this example, bodystyle = width:20em; and labelstyle = width:33%;
Label 1 | Data 1 |
---|---|
Label 2 | Data 2 |
Label 3 | Data 3 |
Header 4 | |
Label 5 | Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
Below text |
- Code
{{columns |bgcol=beige |width=8.5em |gap=3.25em |col1 = * These * columns * are * more * complex |col2 = The<br/>background<br/>is<br/>beige |col3 = ; Each : column ; is : 8.5[[Em (typography)|em]] ; wide |col4 = {{{!}} !colspan="2"{{!}} and {{!-}} {{!}} the {{!!}} gap {{!-}} {{!}}colspan="2"{{!}} between {{!-}} {{!}} each {{!!}} is {{!-}} !colspan="2" align="center"{{!}} 3.25em {{!}}} }}
- Result
|
The |
|
|
|