 |
As traduções estão paradas porque estou em Prova, aguardem
Formando Texto no TWiki para Brasileiros
Usar o TWiki é tão fácil quanto digitar um texto - Exatamente como digitar um email. você não precisa conhecer HTML, mas você pode usar se preferir. Links para topicos são criados automaticamente quanto você digita uma WikiWords, e TWiki tem atalhos que lhe dá todo o poder do HTML com um sistema de codificação bem simples e de aprendizado bem rápido.
Atalhos de Edição do TWiki
|
Comandos de Formatação:
|
Examplo: Você Escreve:
|
Você Recebe:
|
Paragrafos:
Linhas em Branco criam novos parágrafos.
|
Primeiro Parágrafo
Segundo Parágrafo
|
Primeiro Parágrafo
Segundo Parágrafo
|
Títulos:
Coloque pelo menos três hifens (-) no inicio de uma linha, seguidos por sinais de soma (+) e em seguida o Título do Texto. Um sinal de soma (+) cria um Título de Primeiro Nível (o mais importante), dois sinais de soma (+) cria um Título de nível 2; o máximo são 6 sinais de +. Observer: Uma Tabela de Conteúdo pode ser criada automaticamente com a variável %TOC%, veja mais detalhes em TWikiVariablesptBR?. Algum texto de Título após os sinais !! é excluído do TOC (Table Of Content - Tabela de Conteúdo); por exemplo, escreva --+!! text se você não deseja que o Título seja listado no TOC.
|
---+ Sushi
---++ Maguro
---+++ Carlos
---++++ Delfino
|
Sushi
Maguro
Carlos
Delfino
|
Texto em Negrito:
Palavras podem ser colocadas em negrito colocando as entre * asteriscos.
|
*Negrito*
|
Negrito
|
Texto em Itálico:
Palavras podem ser colocadas em itálico colocando as entre _ traço baixo (underlines ou underscores).
|
_Itálico_
|
Itálico
|
Negrito e Itálico:
Palavras podem ser colocadas em Negrito e Itálico colocando as entre _ dois traços baixos.
|
__Negrito e Itálico__
|
Negrito e Itálico
|
Fixed Font:
Palavras podem ser exibidas em fonte fixa colocando as entre = Sinais de Igual.
|
=Fonte fixa=
|
Fonte fixa
|
Fonte Fixa e Negrito:
Palavras podem ser exibidas em Negrito com Fonte Fixa colocando-as entre Sinais de Iguais duplos.
|
==Negrito e Fonte Fixa==
|
Negrito e Fonte Fixa
|
Observe: Tenha certeza de colocar os sinais * _ = == bem juntos das palavras, deixando sem nenhum espaço.
|
_Veja estas palavras_,
_Estas não _
|
Veja estas palavras,
_Estas não _
|
Modo Literal:
Envolva fragmentos de código e outros textos formatados com tags <verbatim> e </verbatim> . Observe: Usar tags <pre> and </pre> se você deseja que o codigo HTML seja interpretado. Note: cada tag deve estar em uma linha.
|
<verbatim>
class CatAnimal {
void purr() {
<code here>
}
}
</verbatim>
|
class CatAnimal {
void purr() {
<code here>
}
}
|
Separador:
Coloque pelo menos três ifens (-) no inicio da linha.
|
-------
|
|
Listas de Itens:
Três espaços e um asterisco
|
* Itens não numerados
|
|
Lista de Itens identados:
Seis, nove, ... espaços e asteriscos
|
* Linha identada
|
|
Lista Ordenada (numerada):
Três espaços e um numero.
|
1 Sushi
1 Dim Sum
|
- Sushi
- Dim Sum
|
Listas de Definições:
Três espaços, o termo, um ponto e virgula, um espaço, seguido da definição.
Observe: Termos com espaços não são suportados. Caso você tenha um termo com mais de uma palavra, separe as palavras com hífen (-) ou com entidade de espaço sem quebra.
|
Sushi: Japan
Dim Sum: S.F.
|
- Sushi
- Japan
- Dim Sum
- S.F.
|
Tabelas:
Espaços opcionais seguidos por células cercadas por barras verticais (pipes).
Observe: | *Negrito* | Células são formatadas como cabeçalhos de tabela.
Observe: | espaçamento | As células são formatadas com alinhamento central.
Observe: | espaçamento | As células são formatadas com alinhamento a Direita.
Observe: | 2 colspan || As células são formatadas com múltiplas colunas sobrepostas.
Observe: No case de você ter uma longa linha e você desejá-la mais légivel, quanto você editar a tabela você pode dividí-la em varias linhas finalizando-as com uma '\' barra invetida.
|
| *L* | *C* | *R* |
| A2 | 2 | 2 |
| A3 | 3 | 3 |
| multi span |||
| A4 | próxima | próxima |
|
| L | C | R |
| A2 | 2 | 2 |
| A3 | 3 | 3 |
| multi span |
| A4 | próxima | próxima |
|
Lingando WikiWord:
PalavrasComIniciasMaiusculasColadas (or WikiWords) resultarão em um link automaticamente. Observe: Caso você deseje um link para um tópico diferente em uma web TWiki escreva Nomeweb.NomeTopico.
|
WebNotify
Know.ReadmeFirst
|
WebNotify
ReadmeFirst?
|
Forçando Links:
Você pode forçar uma criação de link interno colocando as palavras entre duplos colchetes.
Observe: Textos com colchetes podem conter opcionalmente espaços; o nome do tópico é formado pelas letras iniciais em maiúsculo e removendo os espaços entre eles; por exemplo, [[FAQ para Formatacao de Texto]] cria o link FAQParaFormatacaoDeTexto?. Você pode também fazer uma referência para uma web diferente e usar Ancoras.
|
[[wiki syntax]]
[[Main.TWiki users]]
|
wiki syntax
Main.TWiki users
|
Links Especificos:
Criar um link onde você pode especificar o texto do link e a referência do link separadamente usando colchetes aninhados como estes [[referência][texto]], são suportadas referências a links internos (ex. WikiSyntax) e links para referências externas (ex. http://TWiki.org/).
Observe: As mesmas regras para Links Forçados se aplicam para referências a links internos.
Observe: Para referências a links externos, você pode simplesmente usar um espaço no lugar do ][ para separar o link da URL do texto descritivo.
Note: Anchor names can be added as well, like [[WebHome#MyAnchor][go home]] and [[http://gnu.org/#Action][GNU Action]].
|
[[WikiSyntax][syntax]]
[[http://gnu.org][GNU]]
[[http://xml.org XML]]
|
syntax
GNU
XML
|
Ancoras:
Você pode definir um link que faça referência dentro de um topico TWiki (isto se chama nome ancora) e fazer o link para ele. Para definir uma ancora escreva #AnchorName no inicio de uma linha. O nome ancora deve ser uma WikiWord.
You can define a link reference inside a TWiki topic (called an anchor name) and link to that. To define an anchor write #AnchorName at the beginning of a line. The anchor name must be a WikiWord. To link to an anchor name use the [[MyTopic#MyAnchor]] syntax. You can omit the topic name if you want to link within the same topic.
|
[[WebHome#NotThere]]
[[#MyAnchor][Jump]]
#MyAnchor To here
|
WebHome#NotThere
Jump
To here
|
Prevent a Link:
Prevent a WikiWord from being linked by prepending it with the <nop> tag.
|
<nop>SunOS
|
SunOS
|
Disable Links:
You can disable automatic linking of WikiWords by surrounding text with <noautolink> and </noautolink> tags.
Note: Each tag must be on a line by itself.
Note: This also works for TWiki tables, but only if you add a blank line between the end of the table and the closing </noautolink> tag (known issue of the TablePlugin).
|
<noautolink>
RedHat &
SuSE
</noautolink>
|
RedHat &
SuSE
|
Mailto: Links:
To create 'mailto:' links that have more descriptive link text, specify subject lines or message bodies, or omit the email address, you can write [[mailto:user@domain descriptive text]].
|
[[mailto:a@z.com Mail]]
[[mailto:?subject=Hi Hi]]
|
Mail
Hi
|
Using HTML
You can use just about any HTML tag without a problem - however, there are a few usability and technical considerations to keep in mind.
HTML and TWiki Usability
- On collaboration pages, it's preferable NOT to use HTML, and to use TWiki shorthand instead - this keeps the text uncluttered and easy to edit.
-
NOTE: TWiki is designed to work with a wide range of browsers and computer platforms, holding to HTML 3.2 compatibility in the standard installation - adding raw HTML, particularly browser-specific tags (or any other mark-up that doesn't degrade well) will reduce compatibility.
TWiki HTML Rendering
- TWiki converts shorthand notation to XHTML 1.0 for display. To copy a fully marked-up page, simply view source in your browser and save the contents.
-
If you need to save HTML frequently, you may want to check out TWiki:Plugins/GenHTMLAddon - it will "generate a directory containing rendered versions of a set of TWiki pages together with any attached files."
-
NOTE: The opening and closing angle brackets - <...> - of an HTML tag must be on the same line, or the tag will be broken.
- This feature allows you to enter an unclosed angle bracket - as a greater than or less than symbol - and have it automatically rendered as if you had entered its HTML character,
<, ex: a > b
-
If you're pasting in preformatted HTML text and notice problems, check the file in a text processor with no text wrap. Also, save without hard line breaks on text wrap, in your HTML editing program.
Hyperlinks
Being able to create links without any formatting required is a core TWiki feature, made possible with WikiWords. New TWiki linking rules are a simple extension of the syntax that provide a new set of flexible options.
Internal Links
- GoodStyle is a WikiWord that links to the GoodStyle topic located in the current TWiki web.
- NotExistingYet? is a topic waiting to be written. Create the topic by clicking on the ?. (Try clicking, but then, Cancel - creating the topic would wreck this example!)
External Links
-
http://..., https://..., ftp://..., gopher://..., news://..., file://..., telnet://... and mailto:...@... are linked automatically.
- Email addresses like
name@domain.com are linked automatically.
-
[[Square bracket rules]] let you easily create non-WikiWord links.
- You can also write
[[http://yahoo.com Yahoo home page]] as an easier way of doing external links with descriptive text for the link, such as Yahoo home page.
Variáveis TWiki?
Variables are names that are enclosed in percent signs % that are expanded on the fly.
-
%TOC% : Automatically generates a table of contents based on headings in a topic - see the top of this page for an example.
-
%WEB% : The current web, is TWiki.
-
%TOPIC% : The current topic name, is TextFormattingRulesptBR.
-
%ATTACHURL% : The attachment URL of the current topic. Example usage: If you attach a file to a topic you can refer to it as %ATTACHURL%/image.gif to show the URL of the file or the image in your text.
-
%INCLUDE{"SomeTopic"}% : Server side include, includes another topic. The current TWiki web is the default web. Example: %INCLUDE{"TWiki.SiteMap"}%
-
%SEARCH{"sushi"}% : Inline search showing the search result embedded in a topic. FormattedSearch gives you control over formatting, used to create web-based applications.
- TWikiPreferences defines site-wide variables. Among others:
- Line break: Write
%BR% to start a new line.
- Colored text: Write:
%RED% Red %ENDCOLOR% and %BLUE% blue %ENDCOLOR% colors to get: Red and blue colors.
- Documentation Graphics: Write:
%H% Help, %T% Tip, %X% Alert to get: Help, Tip, Alert. For more info see TWikiDocGraphics.
- There are many more variables, see TWikiVariablesptBR?.
TWikiPlugin Formatting Extensions
Plugins provide additional text formatting capabilities and can extend the functionality of TWiki into many other areas. For example, the optional SpreadSheetPlugin lets you create a spreadsheet with the same basic notation used in TWiki tables.
Available Plugins are located in the Plugins web on TWiki.org. Currently enabled plugins on this TWiki installation, as listed by %PLUGINDESCRIPTIONS%:
- SpreadSheetPlugin (any TWiki, 10197): Add spreadsheet calculation like
"$SUM( $ABOVE() )" to TWiki tables and other topic text - BlackListPlugin (any TWiki, 13186): Utility to keep malicious users away from a public TWiki site
- CommentPlugin (Dakar, 11359): Allows users to quickly post comments to a page without an edit/preview/save cycle
- EditTablePlugin (any TWiki, 11646): Edit TWiki tables using edit fields, date pickers and drop down boxes
- InterwikiPlugin (Dakar, $Rev: 11935$): Link
ExternalSite:Page text to external sites based on aliases defined in a rules topic - PreferencesPlugin (Dakar, 9839): Allows editing of preferences using fields predefined in a form
- SlideShowPlugin (Any TWiki, $Rev: 12847$): Create web based presentations based on topics with headings.
- SmiliesPlugin (Dakar, 8154): Render smilies as icons, like
for :-) or for = :eek:= - TablePlugin (1.020, 12339): Control attributes of tables and sorting of table columns
- TwistyPlugin (1.2.0, $Rev: 12154$): Twisty section JavaScript library to open/close content dynamically
Check on current Plugin status and settings for this site in TWikiPreferences.
Common Editing Errors
TWiki formatting rules are fairly simple to use and quick to type. However, there are some things to watch out for, taken from the TextFormattingFAQ:
- Q: Text enclosed in angle brackets like
<filename> is not displayed. How can I show it as it is?
- A: The
'<' and '>' characters have a special meaning in HTML, they define HTML tags. You need to escape them, so write '<' instead of '<', and '>' instead of '>'. Example: Type 'prog <filename>' to get 'prog <filename>'.
- Q: Why is the
'&' character sometimes not displayed?
- A: The
'&' character has a special meaning in HTML, it starts a so called character entity, i.e. '©' is the © copyright character. You need to escape '&' to see it as it is, so write '&' instead of '&'. Example: Type 'This & that' to get 'This & that'.
-- CarlosDelfino - 01 Jun 2004 - 17:23
|