Guida al wikitext

Lista delle pagine di "Guida" di questa wiki
  1. Chi sono gli Organizzatori?
  2. Come posso contribuire?
  3. Guida ai tag
  4. Guida ai template
  5. Guida al wikitext
  6. Guida alle Cronache
  7. Guida allo stile
  8. Progetti Attivi
  9. Regole per contribuire


Modalità wikitext e modalità visuale

Ci sono 2 metodi per modificare una pagina in wikispaces: quello "visuale" o visual editor, che è il preimpostato, e quello "testuale" o wikitext.

Lavorare sul "visual editor" è come modificare una pagina di word: si vede la pagina più o meno come apparirà, e si inseriscono i link e gli elementi grafici usando i pulsanti preimpostati.
Lavorare sul wikitext è come scrivere un messaggio su forumfree: es. per rendere una parola in grassetto bisogna mettere due asterischi prima e dopo: es. scrivendo **in questo modo** verrà poi visualizzato in questo modo.

Apparentemente il metodo visuale è più "comodo". In realtà NON FUNZIONA BENE e crea sempre errori di impaginazione, codice inutile e altri difetti nella pagina.
Per questo motivo è sempre meglio utilizzare quasi esclusivamente il metodo testuale (wikitext), che è più preciso, più pulito e, con un po' di pratica, anche molto più veloce.

Come passare al "wikitext"?
  1. Clicca su "modifica" per modificare una pagina
  2. clicchi sulla freccia che c'è a destra del pulsante "Save"
  3. Selezioni Wikitext Editor (per tornare a visual editor, è uguale).

In generale è inoltre consigliato impostare il wikitext come modalità di default. In questo modo ogni volta che modificate una pagina, vi proporrà l'editor testuale, e potrete passare a quello grafico quando necessario.

Per impostare il wikitext come modalità di default:
  1. clicca sul tuo nome utente che trovi su ogni pagina in alto a destra
  2. vai su impostazioni
  3. trova l'opzione Usa l'Editor Visuale e seleziona No

Come inserire i codici del wikitext come "testo"

