User:CIA391/Timeline: Difference between revisions
From Halopedia, the Halo wiki
(Gave the loop a go) |
(Have it stop looking at 3000 if it doesn't find one by then) |
||
Line 27: | Line 27: | ||
<pre> | <pre> | ||
{{#vardefine:i|2470}}{{#while: | {{#vardefine:i|2470}}{{#while: | ||
|{{#var:i}} | |{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}} | ||
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|{{#var:i}}{{#vardefine:i|}}}} | |{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} | ||
}} | }} | ||
</pre> | </pre> | ||
{{#vardefine:i|2470}}{{#while: | {{#vardefine:i|2470}}{{#while: | ||
|{{#var:i}} | |{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}} | ||
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|{{#var:i}}{{#vardefine:i|}}}} | |{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} | ||
}} | }} | ||
Revision as of 08:04, November 22, 2021
Put generic start line here (this is using a layout that Memory alpha uses here
Stuff to work on
1. Finish fixing up the current timeline. 2. Do work on making the info/nav/box work better. 3. Create decade and century pages. 4. Maybe create millennium pages. 5. Make main hub easy to understand plus have interesting stuff to draw the readers attention.
Current work that is here and there
Timeline design
Decades
- User:CIA391/2500s: This is a wip of 1 possible decade layout. Version 0.1
Years/Decades infobox
Work to get the loop working as intended
{{#vardefine:i|2470}}{{#while: |{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}} |{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} }}
Logic
- Start = 2470 (Page name)
- Goal = 2473 (Next page)
- Start = i
- If i is not a link + 1 (loop)
- If i is a link display
Likely need to use ifexist
{{#ifexist: 2473 | exists | no }}
Century/Millennium + Distant past infobox
- Timenav current.
- Distant past
- 1st millennium
- 1st century
- 2nd century
- 3rd century
- 4th century
- 5th century
- 6th century
- 7th century
- 8th century
- 9th century
- 10th century
- 2nd millennium
- 11th century
- 12th century
- 13th century
- 14th century
- 15th century
- 16th century
- 17th century
- 18th century
- 19th century
- 20th century
- 3rd millennium
- 21st century
- 22nd century
- 23rd century
- 24th century
- 25th century
- 26th century
- 27th century
- Far future
Timeline versions
We can go three routes here. 1. Follow the text version we have here 2. We go a wide spanning one that Memory Alpha has. 3. We do both! :D