Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:Navbox Main"
(new) |
(class) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | Template: | + | Template that serves as a backbone for the various navbox templates, such as [[Template:Navbox GIMPS]]. |
==Example== | ==Example== | ||
<pre> | <pre> | ||
− | {{ | + | {{Navbox Main |
| title = Test | | title = Test | ||
| subitem1 = Sub1 | | subitem1 = Sub1 | ||
− | | content1 = [[Main Page]] | + | | content1 = |
+ | *[[Main Page]] | ||
+ | *[[Prime]] | ||
+ | *[[Number]] | ||
| subitem2 = Sub2 | | subitem2 = Sub2 | ||
− | | content2 = [[Test]] | + | | content2 = |
+ | *[[Test]] | ||
+ | *[[Project]] | ||
}} | }} | ||
</pre> | </pre> | ||
will create this | will create this | ||
− | {{ | + | {{Navbox Main |
| title = Test | | title = Test | ||
| subitem1 = Sub1 | | subitem1 = Sub1 | ||
− | | content1 = [[Main Page]] | + | | content1 = |
+ | *[[Main Page]] | ||
+ | *[[Prime]] | ||
+ | *[[Number]] | ||
| subitem2 = Sub2 | | subitem2 = Sub2 | ||
− | | content2 = [[ | + | | content2 = |
+ | *[[Examples]] | ||
+ | *[[Project]] | ||
}} | }} | ||
− | |||
− | |||
Up to 10 subitems are maintained at once. | Up to 10 subitems are maintained at once. | ||
− | == | + | ==Parameters== |
<pre> | <pre> | ||
− | {{ | + | {{Navbox Main |
| title = | | title = | ||
| subitem1 = | | subitem1 = | ||
Line 53: | Line 61: | ||
</pre> | </pre> | ||
− | [[Category: | + | [[Category:Navboxes| ]] |
− | </noinclude><includeonly><div | + | </noinclude><includeonly><div style="width:100%; margin-top:5px; border:1px solid black; padding:3px 3px 3px 3px; border-radius:5px;"><div class="color-NavBox" style="text-align:center; font-size:120%;">'''{{{title}}}'''</div><div style="overflow:auto">{{Navbox Subitem|{{{subitem1}}}|{{{content1}}}}}{{#if:{{{subitem2|}}}|{{Navbox Subitem|{{{subitem2}}}|{{{content2}}}}}}}{{#if:{{{subitem3|}}}|{{Navbox Subitem|{{{subitem3}}}|{{{content3}}}}}}}{{#if:{{{subitem4|}}}|{{Navbox Subitem|{{{subitem4}}}|{{{content4}}}}}}}{{#if:{{{subitem5|}}}|{{Navbox Subitem|{{{subitem5}}}|{{{content5}}}}}}}{{#if:{{{subitem6|}}}|{{Navbox Subitem|{{{subitem6}}}|{{{content6}}}}}}}{{#if:{{{subitem7|}}}|{{Navbox Subitem|{{{subitem7}}}|{{{content7}}}}}}}{{#if:{{{subitem8|}}}|{{Navbox Subitem|{{{subitem8}}}|{{{content8}}}}}}}{{#if:{{{subitem9|}}}|{{Navbox Subitem|{{{subitem9}}}|{{{content9}}}}}}}{{#if:{{{subitem10|}}}|{{Navbox Subitem|{{{subitem10}}}|{{{content10}}}}}}} |
− | {{ | ||
</div></div><includeonly> | </div></div><includeonly> |
Latest revision as of 15:23, 16 May 2021
Template that serves as a backbone for the various navbox templates, such as Template:Navbox GIMPS.
Example
{{Navbox Main | title = Test | subitem1 = Sub1 | content1 = *[[Main Page]] *[[Prime]] *[[Number]] | subitem2 = Sub2 | content2 = *[[Test]] *[[Project]] }}
will create this
Up to 10 subitems are maintained at once.
Parameters
{{Navbox Main | title = | subitem1 = | content1 = | subitem2 = | content2 = | subitem3 = | content3 = | subitem4 = | content4 = | subitem5 = | content5 = | subitem6 = | content6 = | subitem7 = | content7 = | subitem8 = | content8 = | subitem9 = | content9 = | subitem10 = | content10 = }}