Changes
no edit summary
{{distinguishHatnote|Template:Userbox}}{{Documentation subpage}}<includeonly>{{#ifeq:{{#titleparts:{{PAGENAME}}|1|2}}|old | |{{High-risk|3,160,000+ pages, which is ≈ {{#expr:For other possible meanings see [[Subject's last name (316000000/{{NUMBEROFPAGES:R}}disambiguation) round 0}}% of all |info=About [https://en.wikipedia.org/w/index.php?search=hastemplate%3Ainfobox&title=Special:Search&profile=default&fulltext=1&searchToken=69ttd5z1iekjo54r1z2qvq3uo 3,160,000] pages (96%) are in mainspace; 3,160,000 of the {{NUMBEROFARTICLES}} pages in mainspace that qualify as articles transclude infoboxes ({{#expr:(316000000/{{NUMBEROFARTICLES:R}}) round 0}}%).}}{{Lua|Module:Infobox}}}}</includeonly>{{Parameter names example |name={{PAGENAME]}} <!--|child |subbox |decat--> |title |above |subheader |subheader1 |subheader2={{{subheader2}}}<br/>...... |image|caption |image1|caption1 |image2|caption2={{{caption2}}}<br/>...... |header1=<div style="border-top:1px dashed #ccc;">{{{header1}}}<br/>{{nobold|( ''or'' )}}</div> |label2={{{label1}}} |data2={{{data1}}} |data3=( ''or'' ) |data4=<div style="padding-bottom:0.25em;border-bottom:1px dashed #ccc;">{{{data1}}}</div> |header5={{{header2}}}<br/><div style="padding:0.75em 0 0.5em;">{{nobold|( ''or'' )}}</div> |label6={{{label2}}} |data6={{{data2}}} |data7=( ''or'' ) |data8=<div style="padding-bottom:0.25em;border-bottom:1px dashed #ccc;">{{{data2}}}</div> |data9=<div style="padding:0.75em 0 0.5em;">( ''etc'' )</div> |below}} This template is intended as a meta template: a template used for constructing other templates. '''Note''': In general, it is not meant for use directly in an article, but can be used on a one-off basis if required. [[Help:Infobox]] contains an introduction about the recommended content and design of infoboxes; [[Wikipedia:Manual of Style/Infoboxes]] contains additional style guidelines. See [[WP:List of infoboxes]] and [[:Category:Infobox templates]] for lists of prepared topic-specific infoboxes. == Usage ==Usage is similar to {{tl|navbox}}, but with an additional distinction. Each row on the table can contain either a header, or a label/data pair, or just a data cell. These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored. To insert an image somewhere other than at the top of the infobox, or to insert freeform data, use a row For subjects with only a data field. == Optional control parameters ==; name : If this parameter is present, "view/discuss/edit" links will be added to the bottom of the infobox, pointing to the named page. You may use the value <nowiki>{{subst:PAGENAME}}</nowiki>; however this is rarely what you want, because it will send users clicking these links in an infobox in an article to the template code rather than the data in the infobox that they probably want to change.; child : See the [[#Embedding|Embedding]] section for details. If this is set to "yes", this child infobox should be titled but have no name parameter. This parameter is empty by default, set it to "yes" to activate it.; subbox : See the [[#Subboxes|Subboxes]] section for details. If this is set to "yes", this subbox should be titled but have no single name parameter. This parameter is empty by default, set to "yes" to activate it. It has no effect if the '''child''' parameter is also set to "yes".; decat : If this is set to "yes", the current page will not be autocategorized in a maintenance category when the generated infobox has some problems or no visible data section. Leave empty by default or set to "yes" to activate it. == Content parameters == === Title ===There are two different ways to put a title on an infobox. One contains the title inside the infobox's border in the uppermost cell of the table, the other puts as a caption it on top of the table. You can use both of them together if you like, or just one or the other, or even neither (though this is not recommended): ; title : Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox)necessary. For [[Wikipedia:Manual of Style/Accessibility#Tables|accessibility reasons]], this is the most recommended alternative.; above : Text to put within the uppermost cell of the table.; subheader(n) : additional title fields which fit below {{{title}}} and {{{above}}}, but before images. Examples: {{Infobox | name = Infobox/doc | title = Text in caption over infobox | subheader = Subheader of the infobox | header = (the rest of the infobox goes here)}}<pre style="overflow:auto">{{Infobox | name = {{subst:PAGENAME}} | title = Text in caption over infobox | subheader = Subheader of the infobox | header = (the rest of the infobox goes here)}}</pre-->{{clear}}
<!-- The Infobox_Biography entries are examples only-->{{Infoboxperson | name = Infobox/docOmeedan Mohammedreshid Mohammed| image = [[File:Humaidan.jpg|thumb|Humaidan]] | above image = Text in uppermost cell of infobox[[File:Omeedan with his mother.jpg|thumb|+ mother]] | subheader image = Subheader of the infobox[[File:Omeedan h.png|thumb|have fun]] | subheader2 image_size = Second subheader of the infobox180px| caption = Student| header birth_date = 2 September, 1998 (the rest of the infobox goes hereage 20 years)}}| birth_place = Jimma , Ethiopia<pre style| death_date ="overflow:auto">{{Infobox| death_place = | name occupation = {{subst:PAGENAME}}[[Student]] | above spouse = Text in uppermost cell of infobox[[single]] | subheader father = Subheader of the infoboxHaji Mohammedreshid mohammed | subheader2 mother = Second subheader of the infoboxZenaba A/Gumbul | header Brother = Mutasim , Bashar, Sabri,(the rest of the infobox goes here10)| children = no children
}}
==Biography= Main data =Ensure that the following sections are organized by year. For instance, the section ''Marriage and children'' might be presented before or after the ''Expanded descriptions'', and [[List_of_Latin_phrases:_V#vice_versa|vice versa]].===Early life===; header(n) <!-- [[Image: Text to use as a header in row nSubject's earliest portrait.ext|thumb|right|Photo caption]] -->; label(n) : Text to use as Explain the subject's early life historically using a label in row njournalistic style.; data<ref>Last, first (ndate) . [http: Text to display as data in row n//URL Name of page]. Page xx. Publisher: xxxx</ref>
==== Number ranges =Videos===To allow flexibility when the layout of an infobox is changed[''If applicable''] '''Legacy''' If any, it may be helpful when developing an infobox to use non-contiguous numbers for header and label/data rowsdescribe. Parameters See [[Charles Darwin]] for new rows can then be inserted in future without having to renumber existing parametersexample. For example:
==== Making data fields optional ==Honours, decorations, awards and distinctions==A row with a label but no data is not displayed. This allows for the easy creation of optional infobox content rows. To make a row optional use a parameter that defaults to an empty string, like so:(If any)