Content deleted Content added
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
==== Source ==== |
==== Source ==== |
||
<pre><nowiki> |
<pre><nowiki> |
||
{{Alert|content=a tailwind based skin|content bold=Lisa:|type=top border|bg-color=bg-light-purple|border-color=border- |
{{Alert|content=a tailwind based skin|content bold=Lisa:|type=top border|bg-color=bg-light-purple|border-color=border-fox-{{{fox-color|purple}}}|text-color=text-fox-purple|icon-type=fa-regular}} |
||
</nowiki></pre> |
</nowiki></pre> |
||
{{Alert|content=a tailwind based skin|content bold=Lisa:|type=top border|bg-color=bg-light-purple|border-color=border- |
{{Alert|content=a tailwind based skin|content bold=Lisa:|type=top border|bg-color=bg-light-purple|border-color=border-fox-purple|text-color=text-fox-purple|icon-type=fa-regular}} |
||
=== Traditional === |
=== Traditional === |
||
| Line 231: | Line 231: | ||
<p class="text-sm">{{{content|}}}</p>{{#if:{{{icon|}}}|</div>}} |
<p class="text-sm">{{{content|}}}</p>{{#if:{{{icon|}}}|</div>}} |
||
</div> |
</div> |
||
|fox = <div class="{{{bg-color|bg-light-purple}}} border {{{border-color|border-fox-{{{fox-color|purple}}}}}} {{{text-color|text- |
|fox = <div class="{{{bg-color|bg-light-purple}}} border {{{border-color|border-fox-{{{fox-color|purple}}}}}} {{{text-color|text-fox-{{{fox-color|purple}}}}}} px-4 py-3 rounded relative {{#if:{{{link|{{{external-link|}}}}}}|flex justify-between align-items-center {{{{hover|transition-all hover:bg-fox-{{{fox-color|purple}}} hover:border-fox-{{{fox-color|purple}}} hover:text-white}}} }}" role="alert">{{#if:{{{link|{{{external-link|}}}}}}|<div>}}{{#if:{{{icon|}}}|{{i|{{{icon}}}|{{{icon-type|fal}}}|me-2}} }}<span class="font-bold">{{{content bold|}}}</span> <span class="block sm:inline">{{{content|}}}</span>{{#if:{{{link|{{{external-link|}}}}}}|</div><div>{{i|angle-{{{direction|right}}}|fas|fill-current opacity-75 h-4 w-4}}<div class="overlay-link">{{#if:{{{external-link|}}}|{{{external-link|}}}|{{#if:{{{link|}}}|[[{{{link}}}]]}} }}</div></div>}}</div> |
||
}}</includeonly> |
}}</includeonly> |
||
<noinclude> |
<noinclude> |
||
| Line 274: | Line 274: | ||
"type": "string", |
"type": "string", |
||
"suggestedvalues": [ |
"suggestedvalues": [ |
||
"border- |
"border-fox-purple", |
||
"border-fox-azure", |
"border-fox-azure", |
||
"bg-fox-magenta" |
"bg-fox-magenta" |
||
| Line 287: | Line 287: | ||
"type": "string", |
"type": "string", |
||
"suggestedvalues": [ |
"suggestedvalues": [ |
||
"text- |
"text-fox-purple", |
||
"text-fox-azure", |
"text-fox-azure", |
||
"text-fox-magenta" |
"text-fox-magenta" |
||
| Line 347: | Line 347: | ||
"description": "click if RTL", |
"description": "click if RTL", |
||
"suggestedvalues": [ |
"suggestedvalues": [ |
||
" |
"left" |
||
] |
] |
||
}, |
}, |
||
Latest revision as of 04:49, 4 May 2025
Examples:
openfox colors:
Source
{{Alert|content=a tailwind based skin|content bold=Lisa:|type=top border|bg-color=bg-light-purple|border-color=border-fox-{{{fox-color|purple}}}|text-color=text-fox-purple|icon-type=fa-regular}}
Lisa:
a tailwind based skin
Traditional
Source
{{Alert
|type=traditional
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
}}
Result
This is an alert
Modern with Badge
Source
{{Alert
|type=modern
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|external-link=https://example.com
}}
Result
This isan alert
Left Accent Border
Source
{{Alert
|type=left border
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|link=https://example.com
}}
Result
This is
an alert
Titled
Source
{{Alert
|type=titled
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|link=https://example.com
}}
Result
This is
an alert
Solid
Source
{{Alert
|type=solid
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|external-link=https://example.com
}}
Result
This is an alert
Top Accent Border
Source
{{Alert
|type=top border
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|link=https://example.com
}}
Result
This is
an alert
Banner
Source
{{Alert
|type=banner
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|link=https://example.com
}}
Result
This is
an alert
Titled
Source
{{Alert
|type=Titled
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|link=https://example.com
}}
Result
This is
an alert
Defualt (no type)
Source
{{Alert
|content = an alert
|content bold = This is
|icon = info-circle
|icon-type = fad
|external-link=https://example.com
}}
Result
This is an alert
Template for text alerts and banners
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | content | no description | Line | suggested |
| Bold content | content bold | no description | Line | suggested |
| type | type | no description
| String | suggested |
| Background color | bg-color | no description
| String | suggested |
| Border color | border-color | no description
| String | suggested |
| Text color | text-color | no description
| String | optional |
| Icon | icon | Font Awesome icon name | String | optional |
| Icon type | icon-type | Font Awesome icon weight
| String | suggested |
| Link to page | link | no description | Page name | suggested |
| External link | external-link | no description | URL | optional |
| Direction | direction | click if RTL
| Unknown | optional |
| Icon size | icon-size | no description
| String | optional |
| Hover class for links | hover | no description | Unknown | optional |
| Leading color | fox-color | Leading color from openfox.io pallet
| String | optional |