|
|
| Řádek 1: |
Řádek 1: |
| <includeonly> | | <includeonly> |
| <!-- Parametry: que, ans, permanentne(0/1), tema(default|uni)
| | {{#ifeq: {{{permanent|0}}} | 1 |
| volitelné overrides: bg, q_color, ramecek(1/0), barva_ramecku, radius, barva_sipky,
| | | <!-- Permanentně otevřené --> |
| ans_bg, ans_ramecek(1/0), ans_barva_ramecku, ans_radius, ans_inset -->
| | <div class="faq-item"> |
| | | <div class="faq-qrow">{{{que|Question}}}</div> |
| <!-- helpery pro výchozí hodnoty bez Variables -->
| | <div class="faq-answer">{{{ans|}}}</div> |
| <!-- barvy a přepínače -->
| | </div> |
| {{#switch:{{{tema|default}}}
| | | <!-- Standardně skládací --> |
| | uni = <!-- UNI téma -->
| | <details class="faq-item"> |
| {{#ifeq:{{{permanentne|0}}}|1|
| | <summary class="faq-qrow"> |
| <!-- PERMANENT -->
| | <span>{{{que|Question}}}</span> |
| <div class="faq-item faq-permanent"
| | <span class="faq-arrow"><span class="arrow-down">▼</span><span class="arrow-up">▲</span></span> |
| 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> |
| <div class="faq-qrow" role="heading"
| | <div class="faq-answer">{{{ans|}}}</div> |
| style="display:flex; align-items:center; gap:.5rem; padding:.75rem 1rem; font-weight:700; color:{{{q_color|#ffffff}}};">
| | </details> |
| <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>
| |
| | | |
| <!-- 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>
| |
| | | |
| <!-- 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.}} | | * Standard: <nowiki>{{FAQ|que=Otázka?|ans=Odpověď.}}</nowiki> |
| * {{FAQ|que=Password reset|ans=Use [[Special:PasswordReset]].|tema=uni}} | | * Permanentně otevřené: <nowiki>{{FAQ|que=Otázka?|ans=Odpověď.|permanent=1}}</nowiki> |
| * {{FAQ|que=Notice|ans=Maintenance 22:00–23:00.|permanentne=1|tema=uni}}
| |
| </noinclude> | | </noinclude> |