Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Left/doc: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1:
{{doc-sub}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE AND INTERWIKIS IN WIKIDATA -->
 
=== Usage ===
Line 6 ⟶ 5:
Left aligns text with a <code>&lt;div></code>
 
<syntaxhighlight lang="html5" enclose="div">{{left|here is left-aligned text with a 5em offset|offset=5em}}</syntaxhighlight>
 
{{left|here is left-aligned text with a 5em offset|offset=5em}}
 
Where the block of text to be formatedformatted extends over a page-break {{tl|left/s}} and {{tl|left/e}} should be used. {{tl|left/s}} accepts the {{parameter|offset}} parameter.
 
Body of first page:
<syntaxhighlight lang="html5" >
{{left/s|offset=5em}}
here is left-aligned text
</syntaxhighlight>
Footer:
<syntaxhighlight lang="html5" >
{{left/e}}
</syntaxhighlight>
 
Header (of second page):
<syntaxhighlight lang="html5" >
{{left/s|offset=5em}}
</syntaxhighlight>
 
Body of second page:
<syntaxhighlight lang="html5" >
with a 5em offset
{{left/e}}
</syntaxhighlight>
 
=== See also ===
Line 18 ⟶ 37:
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS -->
[[Category:Special effects templatesTemplate]]
[[Category:Formatting templates]]
</includeonly>

Latest revision as of 23:19, 28 April 2020

This is a documentation subpage for Template:Left.
It contains usage information, categories and other content that is not part of the original template page.


Usage

Left aligns text with a <div>

{{left|here is left-aligned text with a 5em offset|offset=5em}}
here is left-aligned text with a 5em offset

Where the block of text to be formatted extends over a page-break {{left/s}} and {{left/e}} should be used. {{left/s}} accepts the offset parameter.

Body of first page:

{{left/s|offset=5em}}
here is left-aligned text

Footer:

{{left/e}}

Header (of second page):

{{left/s|offset=5em}}

Body of second page:

with a 5em offset
{{left/e}}

See also


Cookies help us deliver our services. By using our services, you agree to our use of cookies.