Content deleted Content added
Created page with "<noinclude> Usage: <nowiki>{{flow button|text=Must|page=link to Page (optional)|url=link to URL (optional)|action=flowbite actions (optional)|target=flowbite target|class=aditional class|alternative class=}} </nowiki> === page === {{button|text=Page button|page=Main Page|color-blue=yes}} === URL === {{button|text=Link button|url=https://example.com|color-blue=yes}} === action === {{button|text=Action button|action=modal|target=default-modal}} category:Lisa categor..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
Usage: |
Usage: |
||
<nowiki>{{ |
<nowiki>{{button|text=Button Text|page=link to Page (optional)|url=link to URL (optional)|action=flowbite actions (optional)|target=flowbite target|icon=icon name (optional)|class=additional class|color-blue=yes/no}} |
||
</nowiki> |
</nowiki> |
||
=== |
=== Examples === |
||
==== Page button ==== |
|||
{{button|text=Page button|page=Main Page|color-blue=yes}} |
{{button|text=Page button|page=Main Page|color-blue=yes}} |
||
=== URL === |
==== URL button ==== |
||
{{button|text=Link button|url=https://example.com|color-blue=yes}} |
{{button|text=Link button|url=https://example.com|color-blue=yes}} |
||
=== |
==== Action button ==== |
||
{{button|text=Action button|action=modal|target=default-modal}} |
{{button|text=Action button|action=modal|target=default-modal}} |
||
[[category:Lisa]] |
[[category:Lisa]] |
||
[[category:interactions]] |
[[category:interactions]] |
||
[[category:flowbite]] |
[[category:flowbite]] |
||
</noinclude> |
</noinclude> |
||
<includeonly>{{#if:{{{text|}}}{{{icon|}}}| |
|||
<includeonly>{{#if:{{{text|}}}{{{icon|}}}|{{#if:{{{page|}}}|[[{{{page}}}|{{Flow button|icon={{{icon|}}}|text={{{text|}}}|action={{{action|}}}|target={{{target |}}}|alternative class={{#if:{{{alternative class|}}}|{{{alternative class}}} }}|display={{{display|}}}|text-class={{{text-class|}}}|color-blue={{{color-blue|yes}}}|cursor={{{cursor|pointer}}}|class={{{class|}}}}}]]|}}{{#if:{{{url|}}}|[{{{url}}} {{Flow button|icon={{{icon|}}}|text={{{text|}}}|action={{{action|}}}|target={{{target |}}}|alternative class={{#if:{{{alternative class|}}}|{{{alternative class}}} }}|display={{{display|}}}|text-class={{{text-class|}}}|color-blue={{{color-blue|yes}}}|cursor={{{cursor|pointer}}}|class={{{class|}}}}}]|{{Flow button|icon={{{icon|}}}|text={{{text|}}}|action={{{action|}}}|target={{{target |}}}|alternative class={{#if:{{{alternative class|}}}|{{{alternative class}}} }}|display={{{display|}}}|text-class={{{text-class|}}}|color-blue={{{color-blue|yes}}}|cursor={{{cursor|pointer}}}|class={{{class|}}}}}}}}} |
|||
{{#vardefine:button_content|{{Flow button |
|||
|icon={{{icon|}}} |
|||
|text={{{text|}}} |
|||
|action={{{action|}}} |
|||
|target={{{target|}}} |
|||
|alternative class={{{alternative class|}}} |
|||
|display={{{display|}}} |
|||
|text-class={{{text-class|text-white}}} |
|||
|color-blue={{{color-blue|yes}}} |
|||
|cursor={{{cursor|pointer}}} |
|||
|class={{{class|}}} |
|||
}}}} |
|||
{{#if:{{{page|}}}| |
|||
[[{{{page}}}|{{#var:button_content}}]] |
|||
| |
|||
{{#if:{{{url|}}}| |
|||
[{{{url}}} {{#var:button_content}}] |
|||
| |
|||
{{#var:button_content}} |
|||
}} |
|||
}} |
|||
|}} |
|||
</includeonly> |
</includeonly> |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"description": "Creates a button with configurable styling and behavior", |
|||
"params": { |
|||
"text": { |
|||
"description": "Text to display on the button", |
|||
"type": "string" |
|||
}, |
|||
"icon": { |
|||
"description": "Icon name to display on the button", |
|||
"type": "string" |
|||
}, |
|||
"page": { |
|||
"description": "Wiki page to link to", |
|||
"type": "string" |
|||
}, |
|||
"url": { |
|||
"description": "External URL to link to", |
|||
"type": "string" |
|||
}, |
|||
"action": { |
|||
"description": "Flowbite action to trigger", |
|||
"type": "string" |
|||
}, |
|||
"target": { |
|||
"description": "Target for the action or link", |
|||
"type": "string" |
|||
}, |
|||
"alternative class": { |
|||
"description": "Additional CSS classes for alternative styling", |
|||
"type": "string" |
|||
}, |
|||
"display": { |
|||
"description": "Display property", |
|||
"type": "string" |
|||
}, |
|||
"text-class": { |
|||
"description": "CSS class for text styling", |
|||
"type": "string", |
|||
"default": "text-white" |
|||
}, |
|||
"color-blue": { |
|||
"description": "Whether to use blue color styling", |
|||
"type": "string", |
|||
"default": "yes" |
|||
}, |
|||
"cursor": { |
|||
"description": "Cursor style", |
|||
"type": "string", |
|||
"default": "pointer" |
|||
}, |
|||
"class": { |
|||
"description": "Additional CSS classes", |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Latest revision as of 19:13, 13 May 2025
Usage: {{button|text=Button Text|page=link to Page (optional)|url=link to URL (optional)|action=flowbite actions (optional)|target=flowbite target|icon=icon name (optional)|class=additional class|color-blue=yes/no}}
Examples
Page button
URL button
Action button
Action button
Creates a button with configurable styling and behavior
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| text | text | Text to display on the button | String | optional |
| icon | icon | Icon name to display on the button | String | optional |
| page | page | Wiki page to link to | String | optional |
| url | url | External URL to link to | String | optional |
| action | action | Flowbite action to trigger | String | optional |
| target | target | Target for the action or link | String | optional |
| alternative class | alternative class | Additional CSS classes for alternative styling | String | optional |
| display | display | Display property | String | optional |
| text-class | text-class | CSS class for text styling
| String | optional |
| color-blue | color-blue | Whether to use blue color styling
| String | optional |
| cursor | cursor | Cursor style
| String | optional |
| class | class | Additional CSS classes | String | optional |