Vorlage:Knopf: Unterschied zwischen den Versionen

1.366 Bytes hinzugefügt ,  19. Februar 2019
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 106: Zeile 106:
[[Kategorie:Vorlage]]</noinclude>
[[Kategorie:Vorlage]]</noinclude>


<onlyinclude><div role="button" class="plainlinks<!--
<onlyinclude><templatestyles src="MediaWiki-Button/styles.css" /><div
--> {{#ifeq:<!--
role="button" class="plainlinks {{#ifeq:{{#if:{{{Zentriert|0}}}|{{{Zentriert|0}}}|0}}|0||center}}"
-->{{#if:{{{Zentriert|0}}}|{{{Zentriert|0}}}|0}}<!--
'''style="margin:{{{Margin|.5em}}};">[{{#if: {{#invoke:URLutil|isResourceURL|1={{{Link|{{{1}}}}}}}}
-->|0||center}}"<!--plainlinks end-->
style="margin:{{{Margin|.5em}}};"><!--
-->[<!--
-->{{#if:<!--
--> {{#invoke:URLutil|isResourceURL|1={{{Link|{{{1}}}}}}}}
   | {{{Link|{{{1}}}}}}
   | {{{Link|{{{1}}}}}}
   | {{#ifeq: {{padleft:|1|{{{Link|{{{1}}}}}}}}|#
   | {{#ifeq: {{padleft:|1|{{{Link|{{{1}}}}}}}}|#
Zeile 121: Zeile 116:
   }}<!-- link target finished
   }}<!-- link target finished
--> <span class="mw-ui-button {{#switch: {{{Typ|}}}
--> <span class="mw-ui-button {{#switch: {{{Typ|}}}
                |destructive =mw-ui-destructive
                                |destructive=mw-ui-destructive
                |progressive =mw-ui-progressive }}
                                |progressive=mw-ui-progressive
            {{#ifeq:{{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}|0||mw-ui-big}}
                                |destructive-normal=mw-ui-destructive mw-ui-quiet
            {{#ifeq:{{#if:{{{Quiet|0}}}|{{{Quiet|0}}}|0}}|0|||mw-ui-quiet}}"
                                |progressive-normal=mw-ui-progressive mw-ui-quiet
          style="color: #{{#if: {{{Quiet|}}} | {{#switch: {{{Typ|}}}
                              }}
                                                  |destructive=D11D13
                {{#ifeq:{{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}|0||mw'''-ui-big}}
                                                  |progressive=347BFF
                {{#ifeq:{{#if:{{{Quiet|0}}}|{{{Quiet|0}}}|0}}|0|||mw-ui-quiet}}"
                                                  |#default  =555555 }}
           {{#if: {{{Padding|}}} | style="padding: {{{Padding}}};"}}
                                              | {{#switch: @{{{Typ|}}}
                                                  |@                  =555555
                                                  |@destructive-normal=DD3333
                                                  |@progressive-normal=3366CC
                                                  |#default           =FFFFFF }}
                          }};
                  {{#if: {{{Padding|}}} | padding: {{{Padding}}};}}"
{{#if:{{{Tooltip|}}}|title="{{{Tooltip}}}"}}
{{#if:{{{Tooltip|}}}|title="{{{Tooltip}}}"}}
>{{#if:{{{Icon|}}}
>{{#if:{{{Icon|}}}
   |<span style="margin-right:.5em">[[Datei:{{{Icon}}}|{{#ifeq:{{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}|0|16|24}}px|link=]]</span>
   |<span style="margin-right:.5em">[[Datei:{{{Icon}}}|{{#ifeq:
                            {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                              |0|16|24}}px|link=]]</span>
}}{{{Text}}}</span>]{{#if: {{{Hilfe|}}} |
<span style=" margin-left:2px; position:relative; top:-{{#ifeq:
                            {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                                      |0|10|12}}px;"
    >[[Datei:OOjs UI icon help.svg|{{#ifeq:
                            {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                                      |0|16|20}}px|link={{{Hilfe}}}]]</span>
}}</div></onlyinclude>
 
<onlyinclude><templatestyles src="MediaWiki-Button/styles.css" /><div
role="button" class="plainlinks {{#ifeq:{{#if:{{{Zentriert|0}}}|{{{Zentriert|0}}}|0}}|0||center}}"
'''style="margin:{{{Margin|.5em}}};">[{{#if: {{#invoke:URLutil|isResourceURL|1={{{Link|{{{1}}}}}}}}
  | {{{Link|{{{1}}}}}}
  | {{#ifeq: {{padleft:|1|{{{Link|{{{1}}}}}}}}|#
      | {{fullurl:{{FULLPAGENAME}}{{{Link|{{{1}}}}}}}}
      | {{fullurl:{{{Link|{{{1|{{FULLPAGENAME}}}}}}}}}}
    }}
  }}<!-- link target finished
--> <span class="mw-ui-button {{#switch: {{{Typ|}}}
                                |destructive=mw-ui-destructive
                                |progressive=mw-ui-progressive
                                |destructive-normal=mw-ui-destructive mw-ui-quiet
                                |progressive-normal=mw-ui-progressive mw-ui-quiet
                              }}
                {{#ifeq:{{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}|0||mw'''-ui-big}}
                {{#ifeq:{{#if:{{{Quiet|0}}}|{{{Quiet|0}}}|0}}|0|||mw-ui-quiet}}"
          {{#if: {{{Padding|}}} | style="padding: {{{Padding}}};"}}
{{#if:{{{Tooltip|}}}|title="{{{Tooltip}}}"}}
>{{#if:{{{Icon|}}}
  |<span style="margin-right:.5em">[[Datei:{{{Icon}}}|{{#ifeq:
                            {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                              |0|16|24}}px|link=]]</span>
}}{{{Text}}}</span>]{{#if: {{{Hilfe|}}} |
}}{{{Text}}}</span>]{{#if: {{{Hilfe|}}} |
<span style=" margin-left:2px; position:relative; top:-{{#ifeq:
<span style=" margin-left:2px; position:relative; top:-{{#ifeq:
                             {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                             {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                                       |0|10|12}}px;"
                                       |0|10|12}}px;"
     ><!--[[Datei:OOjs UI icon help.svg|{{#ifeq:
     >[[Datei:OOjs UI icon help.svg|{{#ifeq:
                             {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                             {{#if:{{{Groß|0}}}|{{{Groß|0}}}|0}}
                                       |0|16|20}}px|link={{{Hilfe}}}]]--></span>
                                       |0|16|20}}px|link={{{Hilfe}}}]]</span>
}}</div></onlyinclude>
}}</div></onlyinclude>
21.537

Bearbeitungen