User:CIA391/Timeline: Difference between revisions
From Halopedia, the Halo wiki
(Have it stop looking at 3000 if it doesn't find one by then) |
No edit summary |
||
Line 31: | Line 31: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#vardefine:i|2610}}{{#while: | |||
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}} | |||
|{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} | |||
}} | |||
{{#vardefine:i|2470}}{{#while: | {{#vardefine:i|2470}}{{#while: | ||
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}} | |||
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} | |||
}} | |||
{{#vardefine:i|{{PAGENAME}}}}{{#while: | |||
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}<3000|true}}}} | |{{#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|}}}} | ||
}} | |||
{{#vardefine:i|{{PAGENAME}}}}{{#while: | |||
|{{#if:{{#var:i}}|{{#ifexpr:{{#var:i}}>0|true}}}} | |||
|{{#vardefine:i|{{#expr:{{#var:i}}-1}}}}{{#ifexist:{{#var:i}}|[[{{#var:i}}]]{{#vardefine:i|}}}} | |||
}} | }} | ||
Revision as of 15:32, November 23, 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.
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