• Home
  • Random
  • એકત્ર ગ્રંથાલય
  • Log in
  • Settings
  • About Ekatra Foundation
  • Disclaimers
Ekatra Foundation

Template:Left margin/s

  • Language
  • Watch
  • View source
< Template:Left margin
Template documentation[view] [edit] [history] [purge]
Shortcut:
{{lm}}

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:

Script error: The function "lorem_ipsum" does not exist.

Text-indent example
{{Left margin|2em|{{lorem ipsum}}|1em}}

produces:

Script error: The function "lorem_ipsum" does not exist.

Margin-right example
{{Left margin|2em|{{lorem ipsum}}||2em}}

produces:

Script error: The function "lorem_ipsum" does not exist.

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
Script error: The function "lorem_ipsum" does not exist.

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:

Script error: The function "lorem_ipsum" does not exist.
The above documentation is transcluded from Template:Left margin/doc. (edit | history)
Editors can experiment in this template’s sandbox (create | mirror) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://wiki.ekatrafoundation.org/index.php?title=Template:Left_margin/s&oldid=59618"
Last edited on 1 April 2023, at 00:03

Languages

    This page is not available in other languages.

    Ekatra Foundation
    • Powered by MediaWiki
    • This page was last edited on 1 April 2023, at 00:03.
    • This page has been accessed 687 times.
    • Privacy policy
    • About Ekatra Foundation
    • Disclaimers
    • Desktop