Editing
Template:Infobox/doc
Jump to navigation
Jump to search
β οΈ
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 instead of your IP, along with other benefits.
Anti-spam check. Do
not
fill this in!
You should use [[:Category:Infobox templates|a more specific infobox template]] if one is available. This template is the base for all infoboxes. There is more detailed documentation [[wp:Template:Infobox|on Wikipedia]]. == Usage == === In a template === When creating another infobox template, the code might look something like this: <pre> {{Infobox | title = {{{title|}}} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | caption = {{{caption|}}} | headerstyle = background:#0a5ba6;color:#fff; <!-- This line makes it so headers in the infobox are white text on a blue background. --> | header1 = Discord info | label2 = Discord tag | data2 = {{{discordtag|}}} | label3 = Discord ID | data3 = {{{discordid|}}} }} </pre> === Directly in an article === This template usually shouldn't be used directly in articles. You should use [[:Category:Infobox templates|a more specific infobox template]] if one is available. If there isn't a better option, then here is what using this directly in an article might look like: <pre> {{Infobox | title = Barack Obama | image = [[File:Obama crying.jpg|180px]] | caption = Obama why the long face??? | headerstyle = background:#0a5ba6;color:#fff; | header1 = Discord info | label2 = Discord tag | data2 = Obama#0001 | label3 = Discord ID | data3 = 123456789012345678 }} </pre> == Full blank syntax == Note that there's no limit to the number of possible rows; this example stops at 20 since most infoboxes aren't that long. You can extend the numbering as needed. <pre> {{Infobox | name = {{subst:PAGENAME}} | child = {{{child|}}} <!-- This parameter can be used if this infobox is being embedded inside another infobox. --> | subbox = {{{subbox|}}} | italic title = | bodystyle = | titlestyle = | abovestyle = | subheaderstyle = | title = | above = | subheader = | imagestyle = | captionstyle = | image = | caption = | image2 = | caption2 = | headerstyle = | labelstyle = | datastyle = | header1 = | label1 = | data1 = | header2 = | label2 = | data2 = | header3 = | label3 = | data3 = | header4 = | label4 = | data4 = | header5 = | label5 = | data5 = | header6 = | label6 = | data6 = | header7 = | label7 = | data7 = | header8 = | label8 = | data8 = | header9 = | label9 = | data9 = | header10 = | label10 = | data10 = | header11 = | label11 = | data11 = | header12 = | label12 = | data12 = | header13 = | label13 = | data13 = | header14 = | label14 = | data14 = | header15 = | label15 = | data15 = | header16 = | label16 = | data16 = | header17 = | label17 = | data17 = | header18 = | label18 = | data18 = | header19 = | label19 = | data19 = | header20 = | label20 = | data20 = | belowstyle = | below = }} </pre> <includeonly> [[Category:Infobox templates| ]] </includeonly>
Summary:
Please note that all contributions to Irony Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Irony Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Purge cache
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Page values