Template:ContributeButton: Difference between revisions
Jump to navigation
Jump to search
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
Template:ContributeButton | Template:ContributeButton | ||
| Line 5: | Line 4: | ||
- link: page to send users to (default: Help:Contributing) | - link: page to send users to (default: Help:Contributing) | ||
- text: button label (default: Learn how to contribute) | - text: button label (default: Learn how to contribute) | ||
- target: optional target | - target: optional target (_self/_blank) (default: _self) | ||
--> | --> | ||
<includeonly> | |||
{{TemplateStyles|Template:ContributeButton/styles.css}} | |||
<div class="wp-contrib-cta"> | <div class="wp-contrib-cta"> | ||
<a | <a class="wp-contrib-cta__btn" | ||
href="{{fullurl:{{{link|Help:Contributing}}}}}" | |||
title="{{{text|Learn how to contribute}}}" | |||
aria-label="{{{text|Learn how to contribute}}}" | |||
target="{{{target|_self}}}" | |||
rel="{{#ifeq:{{{target|_self}}}|_blank|noopener noreferrer|}}"> | |||
<span class="wp-contrib-cta__icon" aria-hidden="true">📝</span> | <span class="wp-contrib-cta__icon" aria-hidden="true">📝</span> | ||
<span class="wp-contrib-cta__text">{{{text|Learn how to contribute}}}</span> | <span class="wp-contrib-cta__text">{{{text|Learn how to contribute}}}</span> | ||
| Line 22: | Line 21: | ||
</a> | </a> | ||
</div> | </div> | ||
</includeonly> | |||
<noinclude> | |||
Use with: | |||
<code><nowiki>{{ContributeButton}}</nowiki></code> or | |||
<code><nowiki>{{ContributeButton|link=Help:Contributing|text=Start contributing}}</nowiki></code> | |||
</noinclude> | |||
Revision as of 05:08, 19 August 2025
Use with:
{{ContributeButton}} or
{{ContributeButton|link=Help:Contributing|text=Start contributing}}