Template:CS button: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
<templatestyles src="CS button/styles.css" />
<div class="capsach-align capsach-align-{{#switch:{{lc:{{{align|left}}}}}|center=center|right=right|left=left|#default=left}}">
{{#if:{{{link|}}}{{{url|}}}
| {{#tag:a<span
| class="{{#switch:{{lc:{{{textmobile|Button}}}}}
| classfull={{#switch:{{lc:{{{capsach-btn capsach-btn--mobile|}}}}}
| fullyes=capsach-btn capsach-btn--mobile
| yestrue=capsach-btn capsach-btn--mobile
| true1=capsach-btn capsach-btn--mobile
| 1block=capsach-btn capsach-btn--mobile
| block#default=capsach-btn capsach-btn--mobile}}"
| {{#if:{{{width|}}}| style="width: {{{width}}};"}}>
| #default=capsach-btn
[[{{{link}}}|{{{text|Button}}}]]
| {{#tag: </span>
| href={{{url|{{localurl:{{{link}}}}}}}}
| title={{#if:{{{tooltipurl|}}}
| <span
| {{#if:{{{width|}}}|style=width: {{{width}}};}}
| href class="{{#switch:{url|{{localurllc:{{{link}}}mobile|}}}}}
}}
| blockfull=capsach-btn capsach-btn--mobile
| {{#tag:span
| yes=capsach-btn capsach-btn--mobile
| {{{text|Button}}}
| classtrue={{#switch:{{lc:{{{capsach-btn capsach-btn--mobile|}}}}}
| full1=capsach-btn capsach-btn--mobile
| yesblock=capsach-btn capsach-btn--mobile
| true#default=capsach-btn capsach-btn--mobile}}"
{{#if:{{{width|}}}| 1style=capsach-btn"width: capsach-btn--mobile{{{width}}};"}}>
| [{{{url}}} {{{text|Button}}}]
| block=capsach-btn capsach-btn--mobile
</span>
| #default=capsach-btn
| }}<span
| title class="{{#switch:{{lc:{{{tooltipmobile|}}}}}
| full=capsach-btn capsach-btn--mobile
| {{#if:{{{width|}}}|style=width: {{{width}}};}}
| yes=capsach-btn capsach-btn--mobile
| true=capsach-btn capsach-btn--mobile
| 1=capsach-btn capsach-btn--mobile
| block=capsach-btn capsach-btn--mobile
| #default=capsach-btn }}"
| {{#if:{{{width|}}}| style="width: {{{width}}};"}}>
<span class="capsach-btn__inner" role="button" tabindex="0">{{{text|Button}}}</span>
</span>
}}
}}