Andoza:Hidden — versiyalar orasidagi farq

1 413 bayt olib tashlandi ,  6 yil oldin
tahrir izohi yoʻq
k ({{Documentation}} qoʻshildi)
 
{{hidden begin|toggle={{{showhide|}}}{{{toggle|}}}|expanded={{{expanded|}}}|class={{{class|}}}|border={{{border|none}}}|style={{{style|{{{css|}}}}}}
<div style="display: none;">
|bg1={{{bg1|transparent}}}|ta1={{{ta1|center}}}|titlestyle={{#if:{{{multiline|{{{multi-line|}}}}}}|height:auto;}}{{#ifeq:{{{fw1|bold}}}|bold||font-weight:{{{fw1|bold}}};}}{{{headercss|{{{headerstyle|{{{titlestyle|}}}}}}}}}
<div class="NavFrame">
|title={{#if:{{{multiline|{{{multi-line|}}}}}}|<div style="margin-right:4em;line-height:125%;height:auto;">{{{title|{{{header|{{{1}}}}}}}}}</div>|{{{title|{{{header|{{{1}}}}}}}}}}}
<div class="NavHead">
|bg2={{{bg2|transparent}}}|ta2={{{ta2|left}}}|contentstyle={{#ifeq:{{{fw2|normal}}}|normal||font-weight:{{{fw2|normal}}};}}{{{contentcss|{{{contentstyle|}}}}}} }}
<div class="NavContent">
</div></div>{{{content|{{{contents|{{{2}}}}}}}}}{{hidden end}}{{#if:{{{bg1|}}}{{{bg2|}}}{{{ta1|}}}{{{ta2|}}}{{{fw1|}}}{{{fw2|}}}|[[Category:Hidden templates using styles|{{NAMESPACE}}{{PAGENAME}}]]}}<noinclude>
</div>
{{documentation}}
</div>
</divnoinclude>
</div>
 
<div class="NavFrame {{#if:{{{expanded|}}}|collapsed}}" style="border:none;|}}}">
<div class="NavHead"
style="font-weight:{{{fw1|bold}}}; background:{{{bg1|transparent}}};
text-align:{{{ta1|center}}}; {{{headercss|{{{headerstyle|}}}}}}">{{{header|{{{1}}}}}} </div>
<div class="NavContent" style="font-weight:{{{fw2|normal}}};
background-color:{{{bg2|transparent}}}; text-align:{{{ta2|left}}};
{{{contentcss|{{{contentstyle|}}}}}}">
{{{content|{{{contents|{{{2}}}}}}}}}
</div></div>{{#if:{{{bg1|}}}{{{bg2|}}}{{{ta1|}}}{{{ta2|}}}{{{fw1|}}}{{{fw2|}}}|[[Category:Hidden templates using styles|{{NAMESPACE}}{{PAGENAME}}]]}}<noinclude>
 
This template creates a [[Wikipedia:NavFrame|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===
<pre style="overflow:auto;">
{{Hidden
|header=
|content=
|style=
|headerstyle=
|contentstyle=
|fw1=
|fw2=
|bg1=
|bg2=
|ta1=
|ta2=
}}
</pre>
 
[[ar:قالب:مخفي]]
[[az:Şablon:Gizlət]]
[[bs:Šablon:Sakrij]]
[[ca:Plantilla:Amagada]]
[[cy:Nodyn:Cuddiwyd]]
[[dsb:Pśedłoga:Nawikašćik]]
[[et:Mall:Peidetud]]
[[en:Template:Hidden]]
[[eo:Ŝablono:Kaŝskatolo]]
[[fa:الگو:پنهان]]
[[fr:Modèle:Boîte déroulante]]
[[hy:Կաղապար:Նավարկման զոլ]]
[[hsb:Předłoha:Nawigaciska lajsta]]
[[ku:Şablon:Hidden]]
[[lt:Šablonas:Hidden]]
[[mk:Шаблон:Hidden]]
[[ja:Template:Hidden]]
[[pl:Szablon:Ukryj]]
[[pt:Predefinição:Oculto]]
[[ro:Format:Ascuns]]
[[sv:Mall:Dold]]
[[uk:Шаблон:Hidden]]
</noinclude><noinclude>{{documentation}}</noinclude>
6 586

ta tahrir