Шаблон:Sup and sub-related templates
Superscript and subscript-related templates | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{#if:{{sup}} and related templates|{{#if:Combined super/subscripts|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}{{#if:|}}}}{{#if:
| ||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| su.
}} | textp=superscript b=subscript{{#iferror:{{#expr:4}} |{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}p=superscript | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| sup sub
}} | textsup sub{{#iferror:{{#expr:4}} |{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}sup | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| ±
}} | 1.23{{#if:4
|{{#if:2
|+4
}} | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| overunderset
}} / {{#if: | [[Template:{{{2}}}|{{{2}}}]]
| underoverset
}} | superscripttextsubscript |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| su.
}} | textp=superscript b=subscript{{#iferror:{{#expr:4}} |{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}p=superscript | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| sup sub
}} | textsup sub{{#iferror:{{#expr:4}} |{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}sup | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| ±
}} | 1.23{{#if:4
|{{#if:2
|+4
}} | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| overunderset
}} / {{#if: | [[Template:{{{2}}}|{{{2}}}]]
| underoverset
}} | superscripttextsubscript |
{{{col3}}}
{{{col4}}}
{{{col5}}}
{{{col6}}}
{{{col7}}}
{{{col8}}}
{{{col9}}}
{{{col10}}}
{{{col11}}}
{{{col12}}}
{{{col13}}}
{{{col14}}}
{{{col15}}}
{{{col16}}}
{{{col17}}}
{{{col18}}}
{{{col19}}}
{{{col20}}}
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| sup
}} | textsuperscript{{#iferror:{{#expr:4}}
|{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}superscripttext | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| smallsup
}} | ({{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| ssup
}}) | textsmall superscript{{#iferror:{{#expr:4}}
|{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}small superscripttext |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| i sup
}} | ({{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| isup
}} · {{#if: | [[Template:{{{2}}}|{{{2}}}]]
| padlsup
}}) | text{{#if: |{{{2}}} |superscript}}{{#iferror:{{#expr:2}}
|{{#switch:2
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}({{safesubst:#if:rather than: |rather than: |90% }} textsuperscript) |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| i smallsup
}} | ({{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| issup
}} · {{#if: | [[Template:{{{2}}}|{{{2}}}]]
| padlssup
}}) | text{{#if: |{{{2}}} |small superscript}}{{#iferror:{{#expr:2}}
|{{#switch:2
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}({{safesubst:#if:rather than: |rather than: |90% }} textsmall superscript) |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| sub
}} | textsubscript{{#iferror:{{#expr:4}}
|{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}subscripttext | |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| smallsub
}} | ({{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| ssub
}}) | textsmall subscript{{#iferror:{{#expr:4}}
|{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}small subscripttext |
{{#if:
| [[Template:{{{2}}}|{{{2}}}]]
| subsub
}} | textdouble-subscripted{{#iferror:{{#expr:4}}
|{{#switch:4
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}double-subscriptedtext |
Почетни приказ
Да бисте подесили почетни приказ шаблона, потребно је користити параметар |{{SAFESUBST:#if:state|state=}}:
|{{SAFESUBST:#if:state|state=}}collapsed: {{{{{{#if: | |BASE}}PAGENAME}}|state=collapsed}} да би се шаблон приказао затворен, тј. да сви делови осим линије наслова буду сакривени|{{SAFESUBST:#if:state|state=}}expanded: {{{{{{#if: | |BASE}}PAGENAME}}|state=expanded}} да би се шаблон приказао отворен, тј. да комплетан шаблон буде приказан|{{SAFESUBST:#if:state|state=}}autocollapse: {{{{{{#if: | |BASE}}PAGENAME}}|state=autocollapse}}- да би се шаблон приказао затворен ако постоји {{navbar}}, {{sidebar}} или нека друга табела на страници са атрибутом collapsible
- да би се шаблон приказао отворен ако нема других склопљивих елемената на страници
|{{SAFESUBST:#if:state|state=}} није одређен, почетни приказ шаблона онда контролише параметар |{{SAFESUBST:#if:default|default=}}. За овај шаблон, исти тренутно има вредност {{#switch:|collapsed=collapsed|expanded=expanded|autocollapse|#default=autocollapse}}.{{#if:|
|{{SAFESUBST:#if:align|align=}}вредностје такође доступно; овде вредност може да будеrightилиleft, а подразумевано јеcenter
}}{{#if:|:|{{SAFESUBST:#if:title-background|title-background=}}вредност је такође доступно; овде вредност може да буде navbox или color, а подразумевано је none и navbox узима се подразумевана боја навигационе кутије
}}{{#if:|
|{{SAFESUBST:#if:width|width=}}вредностје такође доступно; овде вредност може да будеN [em/%/px]илиauto, а подразумевано је100%
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон | šablon = {{#if: |Lua грешка in Модул:Effective_protection_level at line 52: attempt to index field 'ext' (a nil value).
| {{#if: |Шаблон:Pp-move }}
}}
| other | #default = }}
Подстранице овог шаблона.