User talk:Count Zero: Difference between revisions

From ReplayResources
Jump to navigationJump to search
No edit summary
No edit summary
Line 13: Line 13:
[[Category:Hardware Gallery]]
[[Category:Hardware Gallery]]
</pre>
</pre>
==Infobox==
===Examples===
{{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
}}
<pre style="overflow:auto">{{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
}}</pre>
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.
{{clear}}
For this example, {{nowrap|bodystyle &#0061; width:20em;}} and {{nowrap|labelstyle &#0061; width:33%;}}
{{Infobox
|bodystyle  = width:20em;
|name        = Infobox/doc
|title      = Test Infobox
|titlestyle  =
|headerstyle =
|labelstyle  = width:33%
|datastyle  =
|header1 =
|label1  = Label 1
|data1  = Data 1
|header2 =
|label2  = Label 2
|data2  = Data 2
|header3 =
|label3  = Label 3
|data3  = Data 3
|header4 = Header 4
|label4  =
|data4  =
|header5 =
|label5  = Label 5
|data5  = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|belowstyle =
|below = Below text
}}
{{clear}}

Revision as of 14:50, 22 November 2009

Templates

For file uploads:

== {{int:filedesc}} ==
{{Information
|Description=
|Source=
|Date=
|Author=
}}

[[Category:Hardware Gallery]]

Infobox

Examples

Test Infobox
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%;

Test Infobox
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