ਫਰਮਾ:Hidden/doc
This template creates a dynamic navigation box using style sheet declarations in MediaWiki:Common.css and Javascript code in MediaWiki:Common.js. In a saved, rendered page this template creates a clickable link that toggles between [show] and [hide]. It displays the first parameter (the heading) with a [show] link on the right. If [show] is clicked by the user, it displays the second parameter (the body) below the heading and the [show] link becomes [hide]. Clicking on [hide] then hides the body and the [hide] link becomes [show] again. If this template is nested in another, the show/hide links in the hidden content keep their state; there is no parameter for collapse all or reveal all. Generally, collapsible templates should not be used in articles. For allowable uses and other considerations, please see . UsageFull syntax{{Hidden | expanded=true <!--(omit for initial hidden state)--> | style = | headerstyle = | header = | contentstyle = | content = |titlebgcolor= |contentbgcolor= |ta1= |ta2= |fw1= |fw2= }} ParametersOnly two parameters are required for this template:
Optional
Note: This template will not respect the user preference "justify paragraphs". ExamplesBasicIn this example only the two required parameters are specified.
Header background
CSS
IssuesShow/hide button overlapWith ta1=right or a long header, the header may overlap the show/hide button:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
def
"{{hidden|multiline=y|Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.|def}}" gives " Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
def " Example with long header
abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
def
"{{hidden|multiline=y|abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc |def}}" gives " abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
def " SectionsSections included inside a hidden block result in broken anchors in the table of contents at the top of the page. example You can't get here from the table of contentsTemplatedataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Hidden based on its TemplateData.
TemplateData for Hidden Creates a dynamic navigation box which is initially collapsed by default.
Tracking category
See alsoSupporting templates: Similar templates:
|
Portal di Ensiklopedia Dunia