Template:Navbox-Type: Difference between revisions

From Medapedia
Jump to navigationJump to search
(Used the wrong if. D:)
(Expanded to 10 slots.)
 
Line 26: Line 26:
{{#if: {{{code-8|}}} | {{!}}-
{{#if: {{{code-8|}}} | {{!}}-
{{!}} style="background:#E4EEFF;" {{!}} {{{code-8}}}  
{{!}} style="background:#E4EEFF;" {{!}} {{{code-8}}}  
{{!}} [[{{{name-8}}}]] }}}}}}}}}}}}}}
{{!}} [[{{{name-8}}}]]  
{{#if: {{{code-9|}}} | {{!}}-
{{!}} style="background:#E4EEFF;" {{!}} {{{code-9}}}
{{!}} [[{{{name-9}}}]]
{{#if: {{{code-10|}}} | {{!}}-
{{!}} style="background:#E4EEFF;" {{!}} {{{code-10}}}
{{!}} [[{{{name-10}}}]] }} }} }} }} }} }} }} }} }}
|-
|-
|}</div><noinclude>
|}</div><noinclude>
Line 34: Line 40:
If you want to add a short comment next to each Medarot, use [[Template:Navbox-Type-N]] instead.
If you want to add a short comment next to each Medarot, use [[Template:Navbox-Type-N]] instead.


When using it, make sure to only include as many codes/names as there are Medarots you want to list, and erase any numbers higher than that. There is room on this template for up to 8 Medarots, which is probably more than necessary. If you need more than 8 spaces you should consider making a separate Navbox!
When using it, make sure to only include as many codes/names as there are Medarots you want to list, and erase any numbers higher than that. There is room on this template for up to 10 Medarots, which is probably more than necessary. If you need more than 10 spaces you should consider making a separate Navbox!


<pre><nowiki>
<pre><nowiki>
{{Navbox-Type
{{Navbox-Type
| type   =  
| type     =  
| code-1 =  
| code-1   =  
| name-1 =  
| name-1   =  
| code-2 =  
| code-2   =  
| name-2 =  
| name-2   =  
| code-3 =  
| code-3   =  
| name-3 =  
| name-3   =  
| code-4 =  
| code-4   =  
| name-4 =  
| name-4   =  
| code-5 =  
| code-5   =  
| name-5 =  
| name-5   =  
| code-6 =  
| code-6   =  
| name-6 =  
| name-6   =  
| code-7 =  
| code-7   =  
| name-7 =  
| name-7   =  
| code-8  =  
| code-8   =
| name-8 =  
| name-8  =
| code-9  =
| name-9  =
| code-10 =  
| name-10 =  
}}
}}
</nowiki></pre>
</nowiki></pre>

Latest revision as of 11:46, 6 April 2020

{{{type}}}-type Medarots
{{{code-1}}} [[{{{name-1}}}]]

Description[edit]

This template is for the box at the bottom of each Medarot page that links to other Medarots with a similar motif, also listing their model numbers (codes).

If you want to add a short comment next to each Medarot, use Template:Navbox-Type-N instead.

When using it, make sure to only include as many codes/names as there are Medarots you want to list, and erase any numbers higher than that. There is room on this template for up to 10 Medarots, which is probably more than necessary. If you need more than 10 spaces you should consider making a separate Navbox!

{{Navbox-Type
| type     = 
| code-1   = 
| name-1   = 
| code-2   = 
| name-2   = 
| code-3   = 
| name-3   = 
| code-4   = 
| name-4   = 
| code-5   = 
| name-5   = 
| code-6   = 
| name-6   = 
| code-7   = 
| name-7   = 
| code-8   = 
| name-8   = 
| code-9   = 
| name-9   = 
| code-10  = 
| name-10  = 
}}

Advanced[edit]

Replace "type" with "full-title" if you want to change the whole title bar and have it not follow the "-type Medarots" format.

Multiple Navbox-Type templates may be added to a page, but they need to be placed inside a table to show up side-by-side. See the related Medarots section on the Flame Tisala page for an example of how to do this.