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"

From Prime-Wiki
Jump to: navigation, search
(new)
 
m
Line 53: Line 53:
 
</pre>
 
</pre>
  
[[Category:Infoboxes]]
+
[[Category:Infoboxes|Main]]
 
</noinclude><includeonly><div class="mw-collapsible" style="width:100%; border:1px solid black; padding:3px 3px 3px 3px;"><div style="text-align:center; background-color:SkyBlue; font-size:125%;">'''{{{title}}}'''</div><div class="mw-collapsible-content" style="overflow:auto">
 
</noinclude><includeonly><div class="mw-collapsible" style="width:100%; border:1px solid black; padding:3px 3px 3px 3px;"><div style="text-align:center; background-color:SkyBlue; font-size:125%;">'''{{{title}}}'''</div><div class="mw-collapsible-content" style="overflow:auto">
 
{{InfoboxSubitem|{{{subitem1}}}|{{{content1}}}}}{{#if:{{{subitem2|}}}|{{InfoboxSubitem|{{{subitem2}}}|{{{content2}}}}}}}{{#if:{{{subitem3|}}}|{{InfoboxSubitem|{{{subitem3}}}|{{{content3}}}}}}}{{#if:{{{subitem4|}}}|{{InfoboxSubitem|{{{subitem4}}}|{{{content4}}}}}}}{{#if:{{{subitem5|}}}|{{InfoboxSubitem|{{{subitem5}}}|{{{content5}}}}}}}{{#if:{{{subitem6|}}}|{{InfoboxSubitem|{{{subitem6}}}|{{{content6}}}}}}}{{#if:{{{subitem7|}}}|{{InfoboxSubitem|{{{subitem7}}}|{{{content7}}}}}}}{{#if:{{{subitem8|}}}|{{InfoboxSubitem|{{{subitem8}}}|{{{content8}}}}}}}{{#if:{{{subitem9|}}}|{{InfoboxSubitem|{{{subitem9}}}|{{{content9}}}}}}}{{#if:{{{subitem10|}}}|{{InfoboxSubitem|{{{subitem10}}}|{{{content10}}}}}}}
 
{{InfoboxSubitem|{{{subitem1}}}|{{{content1}}}}}{{#if:{{{subitem2|}}}|{{InfoboxSubitem|{{{subitem2}}}|{{{content2}}}}}}}{{#if:{{{subitem3|}}}|{{InfoboxSubitem|{{{subitem3}}}|{{{content3}}}}}}}{{#if:{{{subitem4|}}}|{{InfoboxSubitem|{{{subitem4}}}|{{{content4}}}}}}}{{#if:{{{subitem5|}}}|{{InfoboxSubitem|{{{subitem5}}}|{{{content5}}}}}}}{{#if:{{{subitem6|}}}|{{InfoboxSubitem|{{{subitem6}}}|{{{content6}}}}}}}{{#if:{{{subitem7|}}}|{{InfoboxSubitem|{{{subitem7}}}|{{{content7}}}}}}}{{#if:{{{subitem8|}}}|{{InfoboxSubitem|{{{subitem8}}}|{{{content8}}}}}}}{{#if:{{{subitem9|}}}|{{InfoboxSubitem|{{{subitem9}}}|{{{content9}}}}}}}{{#if:{{{subitem10|}}}|{{InfoboxSubitem|{{{subitem10}}}|{{{content10}}}}}}}
 
</div></div><includeonly>
 
</div></div><includeonly>

Revision as of 12:24, 18 February 2019

Template: InfoboxMain

Example

{{InfoboxMain
| title    = Test
| subitem1 = Sub1
| content1 = [[Main Page]];[[Prime]]
| subitem2 = Sub2
| content2 = [[Test]]
}}

will create this Template:InfoboxMain

The content list has to be separated by ; and will automatically replaced by "•".

Up to 10 subitems are maintained at once.

Paramters

{{InfoboxMain
| title    =
| subitem1 =
| content1 =
| subitem2 =
| content2 =
| subitem3 =
| content3 =
| subitem4 =
| content4 =
| subitem5 =
| content5 =
| subitem6 =
| content6 =
| subitem7 =
| content7 =
| subitem8 =
| content8 =
| subitem9 =
| content9 =
| subitem10 =
| content10 =
}}