Difference between revisions of "Template:Sequence Box"

From Lunarpedia
Jump to: navigation, search
LPedia.org>Strangelv
(Sequence box for things for which the succession box doesn't work well)
 
(Better example.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<includeonly><onlyinclude>
 
<TR style="border-collapse:collapse; padding:1em; {{GRX}}">
 
<TR style="border-collapse:collapse; padding:1em; {{GRX}}">
<TD style="padding:1em; width:30%; border-bottom:solid 1px #3F3F3F">Previous:<BR />'''{{{before|None}}}'''</TD>  
+
<TD style="padding:1em; width:{{{prev_width|30%}}}; border-bottom:solid 1px {{Grad Border}}">{{{before_label|Previous:}}}<BR />'''{{{before|None}}}'''</TD>  
<TD style="border-collapse:collapse; width:40%; padding:1em; {{RBX |legacy=#F3E8B5 |topcolor=#FFF3BE |botcolor=#CABE96}}">'''{{name}}}'''<BR />{{{item}}}</TD>
+
<TD style="border-collapse:collapse; padding:1em; {{RBX |legacy={{Grad Bottom}} | topcolor={{Grad Alt}} | botcolor={{Grad Bottom}} }}">'''{{{name}}}'''<BR />{{{item}}}</TD>
<TD style="padding:1em; width:30%; border-bottom:solid 1px #3F3F3F">Next:<BR />'''{{{after|None}}}'''</TD>  
+
<TD style="padding:1em; width:{{{next_width|30%}}}; border-bottom:solid 1px #3F3F3F">{{{after_label|Next:}}}<BR />'''{{{after|None}}}'''</TD>  
 
</TR>
 
</TR>
<noinclude>[[Category:Navbox Templates]]</noinclude>
+
</onlyinclude></includeonly>
 +
<noinclude>
 +
<pre>
 +
{{Start Box}}
 +
{{Sequence Box|
 +
before=[[User:Miros1|Rosalie Dieteman]]|
 +
name=[[:Category:Lunarpedia_Staff|Lunarpedia Staff]]|
 +
item=[[James L. Burk]]|
 +
after=[[User:Strangelv|James Gholston]]
 +
}}
 +
{{End Box}}
 +
</pre>
 +
 
 +
The preceding code produces the following result:
 +
 
 +
{{Start Box}}
 +
{{Sequence Box|
 +
before=[[User:Miros1|Rosalie Dieteman]]|
 +
name=[[:Category:Lunarpedia_Staff|Lunarpedia Staff]]|
 +
item=[[James L. Burk]]|
 +
after=[[User:Strangelv|James Gholston]]
 +
}}
 +
{{End Box}}
 +
 
 +
Each of the four fields should be a correctly formatted link.  Note that the pages for Lunarpedia Staff and James L. Burk do not currently exist.
 +
 
 +
[[Category:Navbox Templates]]</noinclude>

Latest revision as of 17:42, 4 June 2019


{{Start Box}}
{{Sequence Box|
 before=[[User:Miros1|Rosalie Dieteman]]|
 name=[[:Category:Lunarpedia_Staff|Lunarpedia Staff]]|
 item=[[James L. Burk]]|
 after=[[User:Strangelv|James Gholston]]
}}
{{End Box}}

The preceding code produces the following result:


Previous:
Rosalie Dieteman
Lunarpedia Staff
James L. Burk
Next:
James Gholston



Each of the four fields should be a correctly formatted link. Note that the pages for Lunarpedia Staff and James L. Burk do not currently exist.