Template:Blue button: Difference between revisions
Content deleted Content added
GVarnum-WMF (talk | contribs) m 1 revision imported from meta:Template:Blue_button |
GVarnum-WMF (talk | contribs) mNo edit summary Tag: 2017 source edit |
||
Line 2: | Line 2: | ||
</noinclude><templatestyles src="Blue button/styles.css" /><!-- Avoid new line character which would transclude the button inside a <p> tag |
</noinclude><templatestyles src="Blue button/styles.css" /><!-- Avoid new line character which would transclude the button inside a <p> tag |
||
--><span class="plainlinks">{{#if:{{{elink|}}}|[{{{elink}}} <span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{{text|{{{1}}}}}}</span>]|{{#if:{{{link|}}}|[[{{{link}}}|<span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{{text|{{{1}}}}}}</span>]]|<span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{ |
--><span class="plainlinks">{{#if:{{{elink|}}}|[{{{elink}}} <span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{{text|{{{1}}}}}}</span>]|{{#if:{{{link|}}}|[[{{{link}}}|<span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{{text|{{{1}}}}}}</span>]]|<span class="blue-button" style="text-rendering: optimizelegibility; transition: all 100ms;">{{{1|{{{text<noinclude>|</noinclude>}}} }}} |
||
⚫ | |||
|Add yourself = <translate><!--T:1--> Add yourself</translate> |
|||
|Join = <translate><!--T:2--> Join</translate> |
|||
|Subscribe = <translate><!--T:3--> Subscribe</translate> |
|||
|Register = <translate><!--T:5--> Register</translate> |
|||
|#default |Go on = {{{text|{{{1|<translate><!--T:4--> Go on</translate>}}} }}} |
|||
⚫ | |||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 06:02, 10 March 2023
This template uses TemplateStyles: |
Creates a blue button, similar to how MediaWiki's built-in buttons (publish button etc.) look like.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button label | text 1 | Text displayed on the button, preferably without any formatting (inline formatting like bold/italics etc. work, but a real button wouldn't use them, so it reduces mimicking). Suggested values will be automatically localized.
| Line | required |
link target (internal) | link | Page the button should link to, may contain interwiki prefix
| Page name | optional |
link target (external) | elink | URL the button should link to, overrides the internal link target
| URL | optional |