Difference between revisions of "Template:Ai"

From Data JW United
Jump to navigation Jump to search
m (Administrator moved page Template:Page to Template:Ai without leaving a redirect)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
This is used for creating pages with pagination.
 
This is used for creating pages with pagination.
= Top left page number =
+
= One item =
<code><nowiki>{{page|tf|50}}</nowiki></code>
+
== Align left ==
{{page|tf|50|Content}}
+
<code><nowiki>{{ai|1|l|Content}}</nowiki></code>
= Top right page number =  
+
<div style="background: #f3efef; max-width: 200px">{{ai|1|l|content}}</div>
<code><nowiki>{{page|tr|50}}</nowiki></code>
+
== Align center ==
{{page|tr|50|content}}
+
<code><nowiki>{{ai|1|c|Content}}</nowiki></code>
= Bottom center page number =
+
<div style="background: #f3efef; max-width: 200px">{{ai|1|c|content}}</div>
<code><nowiki>{{page|bc|50}}</nowiki></code>
+
== Align right ==
{{page|bc|50|content}}
+
<code><nowiki>{{ai|1|r|Content}}</nowiki></code>
= Bottom left page number =
+
<div style="background: #f3efef; max-width: 200px">{{ai|1|r|content}}</div>
<code><nowiki>{{page|bl|50}}</nowiki></code>
+
= Two items =
{{page|bl|50|content}}
+
<code><nowiki>{{ai|2|first|second}}</nowiki></code>
= Bottom right page number =
+
<div style="background: #f3efef; max-width: 200px">{{ai|2|first|second}}</div>
<code><nowiki>{{page|br|50}}</nowiki></code>
+
= Tree items =
{{page|br|50|content}}
+
<code><nowiki>{{ai|2|first|second|third}}</nowiki></code>
 +
<div style="background: #f3efef; max-width: 200px">{{ai|3|first|second|third}}</div>
 +
 
 
</noinclude>
 
</noinclude>
  
<includeonly>{{#ifeq: {{{1}}} |tf| tf }}{{#ifeq: {{{1}}} |tr| tr }}{{#ifeq: {{{1}}} |br| br }}{{#ifeq: {{{1}}} |bl| bl }}{{#ifeq: {{{1}}} |bc| bc }}</includeonly>
+
<includeonly>{{#ifeq: {{{1}}} |1| {{#ifeq: {{{2}}} |l| <div style="padding: 10px 20px;">{{{3}}}</div> }}
 +
{{#ifeq: {{{2}}} |c| <div style="text-align:center;padding: 10px 20px;">{{{3}}}</div> }}
 +
{{#ifeq: {{{2}}} |r| <div style="text-align:right;padding: 10px 20px;">{{{3}}}</div> }} }} {{#ifeq: {{{1}}} |2| <div style="padding: 10px 20px;display:flex"><div style="flex:1">{{{2}}}</div><div style="flex:1;text-align:right">{{{3}}}</div></div> }} {{#ifeq: {{{1}}} |3| <div style="padding:10px 20px;display:flex;justify-content:space-between;"><div>{{{2}}}</div><div>{{{3}}}</div><div>{{{4}}}</div></div> }}</includeonly>

Revision as of 14:31, 7 June 2020

This is used for creating pages with pagination.

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|2|first|second|third}}

first
second
third