Template:Navbox/doc: Difference between revisions
Line 90: | Line 90: | ||
:: <code><nowiki>| state = </nowiki></code>{{tag|noinclude|content=expanded}} | :: <code><nowiki>| state = </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> | :: <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: |