Jump to content

Template:CS button: Difference between revisions

From Insurer Brain
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<templatestyles src="CS button/styles.css" />
<templatestyles src="CS button/styles.css" />
<div class="capsach-align capsach-align-{{#switch:{{lc:{{{align|left}}}}}|center=center|right=right|left=left|#default=left}}">
<div class="capsach-align capsach-align-{{#switch:{{lc:{{{align|left}}}}}|center=center|right=right|left=left|#default=left}}">
{{#if:{{{link|}}}
{{#if:{{{link|}}}
| [[{{{link}}}|<span class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
| <a class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
href="{{localurl:{{{link}}}}"
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</span>]]
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</a>
| {{#if:{{{url|}}}
| {{#if:{{{url|}}}
| [{{{url}}} <span class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
| <a class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</span>]
href="{{{url}}}"
| <span class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</span>
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</a>
| <span class="capsach-btn{{#switch:{{lc:{{{mobile|}}}}}|full= capsach-btn--mobile|yes= capsach-btn--mobile|true= capsach-btn--mobile|1= capsach-btn--mobile|block= capsach-btn--mobile|#default=}}"
}}
title="{{{tooltip|}}}"{{#if:{{{width|}}}| style="width: {{{width}}};"}}>{{{text|Button}}}</span>
}}
}}
}}
</div>
</div>

Revision as of 11:09, 13 October 2025

 {{#if:
 | <a class="capsach-btn"
      href="{{localurl:{{{link}}}}"
      title="">Button</a>
 | Button
 }}