-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.

Template:FP Button/Documentation: Difference between revisions

From Dream Cancel Wiki
Jump to navigation Jump to search
Purin (talk | contribs)
Created page with " Main menu MediaWiki Search MediaWiki Search English Create account Log in Personal tools Editing Template:Clickable button 2/doc Template Discussion Read Edit source View history Tools Information about template data Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits. Advanced Special characters Help {{Languages|Te..."
 
Purin (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>


Main menu
{{FP button|color=white}} → <nowiki>{{FP button|color=white}}</nowiki>


MediaWiki
{{FP button|color=red}} → <nowiki>{{FP button|color=red}}</nowiki>
Search MediaWiki
Search
English
Create account
Log in


Personal tools
{{FP button|color=blue}} → <nowiki>{{FP button|color=blue}}</nowiki>
Editing Template:Clickable button 2/doc
Template
Discussion
Read
Edit source
View history


Tools
[[target|{{FP button|text}}]] → <nowiki>[[target|{{FP button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{FP button|text}}]]</nowiki>. Or better use {{tl|FP button 2}} which adds links automatically)
Information about template data
== Templatedata ==
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
<templatedata>
Advanced
{
Special characters
"params": {
Help
"color": {
{{Languages|Template:Clickable button 2/doc}}
"label": "Color of the button",
{{Documentation subpage}}
"description": "Can be blue (progressive), red (destructive) or white",
{{lua|Module:Clickable button 2}}
"suggested": true,
 
"type": "string"
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,
},
 
"text": {
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page}}</nowiki></code>
"aliases": [
**'''Result: '''{{Clickable button 2|Main Page}}
"1"
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
],
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
"label": "Label",
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
"type": "content",
**'''Result: '''{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
"required": true
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code>
}
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}}
},
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>
"description": "Creates a OOUI styled button.",
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-progressive}}
"paramOrder": [
 
"text",
'''Note: '''After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>.
"color"
 
],
=== See also ===
"format": "inline"
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
}
 
</templatedata>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
</noinclude>
 
}}</includeonly>
 
Summary (?):
By saving changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 4.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
  Preview page with this template
Page title
 
Standard
    ·  ·  ·  ·  ·      ·      ·             
      ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·
Templates used on this page:
 
This page is a member of a hidden category:
 
Privacy policyAbout mediawiki.orgDisclaimersCode of ConductDevelopersStatisticsCookie statementMobile viewWikimedia FoundationPowered by MediaWiki
Toggle limited content width

Latest revision as of 17:48, 17 October 2023


Template:FP button → {{FP button|color=white}}

Template:FP button → {{FP button|color=red}}

Template:FP button → {{FP button|color=blue}}

[[target|Template:FP button]] → [[target|{{FP button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{FP button|text}}]]. Or better use Template:Tl which adds links automatically)

Templatedata

Creates a OOUI styled button.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Labeltext 1

no description

Contentrequired
Color of the buttoncolor

Can be blue (progressive), red (destructive) or white

Stringsuggested