"साचा:माहितीचौकट/doc" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
No edit summary
No edit summary
ओळ १०:
 
====पहा/चर्चा/संपादन दुवे====
;name : The साचा पान page name that the "view/discuss/edit" links should point to. You can use <nowiki>{{subst:PAGENAME}}</nowiki>. If this parameterपॅरामीटर is omitted the view/discuss/edit links will not be displayed.
 
====शीर्षक====
ओळ ५०:
==== मायक्रो फॉर्मॅट्स ====
 
;bodyclass: This parameterपॅरामीटर is inserted into the "class" attribute for the infobox as a whole
;class(n): This parameterपॅरामीटर is inserted into the "class" attribute for the data cell of the specified row. If there's no data cell it has no effect.
;titleclass: This parameterपॅरामीटर is inserted into the "class" attribute for the infobox's title caption.
;aboveclass: This parameterपॅरामीटर is inserted into the "class" attribute for the infobox's above cell.
 
This साचा supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. To flag an infobox as containing hCard information, for example, add the following parameterपॅरामीटर:
 
<pre>|bodyclass= vcard</pre>
 
And for each row containing a data cell that's part of the vcard, add a corresponding class parameterपॅरामीटर:
 
<pre>|class1= fn
ओळ ७२:
===फील्ड्सना वैकल्पीक बनवणे===
 
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:
 
<pre>
ओळ ७९:
</pre>
 
This way if an article doesn't define the population parameterपॅरामीटर in its infobox the row won't be displayed.
 
For more complex fields with pre-formated contents that would still be present even if the parameterपॅरामीटर wasn't set, you can wrap it all in an "if" statement to make the whole thing vanish when the parameterपॅरामीटर is not used. Example:
 
<pre>
ओळ १०४:
</pre>
 
header1 will be shown if any of item_one, item_two, or item_three is defined. If none of the three parametersपॅरामीटर्स are defined the header won't be shown.
 
The trick to this is that the "if" returns false only if there is nothing whatsoever in the conditional section, so only if all three of item_one, item_two and item_three are undefined will the if statement fail.
ओळ २२५:
<br clear="all"/>
 
This example is the same as the above but shows the use of the "above" parameterपॅरामीटर for an alternate title style:
 
{{माहितीचौकट