wikispaces.umb怎样输入code

& Wikitext
Last Updated: May 06, AM BST
Text Formatting
//italics//
__underline__
Monospaced font
{{monospace}}
=heading 1=
==heading 2==
===heading 3===
Bulleted lists
*** list 3
Numbered lists
# numbered 1
## numbered 2
### numbered 3
numbered 1
numbered 2
numbered 3
& indent 1
&& indent 2
&&& indent 3
Horizontal line
Right-to-left text
(to format languages
that read right-to-left)
Note:&[[rtl]]&tags must
be on their own lines.
When you want to display characters that have other meanings in wikitext, you can escape the wikitext formatting by putting double backtick characters on either side of your text. The backtick shares a key with the tilde.
``**escaping**``
**escaping**
[[PageName]]
Labeled page link
[[PageName|DisplayText]]
Link to page in another wiki
[[WikiName:PageName]]
Labeled link to page in another wiki
[[WikiName:PageName|DisplayText]]
http://some.url
[[http://some.url]]
Labeled URL
[[http://some.url|DisplayText]]
[[mailto:]]
Labeled email
[[mailto:help@wikispaces.org|DisplayText]]
Anchors let you link to a particular part of a page.
Place an anchor
[[#AnchorName]]
Link to an anchor
[[PageName#AnchorName|DisplayText]]
Include an image
Include external image
image:http://imagelocation.url
[[image:/i/l.png]]
Include uploaded image
image:imagename
[[image:wikispaces-logo.png]]
Image attributes
Determine width of image
width=&pixel&
[[image:wikispaces-logo.png width=&80&]]
Determine height of image
height=&pixel&
[[image:wikispaces-logo.png height=&80&]]
Float the image to the left and wrap the text around it
align=&left&
[[image:wikispaces-logo.png align=&left&]]
Float the image to the right and wrap the text around it
align=&right&
[[image:wikispaces-logo.png align=&right&]]
Center the image in the middle of the page or table cell
align=&center&
[[image:wikispaces-logo.png align=&center&]]
Add a caption for the image
caption=&an image caption&
[[image:wikispaces-logo.png caption=&This is the Wikispaces logo&]]
Make the image a link to another page or URL
link=&page&
[[image:wikispaces-logo.png link=&home&]]
link=&Wiki:PageName&
[[image:wikispaces-logo.png link=&help:home&]]
link=&http://some.url&
[[image:wikispaces-logo.png link=&/&]]
[[file:name.txt]]
Just replace&name.txt&with the name of any file you have uploaded to your wiki.
|| table cell || table cell || table cell ||
Table heading cell
||~ heading1 ||~ heading2 ||
Table cell alignment
||= centered ||& right ||
Table column spans (merging columns together)
|||| spans 2 columns ||
|| col1 || col2 ||
Table row spans (merging rows together)
|| spans 2 rows || row 1 ||
||^ || row 2 ||
This is plaintext.
This is plaintext.
[[code format=&php&]]
//&hello world
echo &hello world&;
// hello world
echo &hello world&;
Note&that both&[[code]]&tags must be on a line by themselves without leading spaces.
Supported languages
actionscript
actionscript3
apache (Apache configuration files)
applescript
apt_sources
asm (x86 Assembler)
asp (Active Server Pages)
autohotkey
autoit (AutoIt Window automation script)
bash (Bourne Again Shell)
bf (Brainf**k)
bibtext (BibTeX)
blitzbasic
bnf (BNF: Backus-Naur form)
cfdg (Context-Free Design Grammar)
cfm (Coldfusion)
chaiscript
cpp-qt (C++ (QT)
csharp (C#)
css (Cascading Style Sheets)
d (D programming language)
delphi (Delphi Object Pascal)
ecmascript (ECMAScript)
email (Email (mbox, eml, RFC format))
fo (FO (abas-ERP))
glsl (glSlang)
gml (Game Maker Language)
hicest (HicEst)
hq9plus (HQ9+)
html4strict
idl (Uno IDL)
inno (Inno Script Object Pascal)
java5 (Java programming language, version 5 syntax)
javascript
kixtart (KixTart)
klonec (Klone C)
klonecpp (Klone C++)
lb (Liberty Basic)
locobasic (Locomotive Basic)
lotusformulas (Lotus Notes @Formulas)
lotusscript (LotusScript)
lscript (LScript)
m68k (Motorola 68000 Assembler)
mysql (MySQL-specific SQL)
oberon2 (Oberon-2)
pf (OpenBSD Packet Filter)
oracle8 (Oracle-specific SQL)
oracle11 (Oracle 11i SQL)
ocaml (Objective Caml)
oxygene (Oxygene Delphi Prism)
pixelbender
plsql (PL/SQL)
postgresql
powerbuilder
powershell (posh)
properties
providex (ProvideX)
purebasic (PureBasic)
q (q/kdb+)
rsplus (R / S+)
reg (Microsoft Registry)
robots (Robots.txt)
rpmspec (RPM Specification File)
scilab (SciLab)
smarty (Smarty PHP template language)
systemverilog
terraterm (Tera Term Maco)
text (No highlighting)
tsql (Transact-SQL)
typoscript
unicon (Unified Extended Dialect of Icon)
vb (Visual Basic)
vbnet (Visual Basic .NET)
vhdl (VHSICADL, very high speed integrated circuit HDL)
vim (Vim Script)
visualfoxpro
visualprolog
whitespace
winbatch (Windows Batch Scripting)
xorg_conf (X.org configuration)
z80 (ZiLOG Z80 Assembler)
References (Footnotes)
Add citation
&ref&&...&/ref&
I am making a very important point, but it needs a reference.&ref&This is the reference to back up my point.&/ref&&
I am now pointing out something else, and referencing it.&ref&This is my second citation.&/ref&&
**I'd like my references right here:**
&references /&
Look, text after my references section!
I am making a very important point, but it needs a reference.
I am now pointing out something else, and referencing it.
I'd like my references right here:
&This is the reference to back up my point.
&This is my second citation.
Look, text after my references section!
Place references
(if you don't use this tag, references will appear at the bottom of the page)
&references /&
[[rss url=&http://source.url/feed&]]
Replace&http://source.url/feed&with the URL of your RSS feed. By default, this will display the last ten updates as text links, but you can make the following modifications to how your feed will be displayed:
full URL to the feed (required)
title text to display above the feed (or blank for none)
how many items to show, default 10
description
to show each item's description text, either &true& or default &false&
to show the item date after the title, either &true& or default &false&
to show the author of the item after the title, either &true& or default &false&
the number of characters to show in the description, max. 250
to show each item's media enclosures (audio, video, pictures), either &true& or default &false&
The variables below will let you place dynamic content in your pages. Since pages are sometimes cached after being created, some items, such as the number of pages in the wiki, may not be updated immediately.
Supported variables
{$spacename}
{$spacetext}
Wiki description
{$spacedescription}
Page Count
{$pagesinspace}
Servername (the hostname of the wiki)
{$servername}
Server (the url for the main page of the wiki)
{$licensename}
License URL
{$licenseurl}
Member Count
{$membersinspace}
Organizer Count
{$organizersinspace}
Project Name
{$project}
Revision count
{$pagerevisions}
Full Page Name (alias for&{$spacename}:{$page})
{$fullpagename}
Editor (Username of the user, or the IP address of the guest, who create this revision)
{$revisioneditor}
{$revisioncomment}
Revision ID
{$revisionid}
Revision Dates
Date (In human readable format)
{$revisiondate}
{$revisionday}
Day (with leading zero)
{$revisionday2}
{$revisionmonth}
{$revisionyear}
Timestamp (In&&Format)
{$revisiontimestamp}
Creator(Username of the user, or the IP address of the guest, who created this page)
{$creator}
{$creationcomment}
Creation Page ID
{$creationid}
Creation Dates
Date (In human readable format)
{$creationdate}
{$creationday}
Day (with leading zero)
{$creationday2}
{$creationmonth}
{$creationyear}
Timestamp (In&&Format)
{$creationtimestamp}
{$username}
Variable modifiers
Modifiers are used to change the value of the variable into a different format. Modifiers are separated from the variable name with the pipe (|) character, and can be combined together & for example,&{$pagename|ignoreinclude|url}.
Output modifiers
URL escaping
{$server|url}
Scope modifiers
Ignore include
This modifier tells the variable to return the value of the original page it's on, even if that page is included in another page (see&).
|ignoreinclude
{$page|ignoreinclude}
Javascript variables
While editing Pages, it is possible to include Javascript inside an Embedded Object.
Several variables can be accessed from the client side to determine the current state of the application, as follows:
User/space definition variables
wikispaces_isUserLoggedIn
set if user has entered valid login information
wikispaces_username
set to current user's login handle
wikispaces_spaceName
set to current Space that user is viewing
URL construction variables
wikispaces_method
system - type of function being performed ( 'view', etc. )
wikispaces_object
system - type of object being viewed/modified ( 'message', etc. )
wikispaces_page
set to name of current wikipage
wikispaces_id
system - object identifier ( for messages )
Contents of Another Wiki Page
The entire contents of one page can be pasted into another with the&[[include]]&tag. This can be useful in breaking a large page up into smaller, more manageable pieces, or to create reusable components, like headers and footers. The only required attribute of the include tag is the&page&attribute.
Supported includes
Basic page include
[[include page=&PAGENAME&]]
Include page with section title
[[include page=&PAGENAME& title=&Section Title&]]
Include page with direct edit button
[[include page=&PAGENAME& editable=&true&]]
Include a list of pages
[[include component=&pageList&]]
Include a list of pages with a tag
[[include component=&pageList& tag=&TAGNAME&]]
Include a tag cloud
[[include component=&tagCloud& ]]
Include a discussion page
[[include page=&PAGENAME& component=&comments&]]
Include a list of links to this page
[[include page=&PAGENAME& component=&backlinks&]]
Include page from another wiki
[[include page=&WIKINAME:PAGENAME&]]
Other Special Tags
Signature with date
Mathematics
(supporting LaTeX math markup)
\tilde{f}(\omega)=\int_{-\infty}^{\infty} f(t) e^{-i\omega t}\,dt
(Note&that the&[[math]]&tags must be on their own lines.)
Embedded media
[[media&...&]]
Table of contents, flat
[[toc|flat]]
Table of contents
wikispaces-
seconds ago
a minute ago
minutes ago
an hour ago
Invalid characters found

我要回帖

更多关于 wiki code 的文章

 

随机推荐