Vorlage:Box: Unterschied zwischen den Versionen
K vereinfacht |
K 1 Version von wikivoyage:Vorlage:Box importiert |
||
| (11 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Box/styles.css" /> | <includeonly><templatestyles src="Box/styles.css" />{{SkandWikiStyle|{{{color|}}}}}<!-- | ||
Wrapper | |||
--><div class="skanwiki-box-wrapper skanwiki-box-var {{#switch: {{{position|}}} | |||
| links | left = | | links | left = skanwiki-box-left | ||
| rechts | right = | | rechts | right = skanwiki-box-right | ||
| center | centered | zentriert | mitte = | | center | centered | zentriert | mitte = skanwiki-box-centered | ||
}} {{#if: {{{isFirst|}}} | | }} {{#if: {{{isFirst|}}} | skanwiki-box-first }} {{#switch: {{{expanded|}}} | yes | y | ja | j = mw-collapsible }} {{#switch: {{{collapsed|}}} | yes | y | ja | j = mw-collapsible mw-collapsed }} {{{addClasses|}}}" style="border: 1px solid #{{SkandWikiColor|{{{color}}}-dark}}; {{#if: {{{styles|}}}{{{position|}}}{{{width|}}} | ||
| | | {{#if: {{{position|}}} | ||
| width: {{{width|40%}}}; | | width: {{{width|40%}}}; | ||
| {{#if: {{{width|}}} | width: {{{width}}}; }} | | {{#if: {{{width|}}} | width: {{{width}}}; }} | ||
| Zeile 14: | Zeile 14: | ||
| | | | ||
}}><!-- | }}><!-- | ||
-->{{#if: {{{content|}}} | <div class=" | -->{{#if: {{{content|}}} | <div class="skanwiki-box-edit-link plainlinks">[[{{fullurl:{{{content|/}}}|action=edit}} {{Mediawiki:Edit}}]]</div>}}<!-- | ||
-->{{#if: {{{image|}}} | <div class=" | |||
-->{{#if: {{{title|}}} | <div class=" | Header and content | ||
<div class=" | |||
{{#if: {{{content|}}} | {{{{{content}}}}} | {{{1|}}} }}</div> | -->{{#if: {{{image|}}} | <div class="skanwiki-box-image mw-collapsible-content" {{#if: {{{imgStyles|}}} | style = "{{{imgStyles}}}" }}>{{{image}}}</div> }}<!-- | ||
-->{{#if: {{{title|}}} | <div class="skanwiki-box-header {{#if: {{{content|}}} | | {{#if: {{{center|}}} | skanwiki-text-center }} skanwiki-box-title }}" style="background:#{{SkandWikiColor|{{{color}}}-dark}};color:#{{SkandWikiColor|{{{color}}}-light-font}};" {{#if: {{{id|}}} | id="{{URLENCODE:{{{id}}}}}"}}>{{{title|}}}</div>}}<!-- | |||
--><div class="skanwiki-box-content mw-collapsible-content" {{#if: {{{textStyles|}}} | style="{{{textStyles|}}}" }}> | |||
{{#if: {{{content|}}} | {{{{{content}}}}} | {{{1|{{{text|}}}}}} }}</div> | |||
</div></includeonly><noinclude>{{Dokumentation}}</noinclude> | </div></includeonly><noinclude>{{Dokumentation}}</noinclude> | ||