साँचा:Left margin/doc
यह एक साँचा विवरण उपपृष्ठ है, साँचा:Left margin के लिए। इस पन्ने पर ऐसी जानकारियाँ हैं जो, श्रेणीकरण एवं अन्य चीजों से संबंधित हैं जो मूल साँचा पृष्ठ पर नहीं हैं। |
Usage
सम्पादनThis template formats text with an indented left margin; that is, an indent that applies to all lines.
- Usage
- {{Left margin|size of margin|text}}
- Example
{{Left margin|2em|{{lorem ipsum}}}}
produces:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
- Text-indent example
{{Left margin|2em|{{lorem ipsum}}|1em}}
produces:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
- Margin-right example
{{Left margin|2em|{{lorem ipsum}}||2em}}
produces:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
As open and close tags
सम्पादनThis template is also available in an open and close format where the <div> needs to span a page break in the Page namespace.
- {{Left margin/s}} to open
- {{Left margin/e}} to close
- Example
{{Left margin/s|3em}}{{lorem ipsum}}{{Left margin/e}}
yields
साँचा:Left margin/sLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.साँचा:Left margin/e
Alternative usage
सम्पादनYou can avoid to pass the text content as parameter 2, using the template as a "div begin", then closing the template with a tag </div> at the end of the text.
- Example
{{Left margin|2em}}{{lorem ipsum}}</div>
produces: