Template:Indent/s

From Wikisource
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

This is the page-crossing variant of {{indent}}.

Usage[edit]

Three forms are supported:

Form 1: Creates a default 3em indenting effect

  • Here is a default example
{{indent/s}}{{lorem ipsum}}{{indent/e}}
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.

Form 2: With a single parameter, indent the specified number of ems

  • Here is a 5em example
{{indent/s|5}}{{lorem ipsum}}{{indent/e}}
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.
  • Here is a 1em example
{{indent/s|1}}{{lorem ipsum}}{{indent/e}}
  • 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.

Form 3: With two parameters, indent the content given in {{parameter|1}} by the specified number of ems given as {{parameter|2}}

  • Here is a 7em example
{{indent/s|{{lorem ipsum}}|7}}{{indent/e}}
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.

Cross-page example:

  • On initial page:
    Content area:
    {{indent/s|First page content|1}}
    Footer area:
    {{indent/e}}
  • On continuation page:
    Header area:
    {{indent/c}}
    Content area:
    Continuation content
    Footer area:
    {{indent/e}}
  • On final page:
    Header area:
    {{indent/c}}
    Content area:
    End of content
    {{indent/e}}