ਫਰਮਾ:Inline block/doc
UsageThe template {{Inline block}} creates an element—by default a One intended use is to replace {{nowrap}} when coding templates with complex layout, which need to display differently on mobile and desktop. Like {{nowrap}}, it holds content together and avoids wrapping it where possible. However, if necessary, such as on small screens, the content will wrap. Example of wrapping controlIn each case the outline represents a width constraint, which might be affected by the user's screen size, other parts of the template, or both.
1 (red)=Gas 3 (black)=Solid 80 (green)=Liquid Color of the atomic number shows state of matter (at 0 °C and 1 atm)
1 (red)=Gas 3 (black)=Solid 80 (green)=Liquid Color of the atomic number shows state of matter (at 0 °C and 1 atm)
1 (red)=Gas 3 (black)=Solid 80 (green)=Liquid Color of the atomic number shows state of matter (at 0 °C and 1 atm)
Here, each grey box and the text "Color of ..." are wrapped in {{inline block}} templates. If {{nowrap}} had been used instead, there would be no visible difference in the first two cases. In the third case, however, the text would have been unable to wrap into the space available. On mobile, this might mean that a table or the whole article is forced to become horizontally scrollable. TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Inline block based on its TemplateData.
TemplateData for Inline block The template {{Inline block}} creates an inline-block element. Among other uses, it can replace {{nowrap}} when coding templates with complex layout.
See also
|
Portal di Ensiklopedia Dunia