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
(updated)
 
Line 1: Line 1:
<noinclude>{{documentation subpage}}</noinclude>
{{doc-sub}}
This template left aligns text with a <code>&lt;div></code>


Using the following → <code><nowiki>{{left|here is left-aligned text with a 5em offset|offset=5em}}</nowiki></code>
=== Usage ===


Gives: {{left|here is left-aligned text with a 5em offset|offset=5em}}
Left aligns text with a <code>&lt;div></code>

<syntaxhighlight lang="html5" >{{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 formatted 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 ===
=== See also ===
* [[Template:Right]]
* [[Template:Right]]

<includeonly>
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS -->
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS -->

Latest revision as of 01:06, 4 July 2024

This template left aligns text with a <div>

Using the following → {{left|here is left-aligned text with a 5em offset|offset=5em}}

Gives:

here is left-aligned text with a 5em offset

See also

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