Difference between revisions of "Template:Linguistics/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wugapodes
(Updating documentation for recent change)
imported>Paine Ellsworth
(update /doc)
Line 1: Line 1:
{{Documentation subpage}} {{Linguistics}}
+
{{Documentation subpage}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Linguistics}}
  
This is a sidebar to facilitate navigation between Wikipedia articles on [[linguistics]]. To add it to a page, use the code {{tlx|Linguistics}}.
+
This is a sidebar to facilitate navigation between Wikipedia articles about [[linguistics]]. To add it to a page, use the code {{tlx|Linguistics}}.
  
The template takes an optional second parameter which describes which section, if any, is to be expanded. All sections are expanded by default. Possible values are:
+
This template also takes an optional parameter that describes which section, if any, is to be expanded. ''All sections are expanded by default''. Possible values are:
 
*<code>{{<nowiki />Linguistics|all}}</code> to expand all sections
 
*<code>{{<nowiki />Linguistics|all}}</code> to expand all sections
 
*<code>{{<nowiki />Linguistics|Subfields}}</code> to only expand the subfields list
 
*<code>{{<nowiki />Linguistics|Subfields}}</code> to only expand the subfields list
Line 13: Line 15:
 
* {{tl|Sidebar with collapsible lists}}, the [[:Category:Wikipedia metatemplates|metatemplate]] used to create this template.
 
* {{tl|Sidebar with collapsible lists}}, the [[:Category:Wikipedia metatemplates|metatemplate]] used to create this template.
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
| <!-- Categories below this line, please: -->
+
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Linguistics templates| ]]
 
[[Category:Linguistics templates| ]]
 
[[Category:Arts and culture sidebar templates]]
 
[[Category:Arts and culture sidebar templates]]
 +
 
}}</includeonly>
 
}}</includeonly>

Revision as of 12:44, 5 May 2019

This is a sidebar to facilitate navigation between Wikipedia articles about linguistics. To add it to a page, use the code {{Linguistics}}.

This template also takes an optional parameter that describes which section, if any, is to be expanded. All sections are expanded by default. Possible values are:

  • {{Linguistics|all}} to expand all sections
  • {{Linguistics|Subfields}} to only expand the subfields list
  • {{Linguistics|Grammar}} to only expand the grammatical theories list
  • {{Linguistics|Topics}} to only expand the topics list
  • {{Linguistics| }} to start with all lists collapsed (useful to save space on a page)

See also