1<?php 2// This file is part of BOINC. 3// http://boinc.berkeley.edu 4// Copyright (C) 2008 University of California 5// 6// BOINC is free software; you can redistribute it and/or modify it 7// under the terms of the GNU Lesser General Public License 8// as published by the Free Software Foundation, 9// either version 3 of the License, or (at your option) any later version. 10// 11// BOINC is distributed in the hope that it will be useful, 12// but WITHOUT ANY WARRANTY; without even the implied warranty of 13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14// See the GNU Lesser General Public License for more details. 15// 16// You should have received a copy of the GNU Lesser General Public License 17// along with BOINC. If not, see <http://www.gnu.org/licenses/>. 18 19require_once("../inc/util.inc"); 20 21check_get_args(array()); 22 23page_head(tra("BBCode tags")); 24echo "<p> 25".tra("BBCode tags let you format text in your profile and message-board postings. 26It's similar to HTML, but simpler. The tags start with a [ (where you would 27have used %1 in HTML) and end with ] (where you would have used %2 in 28HTML).", "<", ">")."</p>"; 29 30start_table(); 31row1(tra("Examples")); 32row2_plain("[b]".tra("Bold")."[/b]", "<b>".tra("Bold")."</b>"); 33row2_plain("[i]".tra("Italic")."[/i]", "<i>".tra("Italic")."</i>"); 34row2_plain("[u]".tra("Underline")."[/u]", "<u>".tra("Underline")."</u>"); 35row2_plain("[s]".tra("Strikethrough")."[/s]", "<s>".tra("Strikethrough")."</s>"); 36row2_plain("[sup]".tra("Superscript")."[/sup]", "X<sup>".tra("Superscript")."</sup>"); 37row2_plain("[size=15]".tra("Big text")."[/size]", "<span style=\"font-size: 15px\">".tra("Big text")."</span>"); 38row2_plain("[color=red]".tra("Red text")."[/color]", "<font color=\"red\">".tra("Red text")."</font></li>"); 39row2_plain("[url=https://google.com/]".tra("link to website")."[/url]", "<a href=\"https://google.com/\">".tra("link to website")."</a>"); 40row2_plain("[quote]".tra("Quoted text")."[/quote]", tra("use for quoted blocks of text")); 41row2_plain("[img]http://example.com/pic.jpg[/img]", tra("use to display an image")); 42row2_plain("[code]".tra("Code snippet here")."[/code]", tra("use to display some code")); 43row2_plain("[pre]".tra("Pre-formatted text")."[/pre]", tra("use to display pre-formatted (usually monospaced) text")); 44row2_plain("[list]<br>* ".tra("Item 1")."<br>* ".tra("Item2")."<br>[/list]", "<ul><li>".tra("Item 1")."</li><li>".tra("Item 2")."</li></ul>"); 45row2_plain("[list=1]<br>* ".tra("Item 1")."<br>* ".tra("Item2")."<br>[/list]", "<ol><li>".tra("Item 1")."</li><li>".tra("Item 2")."</li></ol>"); 46row2_plain( 47 "[github]#1392[/github] or [github]ticket:1392[/github]", 48 tra("link to an issue on the BOINC Github repository").": <a href=\"https://github.com/BOINC/boinc/issues/1392\">#1392</a>"); 49row2_plain( 50 "[github]wiki:WebForum[/github]", 51 tra("link to a Wiki page on the BOINC Github repository").": <a href=\"https://github.com/BOINC/boinc-dev-doc/wiki/BoincIntro\">BoincIntro</a>"); 52end_table(); 53 54echo "<p> 55".tra("If you don't close a tag or don't specify a parameter correctly, 56the raw tag itself will display instead of the formatted text.")."</p> 57"; 58page_tail(); 59?> 60