Template:Nesdbbox: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (Rainwarrior moved page User:Rainwarrior/nesdbbox to Template:Nesdbbox: created template for box of multiple NesDB links)
(removing empty-parameter whitespace workaround)
Line 6: Line 6:
| {{nesdblink|{{{1}}}|{{{2}}}|{{{3}}}}}
| {{nesdblink|{{{1}}}|{{{2}}}|{{{3}}}}}
|-
|-
{{#if:{{{5|}}}|
{{#if:{{{4|}}}|
{{!}} {{nesdblink|{{{5}}}|{{{6}}}|{{{7}}}}}
{{!}} {{nesdblink|{{{4}}}|{{{5}}}|{{{6}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{9|}}}|
{{#if:{{{7|}}}|
{{!}} {{nesdblink|{{{9}}}|{{{10}}}|{{{11}}}}}
{{!}} {{nesdblink|{{{7}}}|{{{8}}}|{{{9}}}}}
{{!}}-
|}}
{{#if:{{{10|}}}|
{{!}} {{nesdblink|{{{10}}}|{{{11}}}|{{{12}}}}}
{{!}}-
{{!}}-
|}}
|}}
Line 18: Line 22:
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{17|}}}|
{{#if:{{{16|}}}|
{{!}} {{nesdblink|{{{17}}}|{{{18}}}|{{{19}}}}}
{{!}} {{nesdblink|{{{16}}}|{{{17}}}|{{{18}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{21|}}}|
{{#if:{{{19|}}}|
{{!}} {{nesdblink|{{{21}}}|{{{22}}}|{{{23}}}}}
{{!}} {{nesdblink|{{{19}}}|{{{20}}}|{{{21}}}}}
{{!}}-
|}}
{{#if:{{{22|}}}|
{{!}} {{nesdblink|{{{22}}}|{{{23}}}|{{{24}}}}}
{{!}}-
{{!}}-
|}}
|}}
Line 30: Line 38:
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{29|}}}|
{{#if:{{{28|}}}|
{{!}} {{nesdblink|{{{29}}}|{{{30}}}|{{{31}}}}}
{{!}} {{nesdblink|{{{28}}}|{{{29}}}|{{{30}}}}}
{{!}}-
|}}
{{#if:{{{33|}}}|
{{!}} {{nesdblink|{{{33}}}|{{{34}}}|{{{35}}}}}
{{!}}-
|}}
{{#if:{{{37|}}}|
{{!}} {{nesdblink|{{{37}}}|{{{38}}}|{{{39}}}}}
{{!}}-
{{!}}-
|}}
|}}
Line 52: Line 52:
Multi use:
Multi use:
<pre>{{nesdbbox
<pre>{{nesdbbox
|ines|1|iNES 001|
|ines|1|iNES 001
|unif|NES-CNROM|CNROM|
|unif|NES-CNROM|CNROM
|ines|5|iNES 005|
|ines|5|iNES 005
|unif|NES-AOROM|AOROM|
|unif|NES-AOROM|AOROM
}}</pre>
}}</pre>
Note: in the multi use case terminate each line with |. The empty parameter is needed to prevent newlines in the created link.


The parameters are simply a batched set of [[:Template:nesdblink|nesdblink]] templates: search type (ines/unif) | search parameter (number/board) | link text
The parameters are simply a batched set of [[:Template:nesdblink|nesdblink]] templates: search type (ines/unif) | search parameter (number/board) | link text
</noinclude>
</noinclude>

Revision as of 21:59, 22 April 2015

NESCartDB
{{{3}}}

A box containing the In NesCartDB category tag and 1 or more links to NesDB searches.

Single use:

{{nesdbbox|ines|1|iNES 001}}

Multi use:

{{nesdbbox
|ines|1|iNES 001
|unif|NES-CNROM|CNROM
|ines|5|iNES 005
|unif|NES-AOROM|AOROM
}}

The parameters are simply a batched set of nesdblink templates: search type (ines/unif) | search parameter (number/board) | link text