Šablona:FAQ: Porovnání verzí
Z Wiki JU
Bez shrnutí editace |
Bez shrnutí editace |
||
| Řádek 4: | Řádek 4: | ||
ans_bg, ans_ramecek(1/0), ans_barva_ramecku, ans_radius, ans_inset --> | ans_bg, ans_ramecek(1/0), ans_barva_ramecku, ans_radius, ans_inset --> | ||
<!-- | <!-- helpery pro výchozí hodnoty bez Variables --> | ||
<!-- | <!-- barvy a přepínače --> | ||
{{# | {{#switch:{{{tema|default}}} | ||
| uni = <!-- UNI téma --> | |||
{{#ifeq:{{{permanentne|0}}}|1| | |||
<!-- PERMANENT --> | |||
<div class="faq-item faq-permanent" | |||
style="background:{{#if:{{{bg|}}}|{{{bg}}}|#E00034}}; border:{{#ifeq: {{#if:{{{ramecek|}}}|{{{ramecek}}}|0}} | 1 | 1px solid {{#if:{{{barva_ramecku|}}}|{{{barva_ramecku}}}|#E00034}} | none}}; border-radius:{{{radius|10px}}}; padding:0; margin:.5rem 0;"> | |||
<div class="faq-qrow" role="heading" | |||
<!-- | style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:{{{q_color|#ffffff}}};"> | ||
<span class="faq-qtext" style="flex:1 1 auto;">{{{que|Question}}}</span> | |||
</div> | |||
<div class="faq-answer" | |||
style="margin:.25rem {{{ans_inset|12px}}} 1rem {{{ans_inset|12px}}}; padding:.75rem 1rem; | |||
background:{{{ans_bg|#f5f5f5}}}; border:{{#ifeq: {{{ans_ramecek|1}}} | 1 | 1px solid {{{ans_barva_ramecku|#00000033}}} | none}}; border-radius:{{{ans_radius|0 0 10px 10px}}};"> | |||
{{{ans|}}} | |||
</div> | |||
<!-- | |||
{{# | |||
{{ | |||
{{ | |||
</div> | </div> | ||
| | |||
<!-- COLLAPSIBLE --> | |||
<details class="faq-item" | |||
style="background:{{#if:{{{bg|}}}|{{{bg}}}|#E00034}}; border:{{#ifeq: {{#if:{{{ramecek|}}}|{{{ramecek}}}|0}} | 1 | 1px solid {{#if:{{{barva_ramecku|}}}|{{{barva_ramecku}}}|#E00034}} | none}}; border-radius:{{{radius|10px}}}; padding:0; margin:.5rem 0;"> | |||
<summary class="faq-qrow" | |||
style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:{{{q_color|#ffffff}}}; list-style:none; cursor:pointer;"> | |||
<span class="faq-qtext" style="flex:1 1 auto;">{{{que|Question}}}</span> | |||
<span class="faq-arrow" style="margin-left:auto; color:{{{barva_sipky|#ffffff}}};"> | |||
<span class="arrow-down">▼</span><span class="arrow-up">▲</span> | |||
</span> | |||
</summary> | |||
<div class="faq-answer" | |||
style="margin:.25rem {{{ans_inset|12px}}} 1rem {{{ans_inset|12px}}}; padding:.75rem 1rem; | |||
background:{{{ans_bg|#f5f5f5}}}; border:{{#ifeq: {{{ans_ramecek|1}}} | 1 | 1px solid {{{ans_barva_ramecku|#00000033}}} | none}}; border-radius:{{{ans_radius|0 0 10px 10px}}};"> | |||
{{{ans|}}} | |||
</div> | |||
</details> | |||
}} | |||
| #default = | |||
{{#ifeq:{{{permanentne|0}}}|1| | |||
<!-- PERMANENT (default téma) --> | |||
<div class="faq-item faq-permanent" | |||
style="background:{{#if:{{{bg|}}}|{{{bg}}}|#ffffff}}; border:{{#ifeq: {{#if:{{{ramecek|}}}|{{{ramecek}}}|1}} | 1 | 1px solid {{#if:{{{barva_ramecku|}}}|{{{barva_ramecku}}}|#00000033}} | none}}; border-radius:{{{radius|10px}}}; padding:0; margin:.5rem 0;"> | |||
<div class="faq-qrow" role="heading" | |||
style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:{{{q_color|#000000}}};"> | |||
<span class="faq-qtext" style="flex:1 1 auto;">{{{que|Question}}}</span> | |||
</div> | |||
<div class="faq-answer" | |||
style="margin:.25rem {{{ans_inset|12px}}} 1rem {{{ans_inset|12px}}}; padding:.75rem 1rem; | |||
background:{{{ans_bg|#f5f5f5}}}; border:{{#ifeq: {{{ans_ramecek|1}}} | 1 | 1px solid {{{ans_barva_ramecku|#00000033}}} | none}}; border-radius:{{{ans_radius|0 0 10px 10px}}};"> | |||
{{{ans|}}} | |||
</div> | |||
</div> | </div> | ||
</details> | | | ||
<!-- COLLAPSIBLE (default téma) --> | |||
<details class="faq-item" | |||
style="background:{{#if:{{{bg|}}}|{{{bg}}}|#ffffff}}; border:{{#ifeq: {{#if:{{{ramecek|}}}|{{{ramecek}}}|1}} | 1 | 1px solid {{#if:{{{barva_ramecku|}}}|{{{barva_ramecku}}}|#00000033}} | none}}; border-radius:{{{radius|10px}}}; padding:0; margin:.5rem 0;"> | |||
<summary class="faq-qrow" | |||
style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:{{{q_color|#000000}}}; list-style:none; cursor:pointer;"> | |||
<span class="faq-qtext" style="flex:1 1 auto;">{{{que|Question}}}</span> | |||
<span class="faq-arrow" style="margin-left:auto; color:{{{barva_sipky|#000000}}};"> | |||
<span class="arrow-down">▼</span><span class="arrow-up">▲</span> | |||
</span> | |||
</summary> | |||
<div class="faq-answer" | |||
style="margin:.25rem {{{ans_inset|12px}}} 1rem {{{ans_inset|12px}}}; padding:.75rem 1rem; | |||
background:{{{ans_bg|#f5f5f5}}}; border:{{#ifeq: {{{ans_ramecek|1}}} | 1 | 1px solid {{{ans_barva_ramecku|#00000033}}} | none}}; border-radius:{{{ans_radius|0 0 10px 10px}}};"> | |||
{{{ans|}}} | |||
</div> | |||
</details> | |||
}} | |||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Použití: | Použití: | ||
* | * {{FAQ|que=Can I upload PDFs over 10 MB?|ans=Yes, ask IT to raise the limit.}} | ||
* | * {{FAQ|que=Password reset|ans=Use [[Special:PasswordReset]].|tema=uni}} | ||
* | * {{FAQ|que=Notice|ans=Maintenance 22:00–23:00.|permanentne=1|tema=uni}} | ||
</noinclude> | </noinclude> | ||
Verze z 24. 9. 2025, 13:55
Použití:
<details class="faq-item"
style="background:
- ffffff; border:1px solid
- 00000033; border-radius:10px; padding:0; margin:.5rem 0;">
<summary class="faq-qrow"
style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:#000000; list-style:none; cursor:pointer;">
Can I upload PDFs over 10 MB?
▼▲
</summary>
Yes, ask IT to raise the limit.
</details>
<details class="faq-item"
style="background:
- E00034; border:none; border-radius:10px; padding:0; margin:.5rem 0;">
<summary class="faq-qrow"
style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:#ffffff; list-style:none; cursor:pointer;">
Password reset
▼▲
</summary>
</details>
Notice
Maintenance 22:00–23:00.