Difference between revisions of "Template:Succession Box"

From Lunarpedia
Jump to: navigation, search
LPedia.org>Strangelv
m (Strangelv moved page Template:Succession box to Template:Succession Box: Capitalization)
(Added Example)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<TR style="border-collapse:collapse; padding:1em; {{GRX}}">
+
 
<TD style="padding:1em; width:30%; border-bottom:solid 1px #3F3F3F">Preceded by:<BR />'''{{{before|None}}}'''</TD>  
+
<noinclude>
<TD style="border-collapse:collapse; width:40%; padding:1em; {{RBX |legacy=#F3E8B5 |topcolor=#FFF3BE |botcolor=#CABE96|webkit=0}}">'''{{{title}}}'''<BR />{{{years}}}</TD>
+
<pre>
<TD style="padding:1em; width:30%; border-bottom:solid 1px #3F3F3F">Succeeded by:<BR />'''{{{after|None}}}'''</TD>
+
{{Start Box}}
</TR>
+
{{Succession Box|
<noinclude>[[Category:Navbox Templates]]</noinclude>
+
before=[[User:Miros1|Rosalie Dieteman]]|
 +
title=[[Lunarpedia Editor]]|
 +
after=[[User:Strangelv|James Gholston]] |
 +
years=2019
 +
}}
 +
{{End Box}}
 +
</pre>
 +
 
 +
The preceding code produces the following result:
 +
 
 +
{{Start Box}}
 +
{{Succession Box|
 +
before=[[User:Miros1|Rosalie Dieteman]]|
 +
title=[[Lunarpedia Editor]]|
 +
after=[[User:Strangelv|James Gholston]] |
 +
years=2019
 +
}}
 +
{{End Box}}
 +
 
 +
Each of the fields, before, title, and after should be a correctly formatted link.  Note that the page for Lunarpedia Editor does not currently exist.
 +
 
 +
Note: <nowiki>{{Succession Box}} must be wrapped in {{Start Box}} and {{End Box}} templates.
 +
</nowiki>
 +
 
 +
 
 +
</noinclude>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<includeonly><onlyinclude>
 +
{{Sequence Box
 +
| name={{{title}}}
 +
| item={{{years}}}
 +
| before={{{before}}}
 +
| after={{{after}}}
 +
| before_label=Preceded by:
 +
| after_label=Succeeded by:
 +
}}
 +
</onlyinclude></includeonly>

Latest revision as of 07:44, 30 June 2019


{{Start Box}}
{{Succession Box|
 before=[[User:Miros1|Rosalie Dieteman]]|
 title=[[Lunarpedia Editor]]|
 after=[[User:Strangelv|James Gholston]] |
 years=2019
}}
{{End Box}}

The preceding code produces the following result:


Preceded by:
Rosalie Dieteman
Lunarpedia Editor
2019
Succeeded by:
James Gholston



Each of the fields, before, title, and after should be a correctly formatted link. Note that the page for Lunarpedia Editor does not currently exist.

Note: {{Succession Box}} must be wrapped in {{Start Box}} and {{End Box}} templates.