-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbb_codes.xml
More file actions
147 lines (140 loc) · 8.54 KB
/
bb_codes.xml
File metadata and controls
147 lines (140 loc) · 8.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0" encoding="utf-8"?>
<bb_codes>
<bb_code bb_code_id="admonition" bb_code_mode="replace" has_option="yes" option_regex="/^(note|tip|important|warning|caution)$/i" trim_lines_after="1" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="bell" title="Admonition (GitHub alerts)">
<desc><![CDATA[GitHub-style alerts/admonitions: NOTE, TIP, IMPORTANT, WARNING, CAUTION.]]></desc>
<example><![CDATA[[admonition=warning]
Be careful with this step.
[/admonition]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<style>
/* you can cut this style out and place it in your extra.css template so it's not repeated for each admonition. */
.bbWrapper .rgAdmonition{
--rgAdmonition-accent: #0969da; /* note */
--rgAdmonition-bg: rgba(9,105,218,.10);
margin: 1em 0;
padding: .75em 1em;
border-left: 4px solid var(--rgAdmonition-accent);
background: var(--rgAdmonition-bg);
border-radius: 6px;
}
.bbWrapper .rgAdmonition--tip{
--rgAdmonition-accent: #1a7f37;
--rgAdmonition-bg: rgba(26,127,55,.12);
}
.bbWrapper .rgAdmonition--important{
--rgAdmonition-accent: #8250df;
--rgAdmonition-bg: rgba(130,80,223,.12);
}
.bbWrapper .rgAdmonition--warning{
--rgAdmonition-accent: #9a6700;
--rgAdmonition-bg: rgba(154,103,0,.12);
}
.bbWrapper .rgAdmonition--caution{
--rgAdmonition-accent: #d1242f;
--rgAdmonition-bg: rgba(209,36,47,.12);
}
.bbWrapper .rgAdmonition-header{
display: flex;
align-items: center;
gap: .5em;
font-weight: 600;
margin: 0 0 .5em 0;
color: var(--rgAdmonition-accent);
}
.bbWrapper .rgAdmonition-label{ text-transform: capitalize; }
.bbWrapper .rgAdmonition-label:empty::before{ content: "Note"; }
/* Hide the leading and trailing newline. */
.bbWrapper .rgAdmonition-body > br:first-child{ display: none; }
.bbWrapper .rgAdmonition-body > br:last-child{ display: none; }
.bbWrapper .rgAdmonition-icon{
flex: 0 0 auto;
display: none;
}
.bbWrapper .rgAdmonition--note .rgAdmonition-icon.fa-info-circle,
.bbWrapper .rgAdmonition--tip .rgAdmonition-icon.fa-lightbulb,
.bbWrapper .rgAdmonition--important .rgAdmonition-icon.fa-exclamation-circle,
.bbWrapper .rgAdmonition--warning .rgAdmonition-icon.fa-exclamation-triangle,
.bbWrapper .rgAdmonition--caution .rgAdmonition-icon.fa-stop-circle{ display: inline-block; }
</style>
<aside class="rgAdmonition rgAdmonition--{option}">
<div class="rgAdmonition-header">
<i data-xf-init="icon" class="fas fa-info-circle rgAdmonition-icon"></i>
<i data-xf-init="icon" class="fas fa-lightbulb rgAdmonition-icon"></i>
<i data-xf-init="icon" class="fas fa-exclamation-circle rgAdmonition-icon"></i>
<i data-xf-init="icon" class="fas fa-exclamation-triangle rgAdmonition-icon"></i>
<i data-xf-init="icon" class="fas fa-stop-circle rgAdmonition-icon"></i>
<span class="rgAdmonition-label">{option}</span>
</div>
<div class="rgAdmonition-body">{text}</div>
</aside>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="abbr" bb_code_mode="replace" has_option="yes" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="acorn" title="Abbreviation">
<desc><![CDATA[defines an abbreviation or an acronym]]></desc>
<example><![CDATA[The [abbr=World Health Organization]WHO[/abbr] was founded in 1948.]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<abbr title="{option}">{text}</abbr>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="aname" bb_code_mode="replace" has_option="yes" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" title="Anchor">
<desc><![CDATA[Anchor links allow you to link to different places within a post. Use in conjunction with JUMPTO]]></desc>
<example><![CDATA[[aname=variable]This is the target of the link[/aname]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<a name="{option}">{text}</a>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="hr" bb_code_mode="replace" has_option="no" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="1" allow_signature="1" editor_icon_type="fa" editor_icon_value="horizontal-rule" title="Horizontal Rule">
<desc><![CDATA[]]></desc>
<example><![CDATA[[hr]This text will not appear in the output[/hr]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<hr class="memberHeader-separator">]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="jumpto" bb_code_mode="replace" has_option="yes" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" title="Anchor Link">
<desc><![CDATA[Anchor links allow you to link to different places within a post. Use in conjunction with ANAME.]]></desc>
<example><![CDATA[[jumpto=variable]This is the link, it will take you to the target[/jumpto]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<a href="#{option}">{text}</a>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="mark" bb_code_mode="replace" has_option="no" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="highlighter" title="Mark">
<desc><![CDATA[Text that should be marked or highlighted.]]></desc>
<example><![CDATA[Don't forget to buy [mark]milk[/mark] for your toons.]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<mark>{text}</mark>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="pixelate" bb_code_mode="replace" has_option="no" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="game-console-handheld" title="Pixelate">
<desc><![CDATA[The image is scaled with an algorithm such as "nearest neighbor" that preserves contrast and edges in the image. Generally intended for upscaled pixel art or line drawings, no blurring or color smoothing occurs.]]></desc>
<example><![CDATA[Using pixelate:
[pixelate][img alt="an image without anti-aliasing"]https://ectunnel.com/community/styles/default/xenforo/logoblue.gif[/img][/pixelate]
Normal:
[img alt="an image with anti-aliasing"]https://ectunnel.com/community/styles/default/xenforo/logoblue.gif[/img]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<span class="pixelate">{text}</span>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="sub" bb_code_mode="replace" has_option="no" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="fa-subscript" title="Subscript">
<desc><![CDATA[Subscript text]]></desc>
<example><![CDATA[H[sub]2[/sub]O]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<sub>{text}</sub>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
<bb_code bb_code_id="sup" bb_code_mode="replace" has_option="no" trim_lines_after="0" plain_children="0" disable_smilies="0" disable_nl2br="0" disable_autolink="0" allow_empty="0" allow_signature="1" editor_icon_type="fa" editor_icon_value="fa-superscript" title="Superscript">
<desc><![CDATA[Displays text as superscript]]></desc>
<example><![CDATA[e=mc[sup]2[/sup]]]></example>
<output><![CDATA[]]></output>
<replace_html><![CDATA[<sup>{text}</sup>]]></replace_html>
<replace_html_email><![CDATA[]]></replace_html_email>
<replace_text><![CDATA[]]></replace_text>
</bb_code>
</bb_codes>