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 Subitem"

From Prime-Wiki
Jump to: navigation, search
m
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Creates a subitem in a InfoboxMain:
+
Creates a subitem in a [[:Template:Navbox Main|Navbox Main]]:
  
 
==Parameter==
 
==Parameter==
 
*title
 
*title
*(list of) subitem/links (delimited by <code>;</code>, replaced by <code>&bull;</code>)
+
*list of subitems/links
  
 
==Example==
 
==Example==
 
<pre>
 
<pre>
{{InfoboxSubitem
+
{{Navbox Subitem
 
| Examples
 
| Examples
| [[Examples]];[[Test]];[[Prime]];[[Main Page]]
+
|*[[Examples]]
 +
*[[:Category:Templates|Templates]]
 +
*[[Prime]]
 +
*[[Main Page]]
 
}}
 
}}
 
</pre>
 
</pre>
  
 
<div style="overflow:auto">
 
<div style="overflow:auto">
{{InfoboxSubitem
+
{{Navbox Subitem
 
| Examples
 
| Examples
| [[Examples]];[[Test]];[[Prime]];[[Main Page]]
+
|*[[Examples]]
 +
*[[:Category:Templates|Templates]]
 +
*[[Prime]]
 +
*[[Main Page]]
 
}}
 
}}
 
</div>
 
</div>
Line 23: Line 29:
 
==Template==
 
==Template==
 
<pre>
 
<pre>
{{InfoboxSubitem
+
{{Navbox Subitem
 
| <title>
 
| <title>
 
| <itemlist>
 
| <itemlist>
 
}}
 
}}
 
</pre>
 
</pre>
[[Category:Infoboxes]]</noinclude><includeonly><div style="float:left; margin-top:5px; padding-left:5px; width:15%; background-color:SkyBlue; font-weight:bold;">{{{1}}}</div><div style="float:left; margin-top:5px; padding-left:5px; width:84%;">{{#replace:{{{2}}}|;|&nbsp;&bull;&nbsp;}}</div></includeonly>
+
[[Category:Navboxes| Subitem]]</noinclude><includeonly>{| style="border-collapse:collapse; margin-left:-2px; margin-top:2px;"
 +
| class="color-NavBox" style="width:12em; padding-left:5px; height=100%; font-weight:bold;" |{{{1}}}
 +
| style="padding-left:5px;" | {{Hlist|{{{2}}}}}
 +
|}</includeonly>

Latest revision as of 08:42, 26 July 2021

Creates a subitem in a Navbox Main:

Parameter

  • title
  • list of subitems/links

Example

{{Navbox Subitem
| Examples
|*[[Examples]]
*[[:Category:Templates|Templates]]
*[[Prime]]
*[[Main Page]]
}}
Examples

Template

{{Navbox Subitem
| <title>
| <itemlist>
}}