Difference between revisions of "Template:LGBT/doc"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
(update /doc)
imported>Paine Ellsworth
(update /doc)
 
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
+
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
==Settings==
 
This template uses {{tl|Navbox with collapsible groups}} and can be customized to display differently in any article where it is added.
 
  
*<code><nowiki>{{LGBT |state=collapsed}}</nowiki></code> renders this template in its collapsed (hidden) state
+
{{Collapsible option}}
*<code><nowiki>{{LGBT |state=uncollapsed}}</nowiki></code> renders this template in its expanded (sections visible) state
 
*<code><nowiki>{{LGBT |state=autocollapse}}</nowiki></code> renders this template in its collapsed (hidden) state when other templates are on a page
 
  
In addition, each of the seven sections can be expanded, based on the article where the template is being used.
 
  
* <code><nowiki>{{LGBT |selected=academy}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |academy}}</nowiki></code>
+
{{Collapsible sections option
* <code><nowiki>{{LGBT |selected=culture}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |culture}}</nowiki></code>
+
|list = {{hlist |academy |culture |identities |history |rights |orientation |social}}
* <code><nowiki>{{LGBT |selected=identities}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |identities}}</nowiki></code>
+
|example = orientation
* <code><nowiki>{{LGBT |selected=history}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |history}}</nowiki></code>
+
}}
* <code><nowiki>{{LGBT |selected=rights}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |rights}}</nowiki></code>
+
{{LGBT|orientation}}
* <code><nowiki>{{LGBT |selected=orientation}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |orientation}}</nowiki></code>
+
(Click [<span style="color:#0044b1;">show</span>] to see example)
* <code><nowiki>{{LGBT |selected=social}}</nowiki></code> ''or'' <code><nowiki>{{LGBT |social}}</nowiki></code>
 
  
These settings can also be used in combination. For example, <code><nowiki>{{LGBT |history |state=uncollapsed}}</nowiki></code>
+
===See also===
 
 
==See also==
 
 
* {{Tlx|Gender and sexual identities}}
 
* {{Tlx|Gender and sexual identities}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 +
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
 
[[Category:LGBT templates| LGBT]]
 
[[Category:LGBT templates| LGBT]]
 
[[Category:Society and social science navigational boxes]]
 
[[Category:Society and social science navigational boxes]]
  
</includeonly>
+
}}</includeonly>

Latest revision as of 13:34, 17 August 2018

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{LGBT|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{LGBT|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{LGBT|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 in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.


How to manage this template's collapsible groups/sections option
  • This template includes collapsible groups/sections. When it first appears, one of these groups/sections may be set to be visible ("expanded") while the others remain hidden ("collapsed") apart from their titlebars. To achieve this, include the parameter |name where name is one of the following words that identify the groups/sections (omit any speech or quotation marks):
    • academy
    • culture
    • identities
    • history
    • rights
    • orientation
    • social
  • For example: {{LGBT/doc |orientation}}

(Click [show] to see example)

See also