Template:Left/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(4 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 -->
{{div based template}}
=== Usage ===
 
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}}
Line 13 ⟶ 12:
 
Body of first page:
<syntaxhighlight lang="html5" enclose="div">
{{left/s|offset=5em}}
here is left-aligned text
</syntaxhighlight>
Footer:
<syntaxhighlight lang="html5" enclose="div">
{{left/e}}
</syntaxhighlight>
 
Header (of second page):
<syntaxhighlight lang="html5" enclose="div">
{{left/s|offset=5em}}
</syntaxhighlight>
 
Body of second page:
<syntaxhighlight lang="html5" enclose="div">
with a 5em offset
{{left/e}}
</syntaxhighlight>
 
 
 
 
=== See also ===
Line 41 ⟶ 37:
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE AND INTERWIKIS IN WIKIDATA, THANKS -->
[[Category:Special effects templatesTemplate]]
[[Category:Formatting templates]]
</includeonly>