ਫਰਮਾ:Gallery layout/doc
Demo: Test the sample content at the top of the Template:Gallery layout page by changing your browser window width to very narrow, medium, and very wide. UsageAs a total wrapper, use {{Gallery layout|1=
[First block of content here]
[Second block here]
[Third block here]
}}
As a wrapper-start tag, it is used with the {{Gallery layout}}
[First block of content here]
[Second block here]
[Third block here]
{{Gallery layout end}}
Content blocksThe easy way to do a content block is to wrap each with {{gallery layout content|1=
Sample content: Lorem ipsum dolor sit amet,<br />consectetur adipiscing elit.
}}
or, if this doesn't work due to complex content: {{gallery layout content}}
Sample content: Lorem ipsum dolor sit amet,<br />consectetur adipiscing elit.
{{gallery layout content end}}
Manual CSS method: A content block can also be formed by adding specific CSS to an arbitrary HTML element that normally has a css display type of block (i.e., it will not work on an inline element like The demo at the top of the Template:Gallery layout page can be manually reproduced with the following: {{Gallery layout|1=
<div style="display: inline-block;">
;Sample content: Lorem ipsum dolor sit amet,<br />consectetur adipiscing elit.
</div>
<div style="display: inline-block;">
;Sample content: Sed do eiusmod tempor incididunt<br />ut labore et dolore magna aliqua.
</div>
<div style="display: inline-block;">
;Sample content: Ut enim ad minim veniam,<br />quis nostrud exercitation ullamco laboris.
</div>
<div style="display: inline-block;">
;Sample content: Nisi ut aliquip ex ea<br />commodo consequat.
</div>
}}
Output:
See also
|
Portal di Ensiklopedia Dunia