Template:Nesdbbox: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(this is looking ok, documenting usage)
(formatting, finishing up)
Line 4: Line 4:
{| class="oddf0"
{| class="oddf0"
|-
|-
| {{:User:Rainwarrior/nesdblink|{{{1}}}|{{{2}}}|{{{3}}}}}
| {{nesdblink|{{{1}}}|{{{2}}}|{{{3}}}}}
|-
|-
{{#if:{{{5|}}}|
{{#if:{{{5|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{5}}}|{{{6}}}|{{{7}}}}}
{{!}} {{nesdblink|{{{5}}}|{{{6}}}|{{{7}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{9|}}}|
{{#if:{{{9|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{9}}}|{{{10}}}|{{{11}}}}}
{{!}} {{nesdblink|{{{9}}}|{{{10}}}|{{{11}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{13|}}}|
{{#if:{{{13|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{13}}}|{{{14}}}|{{{15}}}}}
{{!}} {{nesdblink|{{{13}}}|{{{14}}}|{{{15}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{17|}}}|
{{#if:{{{17|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{17}}}|{{{18}}}|{{{19}}}}}
{{!}} {{nesdblink|{{{17}}}|{{{18}}}|{{{19}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{21|}}}|
{{#if:{{{21|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{21}}}|{{{22}}}|{{{23}}}}}
{{!}} {{nesdblink|{{{21}}}|{{{22}}}|{{{23}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{25|}}}|
{{#if:{{{25|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{25}}}|{{{26}}}|{{{27}}}}}
{{!}} {{nesdblink|{{{25}}}|{{{26}}}|{{{27}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{29|}}}|
{{#if:{{{29|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{29}}}|{{{30}}}|{{{31}}}}}
{{!}} {{nesdblink|{{{29}}}|{{{30}}}|{{{31}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{33|}}}|
{{#if:{{{33|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{33}}}|{{{34}}}|{{{35}}}}}
{{!}} {{nesdblink|{{{33}}}|{{{34}}}|{{{35}}}}}
{{!}}-
{{!}}-
|}}
|}}
{{#if:{{{37|}}}|
{{#if:{{{37|}}}|
{{!}} {{:User:Rainwarrior/nesdblink|{{{37}}}|{{{38}}}|{{{39}}}}}
{{!}} {{nesdblink|{{{37}}}|{{{38}}}|{{{39}}}}}
{{!}}-
{{!}}-
|}}
|}}
Line 48: Line 48:


Single use:
Single use:
<pre>{{:User:Rainwarrior/nesdbbox|ines|1|iNES 001}}
<pre>{{nesdbbox|ines|1|iNES 001}}</pre>


Multi use:
Multi use:
<pre>{{:User:Rainwarrior/nesdbbox
<pre>{{nesdbbox
|ines|1|iNES 001|
|ines|1|iNES 001|
|unif|NES-CNROM|CNROM|
|unif|NES-CNROM|CNROM|
Line 59: Line 59:


Note: in the multi use case terminate each line with |. The empty parameter is needed to prevent newlines in the created link.
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
</noinclude>
</noinclude>

Revision as of 19:56, 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|
}}

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 nesdblink templates: search type (ines/unif) | search parameter (number/board) | link text