ઢાંચો:Infobox/doc: આવૃત્તિઓ વચ્ચેનો તફાવત
Content deleted Content added
KartikMistry (ચર્ચા | યોગદાન) નાનું en:Template:Infobox/doc માંથી આયાત કરેલ ૪૦૦ પુનરાવર્તનો |
નાનું Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]; cosmetic changes |
||
લીટી ૧:
{{distinguish|Template:Userbox}}
{{Documentation subpage}}
<includeonly>{{#ifeq:{{#titleparts:{{PAGENAME}}|1|2}}|old | |{{High-risk|3000000+ pages, which is
{{Parameter names example
|name={{PAGENAME}} <!--|child |subbox |decat--> |title |above |subheader |subheader1 |subheader2={{{subheader2}}}<br/>......
લીટી ૧૫:
}}
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. [[
== Usage ==
લીટી ૩૩:
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). For [[
; 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.
લીટી ૧૦૨:
</pre>{{clear}}
It is also possible to automatically renumber parameter names by using [[
==== Making data fields optional ====
લીટી ૨૩૩:
...and so forth. "above" and "title" can also be given classes, since these are usually used to display the name of the subject of the infobox.
See [[
== Examples ==
લીટી ૨૫૨:
|imagestyle =
|captionstyle =
|image = [[
|caption = Caption displayed below File:Example-serious.jpg
લીટી ૪૯૫:
Note that omitting the {{para|title}} parameter, and not including any text preceding the embedded infobox, may result in spurious blank table rows, creating gaps in the visual presentation.
[[
== Subboxes ==
લીટી ૫૧૯:
| header6 = Main 6
}}
<
{{Infobox
| headerstyle = background-color:#eee;
લીટી ૫૩૯:
| header6 = Main 6
}}
</
Similar embedding techniques may be used within content parameters of some other templates generating tables (such as [[:Template:Sidebar|Sidebar]]) :
લીટી ૫૬૧:
| heading5 = Heading 5
}}
<
{{Sidebar
| navbar = off
લીટી ૫૮૦:
| heading5 = Heading 5
}}
</
Note that the default padding of the parent data cell containing each subbox is still visible, so the subboxes are slightly narrower than the parent box and there's a higher vertical spacing between standard cells of the parent box than between cells of distinct subboxes.
== Controlling line-breaking in embedded bulletless lists ==
Template {{tlx|nbsp}} may be used with {{tlx|wbr}} and {{tlx|nowrap}} to control line-breaking in bulletless lists embedded in infoboxes (e.g. cast list in {{tlx|Infobox film}}), to prevent wrapped long entries from being confused with multiple entries. See [[
== Full blank syntax ==
લીટી ૬૮૩:
== Porting to other MediaWikis ==
The infobox template requires the [[:mw:Extension:Scribunto|Scribunto]] extension and [[mw:Manual:Using content from Wikipedia#HTMLTidy|HTMLTidy]] to be installed. It may not work with other MediaWikis. [[
== See also ==
* [[
* [[
* {{tl|Infobox3cols}}
* {{tl|Navbox}} and {{tl|Sidebar}}
* [[
* [[:Module:InfoboxImage]]
* Maintenance categories:
લીટી ૬૯૬:
** [[:Category:Pages which use embedded infobox templates with the title parameter]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[
[[
[[
}}</includeonly>
== Tracking categories ==
* {{clc|Articles with missing Wikidata information}}
|