Difference between revisions of "Template:Ai"

From Data JW United
Jump to navigation Jump to search
(Tree items)
Line 17: Line 17:
 
<code><nowiki>{{ai|3|first|second|third}}</nowiki></code>
 
<code><nowiki>{{ai|3|first|second|third}}</nowiki></code>
 
<div style="background: #f3efef; max-width: 200px">{{ai|3|first|second|third}}</div>
 
<div style="background: #f3efef; max-width: 200px">{{ai|3|first|second|third}}</div>
 +
== Other cases ==
 +
<code><nowiki>{{ai|3||Watchtower|23}}</nowiki></code>
 +
<div style="background: #f3efef; max-width: 200px">{{ai|3||Watchtower|23}}</div>
  
 
</noinclude>
 
</noinclude>

Revision as of 14:21, 13 June 2020

<ai> - stands for "align items". Used for horizontaly align items. Usages examples: aligning items used in the header or footer of a page.

One item

Align left

{{ai|1|l|Content}}

content

Align center

{{ai|1|c|Content}}

content

Align right

{{ai|1|r|Content}}

content

Two items

{{ai|2|first|second}}

first
second

Tree items

{{ai|3|first|second|third}}

first
second
third

Other cases

{{ai|3||Watchtower|23}}

Watchtower
23