Content added Content deleted
({{documentation}}) |
No edit summary |
||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{doc-sub}} |
|||
{{Documentation subpage}} |
|||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE AND INTERWIKIS IN WIKIDATA --> |
|||
=== Usage === |
=== Usage === |
||
Line 6: | Line 5: | ||
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}} |
||
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. |
|||
<!-- uncomment as necessary |
|||
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]] |
|||
--> |
|||
<includeonly> |
<includeonly> |
||
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS --> |
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS --> |
||
[[Category:Template]] |
|||
[[Category:Formatting templates]] |
|||
</includeonly> |
</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