BB Code

  • [B], [I], [U], [S] - bold, 斜體, 底線, Struck-through

    Basic text formatting for the wrapped text.
    範例:
    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], [BGCOLOR=color], [FONT=font], [SIZE=size] - Background color, 文字顏色, Font, 大小

    Advanced text formatting options for wrapped text.
    範例:
    This is [COLOR=red]red[/COLOR] and [COLOR=#0000cc]blue[/COLOR] text.
    This is [BGCOLOR=#FAA]red[/BGCOLOR] and [BGCOLOR=#AAF]blue[/BGCOLOR] highlighted 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 red and blue highlighted text.
    This is Courier New text.
    This is small and big text.
  • [SUB], [SUP] - Subscript, Superscript

    Position wrapped text.
    範例:
    This is [SUB]subscript[/SUB] text.
    This is [SUP]superscript[/SUP] text.
    輸出:
    This is subscript text.
    This is superscript text.
  • [URL], [EMAIL] - 建立連結

    將文字視作可連結的網址。
    範例:
    [URL]http://www.example.com[/URL]
    [EMAIL]example@example.com[/EMAIL]
    輸出:
  • [URL=網址], [EMAIL=電子郵件地址] - 建立連結(進階)

    連結到特定網頁或電子郵件地址。
    範例:
    [URL=http://www.example.com]前往 example.com[/URL]
    [EMAIL=example@example.com]Email 給我[/EMAIL]
    輸出:
  • [USER=會員 ID] - 連結個人檔案

    連結到個人檔案。當你提到其他人的時候就會自動插入此語法。
    範例:
    [USER=1]會員名稱[/USER]
    輸出:
  • [IMG] - 圖片

    顯示連結圖片
    範例:
    [IMG]https://nsms113.com/data/assets/logo/done-2.png[/IMG]
    輸出:
    done-2.png
  • [VIDEO] - Video

    Displays a video, using the wrapped text as the URL.
    範例:
    [VIDEO]https://nsms113.com/index.php?styles/editor-manager/missing-video.mp3[/VIDEO]

    [VIDEO='width:300']https://nsms113.com/index.php?styles/editor-manager/missing-video.mp3[/VIDEO]
    輸出:


  • [AUDIO] - Audio

    Displays an audio player, using the wrapped text as URL.
    範例:
    [AUDIO]https://nsms113.com/index.php?styles/editor-manager/missing-audio.mp3[/AUDIO]
    輸出:
  • [MEDIA=網站] - 內嵌媒體

    從核准的網站中內嵌媒體到文章中。建議您使用文章編輯器上的媒體按鈕。
    已核准網站: Apple Music, Facebook, Flickr, Giphy, Imgur, Instagram, Pinterest, Reddit, Spotify, TikTok, Twitch, X, Vimeo, YouTube
    範例:
    [MEDIA=youtube]oHg5SJYRHA0[/MEDIA]
    輸出:
    內嵌的 YouTube 播放器會出現在這裡。
  • [LIST] - 列表

    顯示項目符號列表或編號列表。
    範例:
    [LIST]
    [*]項目 1
    [*]項目 2
    [/LIST]
    [LIST=1]
    [*]編號 1
    [*]編號 2
    [/LIST]
    輸出:
    • 項目 1
    • 項目 2
    1. 編號 1
    2. 編號 2
  • [LEFT], [RIGHT], [CENTER], [JUSTIFY] - Text alignment

    變更文字的對其方式
    範例:
    [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]
    輸出:
    隱藏內容
    自訂隱藏內容按鈕的標題
  • [ISPOILER] - Inline text containing spoilers

    隱藏特定的文字,點開之後才會顯示。
    範例:
    You have to click the following [ISPOILER]word[/ISPOILER] to see the content.
    輸出:
    You have to click the following word to see the content.
  • [CODE] - 程式原始碼顯示

    以程式原始碼的形式顯示內文,並盡可能地套用語法結構上色。
    範例:
    一般代碼:
    [CODE]一般
    代碼[/CODE]

    RTF 代碼:
    [CODE=rich][COLOR=red]RTF[/COLOR]
    代碼[/CODE]

    PHP 代碼:
    [CODE=php]echo $hello . ' world';[/CODE]

    JS 代碼:
    [CODE=js]var hello = 'world';[/CODE]
    輸出:
    一般代碼:
    代碼:
    一般
    代碼

    RTF 代碼:
    Rich (BB code):
    RTF
    代碼

    PHP 代碼:
    PHP:
    echo $hello . ' world';

    JS 代碼:
    代碼:
    var hello = 'world';
  • [ICODE] - 行內程式碼顯示

    可以在文章中顯示行內代碼。不會套用語法上色。
    範例:
    行內代碼區塊會以 [ICODE]合適的樣式[/ICODE] 顯示行內代碼。
    輸出:
    行內代碼區塊會以 合適的樣式 顯示行內代碼。
  • [TABLE] - Tables

    Special markup to display tables in your content.
    範例:
    [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
  • [TABLE=class] - Tables (Advanced)

    Advanced table styling.
    範例:
    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 Code 轉換。
    範例:
    [PLAIN]這不是 [B]粗體[/B] 文字。[/PLAIN]
    輸出:
    這不是 [B]粗體[/B] 文字。
  • [ATTACH] - 附件插入

    插入附件到指定的位置。如果附件是圖片,會以縮圖或全圖顯示。一般只要點按鈕就能使用。
    範例:
    縮圖: [ATTACH]123[/ATTACH]
    完整大小: [ATTACH=full]123[/ATTACH]
    輸出:
    附件內容會出現在這裡。
  • [HIDE], [HIDEPOSTS], [HIDEREPLY], [HIDETHANKS], [HIDEREPLYTHANKS], [HIDEGROUP] - Hide content

    Hides wrapped text until certain conditions are fullfilled.
    範例:
    [HIDE]Hides wrapped content.[/HIDE]

    [HIDEPOSTS]Hides until user reached number of posts.[/HIDEPOSTS]

    [HIDEREPLY]Hides content until viewer replied to thread.[/HIDEREPLY]

    [HIDETHANKS]Hides content until viewer reacted to content.[/HIDETHANKS]

    [HIDEREPLYTHANKS]Hides content until viewer replied to thread or reacted to content.[/HIDEREPLYTHANKS]

    [HIDEGROUP=administrator]Hides content for non-administrators.[/HIDEGROUP]
    輸出:
    Hidden content
    You need to reply to this thread in order to see this content.
    Hidden content
    You need -1 more posts to view this content
    Hidden content
    You need to reply to this thread in order to see this content.
    Hidden content
    You need to react to this post in order to see this content.
    Hidden content
    You need to reply to this thread or react to this post in order to see this content.
    Hidden content
    You need to be in at least one of the following groups to see this content:
  • [LINE] - line

    line
    範例:
    [line]
    輸出:
    [line]
  • [QUOTEBOX] - quoteBox

    一段引用文字
    範例:
    [quoteBox]這是一段引用文字[/quoteBox]
    輸出:
    這是一段引用文字
  • [SPACE] - space

    增加距離
    範例:
    [space][/space]
    輸出:
  • [SUBTITLE] - subtitle

    小標題
    範例:
    [subtitle]小標題內容[/subtitle]
    輸出:
    小標題內容
  • [TITLE] - title

    大標題
    範例:
    [title]大標題[/title]
    輸出:
    大標題