Template:Left margin/doc: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
en ws>Theknightwho
No edit summary
 
m (1 revision imported)
 
(No difference)

Latest revision as of 00:03, 1 April 2023

Lua error in package.lua at line 80: module 'strict' not found.

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, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lua error in package.lua at line 80: module 'strict' not found.

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

produces:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lua error in package.lua at line 80: module 'strict' not found.

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

produces:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lua error in package.lua at line 80: module 'strict' not found.

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.

Example

{{Left margin/s|3em}}{{lorem ipsum}}{{Left margin/e}}

yields

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lua error in package.lua at line 80: module 'strict' not found.

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:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lua error in package.lua at line 80: module 'strict' not found.