Content added Content deleted
mNo edit summary |
m (→Usage: remove deprecated components) |
||
Line 6: | Line 6: | ||
Left aligns text with a <code><div></code> |
Left aligns text with a <code><div></code> |
||
<syntaxhighlight lang="html5" |
<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}} |
{{left|here is left-aligned text with a 5em offset|offset=5em}} |
||
Line 13: | Line 13: | ||
Body of first page: |
Body of first page: |
||
<syntaxhighlight lang="html5" |
<syntaxhighlight lang="html5" > |
||
{{left/s|offset=5em}} |
{{left/s|offset=5em}} |
||
here is left-aligned text |
here is left-aligned text |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Footer: |
Footer: |
||
<syntaxhighlight lang="html5" |
<syntaxhighlight lang="html5" > |
||
{{left/e}} |
{{left/e}} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Header (of second page): |
Header (of second page): |
||
<syntaxhighlight lang="html5" |
<syntaxhighlight lang="html5" > |
||
{{left/s|offset=5em}} |
{{left/s|offset=5em}} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Body of second page: |
Body of second page: |
||
<syntaxhighlight lang="html5" |
<syntaxhighlight lang="html5" > |
||
with a 5em offset |
with a 5em offset |
||
{{left/e}} |
{{left/e}} |
Revision as of 06:22, 16 April 2020
documentation subpage for Template:Left.
This is a
In most cases it contains usage information, example, 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