Difference between revisions of "Template:AGS timeline"

From Discovery Wiki
Jump to navigationJump to search
(corrected if syntax)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><!--</noinclude>{{#if: {{{1}}} |:
+
<noinclude><!--</noinclude>
 
|-
 
|-
| style="text-align: center;" | ''{{{1}}}'' || style="text-align: center;" | ''{{#expr:{{{1}}} +84 }}'' || {{{3}}}
+
| style="text-align: center;" | {{#if: {{{1|}}} | ''{{{1}}}'' | ''{{#expr:{{{2}}} -84 }}''}} || style="text-align: center;" | {{#if: {{{1|}}} | ''{{#expr:{{{1}}} +84 }}'' | ''{{{2}}}''}} || {{{3}}}
 
|-
 
|-
|:
+
<noinclude>-->Thess templates create a timleline table that displays the date in AGS and AS when provided with either date.  '''The templates will not work if you fill in both the AS and the AGS field'''
|-
 
| style="text-align: center;" | ''{{#expr:{{{2}}} -84 }}'' || style="text-align: center;" | ''{{{2}}}'' || {{{3}}}
 
|-}}
 
<noinclude>-->This template displays the date in AGS and AS as a component of the [[Timeline of Gallic history]] when provided with either date. It also displays the time line entry.  '''The template will not work if you fill in both the AS and the AGS field'''
 
  
 
==Usage==
 
==Usage==
  
<pre>{{AGStimeline|<AGS year>|<AS year>|<info>}}</pre>
+
<pre>{{AGS timeline/begin}}
 +
{{AGS timeline|<AGS year>|<AS year>|<info>}}
 +
{{AGS timeline/end}}</pre>
 
==Result==
 
==Result==
table entry
+
<pre>{{AGS timeline/begin}}
 +
{{AGS timeline|0||The ''Gallia'' Sleeper Ship arrives at [[Planet New Paris]], in the [[Ile-de-France]] system.}}
 +
{{AGS timeline||108|Example stuff happens.}}
 +
{{AGS timeline/end}}</pre>
 +
 
 +
{{AGS timeline/begin}}
 +
{{AGS timeline|0||The ''Gallia'' Sleeper Ship arrives at [[Planet New Paris]], in the [[Ile-de-France]] system.}}
 +
{{AGS timeline||108|Example stuff happens.}}
 +
{{AGS timeline/end}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:01, 5 February 2012

Thess templates create a timleline table that displays the date in AGS and AS when provided with either date. The templates will not work if you fill in both the AS and the AGS field

Usage

{{AGS timeline/begin}}
{{AGS timeline|<AGS year>|<AS year>|<info>}}
{{AGS timeline/end}}

Result

{{AGS timeline/begin}}
{{AGS timeline|0||The ''Gallia'' Sleeper Ship arrives at [[Planet New Paris]], in the [[Ile-de-France]] system.}}
{{AGS timeline||108|Example stuff happens.}}
{{AGS timeline/end}}


Year Year Event
(A.G.S.) (A.S.)
0 84 The Gallia Sleeper Ship arrives at Planet New Paris, in the Ile-de-France system.
24 108 Example stuff happens.