Difference between revisions of "Template:History"

From eRepublik Official Wiki
Jump to: navigation, search
(usage and cat added)
(note about the last day in the month; correcting first days in the month)
Line 7: Line 7:
 
| width="30%" | '''Succeeded by'''
 
| width="30%" | '''Succeeded by'''
 
|-
 
|-
| [[History/{{{prev|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}|{{{prev|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}<br/>Day {{Day|{{{prev|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}} }}]]
+
| [[History/{{{prev|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}|{{{prev|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}<br/>Day {{Day|{{{prev|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}-1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}} }}]]
 
| '''{{{1|{{SUBPAGENAME}}}}}<br/>Day {{Day|{{{1|{{SUBPAGENAME}}}}} }}'''
 
| '''{{{1|{{SUBPAGENAME}}}}}<br/>Day {{Day|{{{1|{{SUBPAGENAME}}}}} }}'''
| [[History/{{{next|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}|{{{next|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}<br/>Day {{Day|{{{next|{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}} }}]]
+
| [[History/{{{next|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}|{{{next|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}}<br/>Day {{Day|{{{next|{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}}}} }}]]
 
|}
 
|}
 
<!-- THINGS USED IN TEMPLATE:
 
<!-- THINGS USED IN TEMPLATE:
{{#time: d F Y| {{#expr: {{#time: d|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}
+
{{#time: j F Y| {{#expr: {{#time: j|{{{1|{{SUBPAGENAME}}}}} }}+1}} {{#time: F Y|{{{1|{{SUBPAGENAME}}}}} }} }}
 
| [[History/{{{prev|}}}|{{{prev|}}}<br/>Day {{Day|{{{prev|}}} }}]]
 
| [[History/{{{prev|}}}|{{{prev|}}}<br/>Day {{Day|{{{prev|}}} }}]]
 
| '''{{{1|{{SUBPAGENAME}}}}}<br/>Day {{Day|{{{1|{{SUBPAGENAME}}}}} }}'''
 
| '''{{{1|{{SUBPAGENAME}}}}}<br/>Day {{Day|{{{1|{{SUBPAGENAME}}}}} }}'''
Line 23: Line 23:
  
 
'''Note''': ''All of the dates (Date and eRepublik day) are calculated automatically.''
 
'''Note''': ''All of the dates (Date and eRepublik day) are calculated automatically.''
 +
 +
'''Problem with the last day in the month'''. At the moment, template doesn't work in the last day of the month, so don't use it there.
  
 
==Example==
 
==Example==

Revision as of 04:01, 4 June 2015

Usage

Simply put {{History}} at the bottom of the article.

This template is to be used only on History pages that start with History/DATE as the template uses DATE to setup everything.

Note: All of the dates (Date and eRepublik day) are calculated automatically.

Problem with the last day in the month. At the moment, template doesn't work in the last day of the month, so don't use it there.

Example

How the template would look like if you add History template on page History/29 April 2024


Preceded by History of the New World Succeeded by
28 April 2024
Day 6004
29 April 2024
Day 6005
30 April 2024
Day 6006