Difference between revisions of "Template:Hidden information/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
m (Sardanaphalus moved page Template:Hidden infoboxes/doc to Template:Hidden information/doc: Per template page)
imported>Sardanaphalus
(Examples formatting, surplus braces, category update)
Line 3: Line 3:
  
 
===Function===
 
===Function===
This template is a shortcut to format {{tl|hidden}} for infoboxes on talk pages, enclosed within an {{tl|mbox}}
+
This template is a shortcut to format {{tl|hidden}} for information on talk pages, enclosed within an {{tl|mbox}}
  
 
===Syntax===
 
===Syntax===
Line 17: Line 17:
  
 
===Examples===
 
===Examples===
{{evd|Hidden infoboxes|abc}}
+
<!--{{evd|Hidden infoboxes|abc}}-->
 +
<code><nowiki>{{Hidden infoboxes|info=abc}}</nowiki></code> produces: {{Hidden infoboxes|info=abc}}
 +
<br/><code><nowiki>{{Hidden infoboxes|title=abc}}</nowiki></code> produces: {{Hidden infoboxes|title=abc}}
 +
<br/><code><nowiki>{{Hidden infoboxes|title=def|info=abc}}</nowiki></code> produces: {{Hidden infoboxes|title=def|info=abc}}
 +
<br/><code><nowiki>{{Hidden infoboxes|title=abc|def}}</nowiki></code> produces: {{Hidden infoboxes|title=abc|def}}
 +
<br/><code><nowiki>{{Hidden infoboxes|abc|title=def}}</nowiki></code> produces: {{Hidden infoboxes|abc|title=def}}
  
<code><nowiki>{{Hidden infoboxes|info=abc}}</nowiki></code> gives:
 
{{Hidden infoboxes|info=abc}}
 
 
<code><nowiki>{{Hidden infoboxes|title=abc}}</nowiki></code> gives:
 
{{Hidden infoboxes|title=abc}}
 
 
<code><nowiki>{{Hidden infoboxes|title=def|info=abc}}</nowiki></code> gives:
 
{{Hidden infoboxes|title=def|info=abc}}
 
 
<code><nowiki>{{Hidden infoboxes|title=abc|def}}</nowiki></code> gives:
 
{{Hidden infoboxes|title=abc|def}}
 
 
<code><nowiki>{{Hidden infoboxes|abc|title=def}}</nowiki></code> gives:
 
{{Hidden infoboxes|abc|title=def}}
 
 
}}
 
 
<includeonly>
 
<includeonly>
[[Category:Wikipedia formatting and function templates|Hidden infoboxes]]
+
[[Category:Box templates]]
 
</includeonly>
 
</includeonly>

Revision as of 10:24, 6 September 2014

Function

This template is a shortcut to format {{hidden}} for information on talk pages, enclosed within an {{mbox}}

Syntax

usage

{{hidden infoboxes|title=|info=}}

  • you can optionally name the box using the 'title=' parameter
  • add any templates and meta-information between the 'info=' and '}}'

Style

This template creates a dynamic navigation box using style sheet declarations in MediaWiki:Common.css and Javascript code in MediaWiki:Common.js.

Examples

{{Hidden infoboxes|info=abc}} produces:


{{Hidden infoboxes|title=abc}} produces:


{{Hidden infoboxes|title=def|info=abc}} produces:


{{Hidden infoboxes|title=abc|def}} produces:


{{Hidden infoboxes|abc|title=def}} produces: