Template:Narrative: Difference between revisions

From Good Old TV Fan Wiki
m (1 revision imported)
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
| state = {{{state|<includeonly>autocollapse</includeonly>}}}
| state = {{{state|<includeonly>autocollapse</includeonly>}}}
| title = [[Narrative]]
| title = [[Narrative]]
| image = [[File:The Plague of Thebes.jpg|200px]]
| titlestyle = background:#29fc01
| groupstyle = background:#95fc81
| basestyle = background:#29fc01
| listclass = hlist
| listclass = hlist


Line 39: Line 43:
*[[Flashback (narrative)|Flashback]]
*[[Flashback (narrative)|Flashback]]
*[[Flashforward]]
*[[Flashforward]]
*[[Frame story|Framing device]]
*[[Frame story]]
*[[Frame story]]
*[[In medias res]]
*[[In medias res]]

Latest revision as of 11:29, 11 October 2017

Initial visibility

To set the template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Narrative|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Narrative|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Narrative|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to autocollapse.