Abbiamo detto che un doppio asterisco ** significa grassetto.
Ma come faccio allora se voglio inserire su una pagina wiki un doppio asterisco, senza inserire il grassetto?
Basta inserire un doppio backtick `` prima e dopo il comando, e la wiki lo "ignorerà", considerandolo testo normale.
Es. se scrivo **pippo**, la wiki mostra pippo
se scrivo ` `**pippo**` ` (senza spazi tra i due ` ), la wiki mostra **pippo**

Cos'è il backtick? Dove lo trovo sulla tastiera?
Il backtick o accento grave ` , come la tilde ~ è uno di quei simboli fondamentali per usare il computer, che qualche idiota ha pensato bene di togliere dalle tastiere italiane.
Per inserirlo si può fare Alt 96, o usare la mappa caratteri, o fare copia & incolla da una pagina in cui compare, tipo questa ^^

Ecco la guida di Wikispaces al wikitext:

Text Formatting

Bold
**bold**
bold
Italics
//italics//
italics
Underline
__underline__
underline
Monospaced font
{{monospace}}
monospace
Headings
=heading 1=
==heading 2==
===heading 3===
...etc.

heading 1

heading 2

heading 3

Bulleted lists
* list 1
** list 2
*** list 3
...etc.
  • list 1
    • list 2
      • list 3
Numbered lists
# numbered 1
## numbered 2
### numbered 3
...etc.
  1. numbered 1
    1. numbered 2
      1. numbered 3
Indenting
> indent 1
>> indent 2
>>> indent 3
...etc.
  • indent 1
    • indent 2
      • indent 3
Horizontal line
----

Right-to-left text
(to format languages that read right-to-left)
[[rtl]]
זה עברית
...etc.
[[rtl]]
(Note that the [[rtl]] tags must be on their own lines.)
זה עברית
...etc.

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**``
**escaping**

Links

Page link
[[PageName]]
Labeled page link
[[PageName|DisplayText]]
Link to page in another wiki
[[WikiName:PageName]]
Labeled link to page in another wiki
[[WikiName:PageName|DisplayText]]
URL
http://some.url
[[http://some.url]]
Labeled URL
[[http://some.url|DisplayText]]
Email
help@wikispaces.com
[[mailto:help@wikispaces.com]]
Labeled email
[[mailto:help@wikispaces.org|DisplayText]]
The tags for turning an image into a link are in the section on images.

Anchors

Anchors let you link to a particular part of a page. Like this link to an anchor at the bottom of this page.
Place an anchor
[[#AnchorName]]
Link to an anchor
[[PageName#AnchorName|DisplayText]]

Images

Include an image

Include external image
image:http://imagelocation.url
[[image:http://www.wikispaces.com/i/l.png]]
external image l.png
Include uploaded image
image:imagename
[[image:wikispaces-logo.png]]
wikispaces-logo.png

Image attributes

Determine width of image
width="pixel"
[[image:wikispaces-logo.png width="80"]]
wikispaces-logo.png
Determine height of image
height="pixel"
[[image:wikispaces-logo.png height="80"]]
wikispaces-logo.png
Float the image to the left and wrap the text around it
align="left"
[[image:wikispaces-logo.png align="left"]]
wikispaces-logo.png
Float the image to the right and wrap the text around it
align="right"
[[image:wikispaces-logo.png align="right"]]
wikispaces-logo.png
Center the image in the middle of the page or table cell
align="center"
[[image:wikispaces-logo.png align="center"]]
wikispaces-logo.png
Add a caption for the image
caption="an image caption"
[[image:wikispaces-logo.png caption="This is the Wikispaces logo"]]
wikispaces-logo.png
This is the Wikispaces logo

Make the image a link to another page or URL
link="page"
[[image:wikispaces-logo.png link="home"]]
wikispaces-logo.png
link="Wiki:PageName"
[[image:wikispaces-logo.png link="help:home"]]
wikispaces-logo.png
link="http://some.url"
[[image:wikispaces-logo.png link="http://help.wikispaces.com/"]]
wikispaces-logo.png

Files

[[file:name.txt]]
Just replace name.txt with the name of any file you have uploaded to your wiki.

Tables

Table
|| 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 ||

Code

[[code]]
This is plaintext.
[[code]]
This is plaintext.
[[code format="php"]]
// hello world
echo "hello world";
exit();
[[code]]
// hello world
echo "hello world";
exit();
Note that both [[code]] tags must be on a line by themselves without leading spaces.

Supported languages

  • 4cs
  • abap
  • actionscript
  • actionscript3
  • ada
  • apache (Apache configuration files)
  • applescript
  • apt_sources
  • asm (x86 Assembler)
  • asp (Active Server Pages)
  • autoconf
  • autohotkey
  • autoit (AutoIt Window automation script)
  • avisynth
  • bash (Bourne Again Shell)
  • basic4gl
  • bb4w
  • bf (Brainf**k)
  • bibtext (BibTeX)
  • blitzbasic
  • boo
  • bnf (BNF: Backus-Naur form)
  • c
  • cfdg (Context-Free Design Grammar)
  • cfm (Coldfusion)
  • chaiscript
  • cil
  • clojure
  • cmake
  • cobol
  • cpp (C )
  • cpp-qt (C (QT)
  • csharp (C#)
  • css (Cascading Style Sheets)
  • cuesheet
  • d (D programming language)
  • dcs
  • delphi (Delphi Object Pascal)
  • diff
  • div
  • dos
  • dot
  • ecmascript (ECMAScript)
  • eiffel
  • email (Email (mbox, eml, RFC format))
  • erlang
  • f#
  • fo (FO (abas-ERP))
  • fortran
  • freebasic
  • gambas
  • gdb
  • genero
  • genie
  • gettext
  • glsl (glSlang)
  • gml (Game Maker Language)
  • gnuplot
  • groovy
  • gwbasic
  • haskell
  • hicest (HicEst)
  • hq9plus (HQ9 )
  • html4strict
  • icon
  • idl (Uno IDL)
  • ini
  • inno (Inno Script Object Pascal)
  • intercal
  • io
  • j
  • java
  • java5 (Java programming language, version 5 syntax)
  • javascript
  • jquery
  • kixtart (KixTart)
  • klonec (Klone C)
  • klonecpp (Klone C )
  • latex
  • lb (Liberty Basic)
  • linoleum
  • lisp
  • locobasic (Locomotive Basic)
  • logtalk
  • lolcode
  • lotusformulas (Lotus Notes @Formulas)
  • lotusscript (LotusScript)
  • lsl2
  • lscript (LScript)
  • lua
  • magicksf
  • make
  • mapbasic
  • matlab
  • mirc
  • mmix
  • modula2
  • modula3
  • m68k (Motorola 68000 Assembler)
  • mxml
  • mysql (MySQL-specific SQL)
  • newlisp
  • oberon2 (Oberon-2)
  • pf (OpenBSD Packet Filter)
  • oracle8 (Oracle-specific SQL)
  • oracle11 (Oracle 11i SQL)
  • ocaml (Objective Caml)
  • oxygene (Oxygene Delphi Prism)
  • oz
  • pascal
  • pcre
  • per
  • perl
  • perl6
  • php
  • pic16
  • pike
  • pixelbender
  • plsql (PL/SQL)
  • postgresql
  • povray
  • powerbuilder
  • powershell (posh)
  • progress
  • prolog
  • properties
  • providex (ProvideX)
  • purebasic (PureBasic)
  • python
  • q (q/kdb )
  • qbasic
  • rsplus (R / S )
  • rails
  • rebol
  • reg (Microsoft Registry)
  • robots (Robots.txt)
  • rpmspec (RPM Specification File)
  • ruby
  • sas
  • scala
  • scheme
  • scilab (SciLab)
  • sdlbasic
  • smalltalk
  • smarty (Smarty PHP template language)
  • sql
  • systemverilog
  • tcl
  • terraterm (Tera Term Maco)
  • text (No highlighting)
  • thinbasic
  • tsql (Transact-SQL)
  • typoscript
  • unicon (Unified Extended Dialect of Icon)
  • vala
  • verilog
  • vb (Visual Basic)
  • vbnet (Visual Basic .NET)
  • vhdl (VHSICADL, very high speed integrated circuit HDL)
  • vim (Vim Script)
  • visualfoxpro
  • visualprolog
  • whitespace
  • whois
  • winbatch (Windows Batch Scripting)
  • xbasic
  • xorg_conf (X.org configuration)
  • xml
  • 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.[1]
I am now pointing out something else, and referencing it.[2]

I'd like my references right here:
  1. This is the reference to back up my point.
  2. 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 Feeds

[[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:
url
full URL to the feed (required)
title
title text to display above the feed (or blank for none)
number
how many items to show, default 10
description
to show each item's description text, either "true" or default "false"
date
to show the item date after the title, either "true" or default "false"
author
to show the author of the item after the title, either "true" or default "false"
length
the number of characters to show in the description, max. 250
enclosure
to show each item's media enclosures (audio, video, pictures), either "true" or default "false"

Here's an example that uses all of these options:
[[rss url="http://feeds.feedburner.com/wikispaces" title="Wikispaces Blog" number="5" description="true" date="true" author="true" length="80" enclosure="true"]]

[Wikispaces Blog http://feeds.feedburner.com/wikispaces]

Variables

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

Namespace
Wiki name
{$spacename}
terrespezzate
Wiki text
{$spacetext}
Terre Spezzate
Wiki description
{$spacedescription}
La Wiki ufficiale dell'ambientazione fantasy di Terre Spezzate - gioco di ruolo dal vivo
Page Count
{$pagesinspace}
1305
Servername (the hostname of the wiki)
{$servername}
terrespezzate.wikispaces.com
Server (the url for the main page of the wiki)
{$server}
http://terrespezzate.wikispaces.com
License
{$licensename}
Creative Commons Attribution Share-Alike Non-Commercial 3.0 License
License URL
{$licenseurl}
http://www.creativecommons.org/licenses/by-nc-sa/3.0
Member Count
{$membersinspace}
60
Organizer Count
{$organizersinspace}
13
Project Name
{$project}

Team Name
{$team}
terrespezzate
Page
Page Name
{$page}
Guida al wikitext
Revision count
{$pagerevisions}
3
Full Page Name (alias for {$spacename}:{$page})
{$fullpagename}
terrespezzate:Guida al wikitext
Revision
Editor (Username of the user, or the IP address of the guest, who create this revision)
{$revisioneditor}
Lupo1982
Comment
{$revisioncomment}

Revision ID
{$revisionid}
348153388
Revision Dates
Date (In human readable format)
{$revisiondate}
Jun 26, 2012 9:47 am
Day
{$revisionday}
26
Day (with leading zero)
{$revisionday2}
26
Month
{$revisionmonth}
6
Year
{$revisionyear}
2012
Timestamp (In ISO 8601 Format)
{$revisiontimestamp}
2012-06-26T16:47:19 00:00
Creation
Creator(Username of the user, or the IP address of the guest, who created this page)
{$creator}
Lupo1982
Comment
{$creationcomment}

Creation Page ID
{$creationid}
320429836
Creation Dates
Date (In human readable format)
{$creationdate}
Apr 14, 2012 6:33 am
Day
{$creationday}
14
Day (with leading zero)
{$creationday2}
14
Month
{$creationmonth}
4
Year
{$creationyear}
2012
Timestamp (In ISO 8601 Format)
{$creationtimestamp}
2012-04-14T13:33:18 00:00
User
User Name
{$username}
support

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
|url
{$server|url}
http%3A%2F%2Fterrespezzate.wikispaces.com
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 below).
|ignoreinclude
{$page|ignoreinclude}
Wikitext

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
boolean
set if user has entered valid login information
wikispaces_username
string
set to current user's login handle
wikispaces_spaceName
string
set to current Space that user is viewing
URL construction variables
wikispaces_method
string
system - type of function being performed ( 'view', etc. )
wikispaces_object
string
system - type of object being viewed/modified ( 'message', etc. )
wikispaces_page
string
set to name of current wikipage
wikispaces_id
string
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
~~~
- jbyers jbyers
Signature with date
~~~~
- jbyers jbyers Mar 10, 2005 7:21 pm
Mathematics
(supporting LaTeX math markup)
[[math]]
\tilde{f}(\omega)=\int_{-\infty}^{\infty} f(t) e^{-i\omega t}\,dt
[[math]]
(Note that the [[math]] tags must be on their own lines.)
\tilde{f}(\omega)=\int_{-\infty}^{\infty} f(t) e^{-i\omega t}\,dt
Embedded media
[[media ... ]]

Table of contents, flat
[[toc|flat]]
Text Formatting | heading 1 | Links | Anchors | Images | Files | Tables | Code | References (Footnotes) | RSS Feeds | Variables | Contents of Another Wiki Page | Other Special Tags
Table of contents
[[toc]]


Still have questions? Contact Wikispaces support.