Template:Navbox: Difference between revisions

From GTA Portugal Wiki
(Created page with "<includeonly><!-- Please do not edit without discussion first as this is a VERY complex template. --> <!-- TEMPORARY WORKAROUND for collapsible js issues after UCP migration <div class ="{{#switch:{{{state|}}}|autocollapse = mw-collapsible mw-collapsed | uncollapsed = mw-collapsible | collapsed = mw-collapsible mw-collapsed | plain = | off = | }}">--> <!--Workaround ends (apart from closing /div) --> {{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#defaul...")
 
No edit summary
 
Line 1: Line 1:
<includeonly><!--
<includeonly><table class="wiki-navigation {{{style|}}} {{#if:{{{title|}}}|mw-collapsible mw-collapsed|}}">
 
{{#if:{{{title|}}}|<!--
Please do not edit without discussion first as this is a VERY complex template.
--><tr class="wiki-navigation-row">
 
<th class="wiki-navigation-header" colspan="2">
-->
<span class="wiki-navigation-edit"><small><nowiki>[</nowiki> [{{fullurl:Template:{{{name|Navbox}}}}} v] &bull; [{{fullurl:Template:{{{name|Navbox}}}|action=edit}} e] <nowiki>]
<!-- TEMPORARY WORKAROUND for collapsible js issues after UCP migration
<div class ="{{#switch:{{{state|}}}|autocollapse = mw-collapsible mw-collapsed | uncollapsed = mw-collapsible | collapsed = mw-collapsible mw-collapsed | plain = | off = | }}">-->
<!--Workaround ends (apart from closing /div)  -->
{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="{{#if:{{{style|}}}|navbox {{{style|}}}|navbox}}" cellspacing="0" <!--
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td>}}<!--
 
--><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|collapsed = mw-collapsible mw-collapsed|<!--
-->uncollapsed = mw-collapsible|autocollapse = mw-collapsible mw-collapsed|#default = mw-collapsible mw-collapsed}}}}<!--
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
-->#default=" style="width:100%;background:inherit;color:inherit}};{{{innerstyle|}}};"><!--
default should be collapsed even when there's only 1 navbox because autocollapse doesn't only take navbox collapsible elements into its count - if there are any other collapsibles in the body of the article, it will default to collapsed even with only 1 collapsible navbox.
So might as well make them all collapsed by default to enforce consistency, unless specifically parsed to the template using uncollapsed as "state".
 
---Title and tnavbar---
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
-

Latest revision as of 22:26, 12 March 2024