BB codes

  • [B], [I], [U], [S] - bold, 斜体, 下划线, 删除线

    用于文本的基本格式化.
    示例:
    This is [B]bold[/B] text.
    This is [I]italic[/I] text.
    This is [U]underlined[/U] text.
    This is [S]struck-through[/S] text.
    输出:
    This is bold text.
    This is italic text.
    This is underlined text.
    This is struck-through text.
  • [COLOR=color], [FONT=font], [SIZE=size] - 文本颜色, 字体, 尺寸

    用于文字的高级格式化.
    示例:
    This is [COLOR=red]red[/COLOR] and [COLOR=#0000cc]blue[/COLOR] text.
    This is [FONT=Courier New]Courier New[/FONT] text.
    This is [SIZE=1]small[/SIZE] and [SIZE=7]big[/SIZE] text.
    输出:
    This is red and blue text.
    This is Courier New text.
    This is small and big text.
  • [URL],[EMAIL] - 链接

    将标签内的文本内容作为链接地址。
    示例:
    [URL]http://www.xenforo.com[/URL]
    [EMAIL]info@xenforo.com[/EMAIL]
    输出:
  • [URL=link],[EMAIL=address] - 高级链接

    为文字添加网页和邮件地址连接。
    示例:
    [URL=http://www.xenforo.com]链接到 XenForo.COM[/URL]
    [EMAIL=info@xenforo.com]点此给我发邮件[/EMAIL]
    输出:
  • [USER=ID] - 链接至个人空间

    用户个人空间链接。当提到会员时自动插入此链接。
    示例:
    [USER=1]用户名[/USER]
    输出:
  • [IMG] - 图像

    显示图像,标签内为图像的链接地址。
    示例:
    [IMG]https://waxbbs.com/forum/styles/uix/images/metadata-og-logo.png[/IMG]
    输出:
    metadata-og-logo.png
  • [MEDIA=site] - 嵌入视频

    嵌入可用视频站点的视频,推荐使用编辑器上的视频按钮来添加视频。
    可用的站点: ABC News, Amazon Product, Anchor, Apple Music, Audioboom, Audiomack, Bandcamp, BBC News, Bilibili, BitChute, Bleacher Report videos, Break, Brightcove, Castos, CBS News Video, Clyp, CNBC, CNN, CNNMoney, CodePen, Comedy Central, Coub, Dailymotion, Democracy Now!, dumpert, 8tracks, ESPN, Facebook, Falstad Circuit Simulator, Flickr, Fox News, Funny or Die, Gamespot, GameTrailers, Getty Images, Gfycat, Gifs.com, GIPHY, GitHub Gist, Global News, GoFundMe, Google Drive, Google+, Google Sheets, Hudl, Hulu, IGN, IMDb, Imgur, Indiegogo, Instagram, Internet Archive, İzlesene, JSFiddle, JW Platform, Kaltura, Kontinental Hockey League (КХЛ), Kickstarter, Libsyn, Liveleak, Livestream, Mail.Ru, Medium, Megaphone, Metacafe, Mixcloud, Mixer, MLB, MRCTV, MSNBC, National Geographic Channel, National Geographic Video, NBC News, NBC Sports, NHL Videos and Highlights, NPR, The New York Times Video, Orfium, Pastebin, Pinterest, Podbean, Prezi, 腾讯视频, Reddit threads and comments, Rumble, Rutube, Scribd, Sendvid, SlideShare, SoundCloud, Sporcle, Sportsnet, Spotify, Spreaker, Steam store, Stitcher, Straw Poll, Streamable, Streamja, Team Coco, TED Talks, Telegram, The Atlantic Video, The Guardian (obsolete), The Onion, TikTok, TMZ, TradingView, Trailer Addict, Trending Views, 土豆, Tumblr, 247Sports, Twitch, Twitter, Ustream, VBOX7, Veoh, Vevo, Video Detective, Vimeo, Vine, VK, Vocaroo, Vox, Washington Post Video, Wistia, WorldStarHipHop, The Wall Street Journal Online, GameClips.io, Gamer DVR, Youku, YouTube
    示例:
    [MEDIA=youtube]oHg5SJYRHA0[/MEDIA]
    输出:
    嵌入的 YouTube 播放器会显示在此处
  • [LIST] - 列表

    显示符号或编码列表
    示例:
    [LIST]
    [*]Bullet 1
    [*]Bullet 2
    [/LIST]
    [LIST=1]
    [*]Entry 1
    [*]Entry 2
    [/LIST]
    输出:
    • Bullet 1
    • Bullet 2
    1. Entry 1
    2. Entry 2
  • [LEFT], [CENTER], [RIGHT], [JUSTIFY] - 文字对齐方式

    改变文字对齐方式。
    示例:
    [LEFT]Left-aligned[/LEFT]
    [CENTER]Center-aligned[/CENTER]
    [RIGHT]Right-aligned[/RIGHT]
    [JUSTIFY]This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block.[/JUSTIFY]
    输出:
    Left-aligned​
    Center-aligned​
    Right-aligned​
    This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block. This is a justified text block.​
  • [QUOTE] - 引用文字

    显示由其它位置引用文字。您可以指定引用的属性。
    示例:
    [QUOTE]引用文字[/QUOTE]
    [QUOTE=某人]他说了一些什么事。[/QUOTE]
    输出:
    引用文字
    作者: 某人:
    他说了一些什么事。
  • [SPOILER] - 隐藏内容

    隐藏文本必须点击后查看。
    示例:
    [SPOILER]隐藏内容[/SPOILER]
    [SPOILER=隐藏标题]隐藏内容[/SPOILER]
    输出:
    隐藏内容
    隐藏内容
  • [CODE],[PHP],[HTML] - 显示源代码

    以程序源代码的方式显示文本,并可对其中的关键字进行高亮显示。
    示例:
    [CODE]一般
    代码[/CODE]
    [PHP]echo $hello.'world';[/PHP]
    输出:
    代码:
    一般
    代码
    PHP:
    echo $hello.'world';
  • [ICODE] - 行内显示程序源代码

    用于在主题或帖子内显示程序源代码. 程序句法不会被高亮显示.
    示例:
    Inline code sections [ICODE]are a convenient way[/ICODE] of displaying code inline.

    Rich formatting within inline code sections [ICODE=rich]is [COLOR=red]also[/COLOR] [U]supported[/U][/ICODE].
    输出:
    Inline code sections are a convenient way of displaying code inline.

    Rich formatting within inline code sections is also supported.
  • [TABLE], [TR], [TH], [TD] - 表格

    使用 [TR] 可以在表格标签内开始新的一行. 使用 [TD] 标签可以在行内开始新的一列. 使用 [TH] 标签可以在行内开始新的表头.
    示例:
    [TABLE]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    Header 1Header 2
    Content 1Content 2
  • [TH=vertical align], [TD=vertical align] - 高级表格

    更改单元格或表头的垂直对齐位置.
    示例:
    Option adds additional styling.
    [TABLE=noborder]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]

    Multiple styles can be combined.
    [TABLE=collapse,right,nobackground]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]

    [TABLE=collapse,center,alternate]
    [TR]
    [TH]Header 1[/TH]
    [TH]Header 2[/TH]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [TR]
    [TD]Content 1[/TD]
    [TD]Content 2[/TD]
    [/TR]
    [/TABLE]
    输出:
    Option adds additional styling.
    Header 1Header 2
    Content 1Content 2

    Multiple styles can be combined.
    Header 1Header 2
    Content 1Content 2

    Header 1Header 2
    Content 1Content 2
    Content 1Content 2
  • [HEADING=level] - Headings levels 1 to 3

    Marks text as a structured heading to facilitate machine readability.
    示例:
    [HEADING=1]Major heading[/HEADING]
    This text comes under a major heading, used to separate the primary sections of an article.

    [HEADING=2]Minor heading[/HEADING]
    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    [HEADING=3]Subheading[/HEADING]
    If you require additional subdivision, you may drop to level 3.
    输出:

    Major heading​

    This text comes under a major heading, used to separate the primary sections of an article.

    Minor heading​

    When you need to subdivide the primary sections of an article, use a level 2 minor heading.

    Subheading​

    If you require additional subdivision, you may drop to level 3.
  • [INDENT] - 文字缩进

    使文字产生缩进效果,可以嵌套使用。
    示例:
    正常文字
    [INDENT]缩进文字
    [INDENT]更多缩进[/INDENT]
    [/INDENT]
    输出:
    正常文字
    缩进文字
    更多缩进​
  • [PLAIN] - 原始文字

    换行文本禁用 BB 代码转换。
    示例:
    [PLAIN]这是[B]粗体[/B]文字。[/PLAIN]
    输出:
    这是[B]粗体[/B]文字。
  • [ATTACH] - 插入附件

    插件附件至指定的位置。如果附件为图像,点击相应的按钮,可插入图片的缩略图或全尺寸图片。
    示例:
    缩略图: [ATTACH]123[/ATTACH]
    完整尺寸: [ATTACH=full]123[/ATTACH]
    输出:
    附件内容将显示在此处。
  • [GALLERY=option] - 媒体相册嵌入

    帖子中使用媒体相册 BB Code 标签。
    示例:
    [GALLERY=media, X]Gallery BB Code[/GALLERY]
    输出:
    [GALLERY=media, X]Gallery BB Code[/GALLERY]