Template:Navbox/doc: Difference between revisions

 
Line 90: Line 90:
:: <code><nowiki>| state =&nbsp;</nowiki></code>{{tag|noinclude|content=expanded}}
:: <code><nowiki>| state =&nbsp;</nowiki></code>{{tag|noinclude|content=expanded}}
: This will do the same thing while allowing it to be overridden in an article:
: This will do the same thing while allowing it to be overridden in an article:
:: <code><nowiki>| state = {{{state<noinclude>|expanded</noinclude>}}}</nowiki></code>
:: <code><nowiki>| state = {{{state|<noinclude>expanded</noinclude>}}}</nowiki></code>
: Often editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:
: Often editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:
:* In your intermediate template, create a parameter also named "state" as a pass-through like this:
:* In your intermediate template, create a parameter also named "state" as a pass-through like this: