Vorlage:Box: Unterschied zwischen den Versionen
etwas umgestellt
(Korrektur) |
(etwas umgestellt) |
||
Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Box/styles.css" /><div class="voy-box-wrapper {{#switch: {{{color|}}} | <includeonly><templatestyles src="Box/styles.css" /><div class="voy-box-wrapper {{#switch: {{{color|}}} | ||
| 2 = voy-box-var-2 | | 2 = voy-box-var-2 | ||
| 3 = voy-box-var-3 | | 3 = voy-box-var-3 | ||
| #default = voy-box-var-1 | | #default = voy-box-var-1 | ||
}} {{#switch: {{{position|}}} | }} {{#switch: {{{position|}}} | ||
| links | left = voy-box-left | | links | left = voy-box-left | ||
| rechts | right = voy-box-right | | rechts | right = voy-box-right | ||
| center | centered | zentriert | mitte = voy-box-centered | | center | centered | zentriert | mitte = voy-box-centered | ||
}} {{#if: {{{isFirst|}}} | voy-box-first }} {{#switch: {{{expanded|}}} | yes | y | ja | j = mw-collapsible }} {{#switch: {{{collapsed|}}} | yes | y | ja | j = mw-collapsible mw-collapsed }} {{{addClasses|}}}" {{#if: {{{styles|}}}{{{position|}}}{{{width|}}} | style="{{#if: {{{position|}}} | }} {{#if: {{{isFirst|}}} | voy-box-first }} {{#switch: {{{expanded|}}} | yes | y | ja | j = mw-collapsible }} {{#switch: {{{collapsed|}}} | yes | y | ja | j = mw-collapsible mw-collapsed }} {{{addClasses|}}}" {{#if: {{{styles|}}}{{{position|}}}{{{width|}}} | ||
| style="{{#if: {{{position|}}} | |||
| width: {{{width|40%}}}; | |||
}} {{{styles|}}}" | | | {{#if: {{{width|}}} | width: {{{width}}}; }} | ||
}} {{{styles|}}}" | |||
| | |||
}}><!-- | |||
-->{{#if: {{{content|}}} | <div class="plainlinks voy-box-edit-link">[[{{fullurl:{{{content|/}}}|action=edit}} {{Mediawiki:Edit}}]]</div>}}<!-- | -->{{#if: {{{content|}}} | <div class="plainlinks voy-box-edit-link">[[{{fullurl:{{{content|/}}}|action=edit}} {{Mediawiki:Edit}}]]</div>}}<!-- | ||
-->{{#if: {{{image|}}} | <div class="voy-box-image mw-collapsible-content" {{#if: {{{imgStyles|}}} | style = "{{{imgStyles}}}" }}>{{{image}}}</div> }}<!-- | -->{{#if: {{{image|}}} | <div class="voy-box-image mw-collapsible-content" {{#if: {{{imgStyles|}}} | style = "{{{imgStyles}}}" }}>{{{image}}}</div> }}<!-- | ||
-->{{#if: {{{title|}}} | <div class="voy-box-header {{#if: {{{content|}}} | | {{#if: {{{center|}}} | voy- | -->{{#if: {{{title|}}} | <div class="voy-box-header {{#if: {{{content|}}} | | {{#if: {{{center|}}} | voy-text-center }} }}" {{#if: {{{id|}}} | id="{{URLENCODE:{{{id}}}}}"}}>{{{title|}}}</div>}} | ||
<div class="voy-box-content mw-collapsible-content" {{#if: {{{textStyles | <div class="voy-box-content mw-collapsible-content" {{#if: {{{textStyles|}}} | style="{{{textStyles|}}}" }}> | ||
{{#if: {{{content|}}} | {{{{{content}}}}} | {{{1|}}} }}</div><div style="clear: both;"></div> | {{#if: {{{content|}}} | {{{{{content}}}}} | {{{1|}}} }}</div> | ||
<div style="clear: both;"></div> | |||
</div></includeonly><noinclude>{{Dokumentation}}</noinclude> | </div></includeonly><noinclude>{{Dokumentation}}</noinclude> |