Andoza:Hidden: Versiyalar orasidagi farq

Vikipediya, ochiq ensiklopediya
Kontent oʻchirildi Kontent qoʻshildi
Sociologist (munozara | hissa)
Created page with "<div class="NavFrame {{#if:{{{hidden|}}}|collapsed}}" style="{{{frame-style|}}}"> <div class="NavHead" style="font-weight:{{{fw1|bold}}}; background:{{{bg1|transparent}}}; t..."
 
Sociologist (munozara | hissa)
Yashirilgan holat
Qator 1: Qator 1:
<div style="display: none;">
<div class="NavFrame {{#if:{{{hidden|}}}|collapsed}}" style="{{{frame-style|}}}">
<div class="NavFrame">
<div class="NavHead">
<div class="NavContent">
</div>
</div>
</div>
</div>

<div class="NavFrame {{#if:{{{expanded|}}}|collapsed}}" style="border:none;|}}}">
<div class="NavHead"
<div class="NavHead"
style="font-weight:{{{fw1|bold}}}; background:{{{bg1|transparent}}};
style="font-weight:{{{fw1|bold}}}; background:{{{bg1|transparent}}};

9-Aprel 2012, 13:03 dagi koʻrinishi

This template creates a dynamic navigation box using style sheet declarations in MediaWiki:Common.css and Javascript code in MediaWiki:Common.js. It displays the first parameter (the heading) with a [show] link on the right. If [show] is clicked by the user, the second parameter (the body) is displayed below the heading and the [show] link becomes [hide]. Clicking on [hide] then hides the body again and the [hide] link becomes [show] again.

The template does not provide an argument to designate the initial state of the show/hide control. In the nested case, show/hide controls in hidden content retain their state. There is no facility for collapse all or reveal all.

Foydalanish

Qoida

{{Hidden
|header=
|content=
|style=
|headerstyle=
|contentstyle=
|fw1=
|fw2=
|bg1=
|bg2=
|ta1=
|ta2=
}}