Template:Character Navigation: Difference between revisions

From Baten Kaitos Wiki
mNo edit summary
(Added option for blank fields)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
1 = Previous Character<br>
To use, paste:
{| class="wikitable"
|+ |
! {{[[Template:Character Navigation|Character Navigation|1|2|3|4]]}}
|-
|}
Replace numbers accordingly:<br>
1 = Previous Character Name<br>
2 = Image Filename<br>
2 = Image Filename<br>
3 = Next Character<br>
3 = Next Character Name<br>
4 = Image Filename</noinclude>
4 = Image Filename</noinclude>
{|style="background: #1E90FF; width: 100%; margin: 5px;"
{|style="background: #1E90FF; width: 100%; margin: 5px;"
Line 8: Line 15:
| {{#if: {{{prev-a|}}}|tl|left}}" width="35%" style="background: #A6D4FF;" rowspan="{{#if: {{{prev-a|}}}|1|2}}" |  
| {{#if: {{{prev-a|}}}|tl|left}}" width="35%" style="background: #A6D4FF;" rowspan="{{#if: {{{prev-a|}}}|1|2}}" |  
{|style="background: #A6D4FF; width: 100%;"
{|style="background: #A6D4FF; width: 100%;"
| width="50%" |[[{{{1}}}|<-- {{{1}}}]] [[File:{{{2}}}|link={{{1}}}]]
| width="50%" |{{#if:{{{1}}}|[[{{{1}}}{{!}}<-- {{{1}}}]] [[File:{{{2}}}{{!}}link={{{1}}}]]|}}


|}
|}
Line 14: Line 21:
|width="35%" style="background: #A6D4FF;" rowspan="{{#if: {{{next-a|}}}|1|2}}" |  
|width="35%" style="background: #A6D4FF;" rowspan="{{#if: {{{next-a|}}}|1|2}}" |  
{|style="background: #A6D4FF; width: 100%;"
{|style="background: #A6D4FF; width: 100%;"
| style="text-align:right;" width="50%" | [[File:{{{4}}}|link={{{3}}}]] [[{{{3}}}|{{{3}}} -->]]
| style="text-align:right;" width="50%" | {{#if:{{{3}}}|[[File:{{{4}}}{{!}}link={{{3}}}]] [[{{{3}}}{{!}}{{{3}}} -->]]|}}
|}
|}
|-
|-
<noinclude>[[Category:Navigation Templates]]</noinclude>
<noinclude>[[Category:Character Templates]]</noinclude>

Latest revision as of 00:38, 24 August 2024

To use, paste:

{{Character Navigation|1|2|3|4}}

Replace numbers accordingly:
1 = Previous Character Name
2 = Image Filename
3 = Next Character Name
4 = Image Filename

[[{{{1}}}|<-- {{{1}}}]] [[File:{{{2}}}|link={{{1}}}]]
Characters
[[File:{{{4}}}|link={{{3}}}]] [[{{{3}}}|{{{3}}} -->]]