Ferramentas do usuário

Ferramentas do site


wiki:syntax

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
wiki:syntax [2023/06/14 04:25] – a revisão anterior foi restaurada (2023/06/13 00:32) Sirilo Terreswiki:syntax [2024/10/17 16:08] (atual) – edição externa 127.0.0.1
Linha 1: Linha 1:
-====== Sintaxe de Formatação ====== +====== Formatting Syntax ======
-O Dokuwiki suporta algumas linguagens de marcação bem simples que procuram fazer com que os arquivos de dados sejam o mais legíveis possível. Esta página contém todos os comandos disponíveis que você poderá usar para editar as páginas. Veja o código-fonte, clicando no botão //Editar esta página// no topo ou no rodapé da página. Se quiser treinar, use a página de [[playground:playground]]. As marcações mais simples também são acessíveis através da [[doku>toolbar|barra de botões]]. +
-===== Formatação Básica de Texto ===== +
-O Dokuwiki suporta textos em **negrito**, //itálico//, __sublinhado__ e ''mono espaçado''. Obviamente, você poderá **__//''combinar''//__** todos os formatos.+
  
-  O Dokuwiki suporta textos em **negrito** +[[doku>DokuWiki]] supports some simple markup languagewhich tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try somethingjust use the [[playground:playground|playground]] pageThe simpler markup is easily accessible via [[doku>toolbar|quickbuttons]]too.
-  //itálico//__sublinhado__ e ''mono espaçado''. +
-  Obviamentevocê poderá **__//''combinar''//__**  +
-  todos os formatos.+
  
-Você também pode usar <sub>texto subscrito</sub> e <sup>texto sobrescrito</sup>.+===== Basic Text Formatting =====
  
-  Você também pode usar <sub>texto subscrito</sub> e <sup>texto sobrescrito</sup>.+DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.
  
-Você poderá marcar algo como <del>tachado</del>.+  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. 
 +  Of course you can **__//''combine''//__** all these.
  
-  Você poderá marcar algo como <del>tachado</del>.+You can use <sub>subscript</suband <sup>superscript</sup>, too.
  
-**Parágrafos** são criados a partir de linhas em branco. Se quiser **forçar a quebra de linha** sem um novo parágrafovocê poderá usar duas barras (\\) seguidas do fim da linha ou de um espaço em branco.+  You can use <sub>subscript</sub> and <sup>superscript</sup>too.
  
-Este é um texto com algumas quebras de linha\\ Note que as +You can mark something as <del>deleted</del> as well.
-duas barras (\\) são reconhecidas apenas no fim da linha\\ +
-ou seguidas por\\ um espaço \\isto que acontece sem o espaço.+
  
-  Este é um texto com algumas quebras de linha\\ Note que as +  You can mark something as <del>deleted</del> as well. 
-  duas barras (\\) são reconhecidas apenas no fim da linha\\ + 
-  ou seguidas por\\ um espaço \\isto que acontece sem o espaço.+**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. 
 + 
 +This is some text with some linebreaks\\ Note that the 
 +two backslashes are only recognized at the end of a line\\ 
 +or followed by\\ a whitespace \\this happens without it. 
 + 
 +  This is some text with some linebreaks\\ Note that the 
 +  two backslashes are only recognized at the end of a line\\ 
 +  or followed by\\ a whitespace \\this happens without it. 
 + 
 +You should use forced newlines only if really needed.
  
-Você deve forçar as quebras de linha apenas quando necessário. 
 ===== Links ===== ===== Links =====
-O Dokuwiki suporta múltiplas formas de criar ligações entre páginas (links). 
-==== Externos ==== 
-Links externos são reconhecidos automaticamente: http://www.google.com ou simplesmente www.google.com - Você também pode rotular os links: [[http://www.google.com|Este link aponta para o Google]]. Endereços de e-mail como este: <andi@splitbrain.org> também são reconhecidos automaticamente. 
  
-  Links externos são reconhecidos automaticamente: http://www.google.com +DokuWiki supports multiple ways of creating links.
-  ou simplesmente www.google.com - Você também pode rotular os links+
-  [[http://www.google.com|Este link aponta para o Google]].  +
-  Endereços de e-mail como este: <andi@splitbrain.org>  +
-  também são reconhecidos automaticamente. +
-==== Internos ==== +
-Links internos são criados usando colchetes. Você pode apenas fornecer o  [[pagename|nome da página]] ou usar uma descrição adicional [[pagename|Título da Página]]. Os nomes das páginas wiki são convertidos para minúsculo automaticamente e caracteres especiais(espaço, acentos e pontuação) não são permitidos+
  
-  Links internos são criados usando colchetes. Você pode apenas fornecer +==== External ====
-  o [[doku>wiki:nome_da_pagina]] ou usar uma descrição adicional +
-  [[doku>wiki:nome_da_pagina|Título da Página]]. Os nomes das páginas  +
-  wiki são convertidos para minúsculo automaticamente e  +
-  caracteres especiais(espaço, acentos e pontuação) não são permitidos. +
  
-Você pode usar [[namespaces:]] acrescentando (dois-pontos) ao nome da página.+External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one<andi@splitbrain.org> are recognized, too.
  
-  Você pode usar [[namespaces:]] acrescentando (dois-pontos) ao nome da página.+  DokuWiki supports multiple ways of creating links. External links are recognized 
 +  automagically: http://www.google.com or simply www.google.com - You can set 
 +  link text as well: [[http://www.google.com|This Link points to google]]. Email 
 +  addresses like this one<andi@splitbrain.org> are recognized, too.
  
-//Namespaces// são diretórios de páginas usados para organizar e evitar que páginas com o mesmo nome entrem em conflito. +==== Internal ====
-[[namespaces|Clique aqui]] para saber mais sobre [[namespaces]].+
  
-É possível apontar um link para uma seção específica da páginaBasta adicionar o nome da seção após um caractere de cerquilha (#) igual como é no HTML. Este link aponta para [[#internos|seção Internos]].+Internal links are created by using square bracketsYou can either just give a [[pagename]] or use an additional [[pagename|link text]].
  
-  Este link aponta para [[#internos|seção Internos]].+  Internal links are created by using square brackets. You can either just give 
 +  a [[pagename]] or use an additional [[pagename|link text]].
  
-Notas:+[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed. 
 + 
 +You can use [[some:namespaces]] by using a colon in the pagename. 
 + 
 +  You can use [[some:namespaces]] by using a colon in the pagename. 
 + 
 +For details about namespaces see [[doku>namespaces]]. 
 + 
 +Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. 
 + 
 +  This links to [[syntax#internal|this Section]]. 
 + 
 +Notes: 
 + 
 +  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. 
 +  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. 
 +  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.
  
-  * Links para [[pt-br:wiki:syntax|páginas existentes]] são exibidos em estilo diferente dos  [[pt-br:wiki:não existentes]]. 
-  * Seções são iniciadas por parágrafos. Uma linha qualquer de texto não serve de destino de um link interno. 
-  * Quando os nomes das seções são alterados, os links que apontam pra elas devem ser alterados também. Portanto, não conte muito com os links de seção. 
 ==== Interwiki ==== ==== Interwiki ====
  
-O Dokuwiki suporta links [[doku>interwiki|Interwiki]], que são links rápidos com outros wikisEste é um exemplo de link para página sobre Wikis da Wikipedia: [[wp>Wiki]].+DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is link to Wikipedia's page about Wikis: [[wp>Wiki]]. 
 + 
 +  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. 
 +  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]
 + 
 +==== Windows Shares ==== 
 + 
 +Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]]. 
 + 
 +  Windows Shares like [[\\server\share|this]] are recognized, too. 
 + 
 +Notes: 
 + 
 +  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). 
 +  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> 
 +<?php 
 +/** 
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'] = ''; 
 +</code> 
 + 
 +==== Image Links ==== 
 + 
 +You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: 
 + 
 +  [[http://php.net|{{wiki:dokuwiki-128.png}}]] 
 + 
 +[[http://php.net|{{wiki:dokuwiki-128.png}}]] 
 + 
 +Please note: The image formatting is the only formatting syntax accepted in link names.
  
-  O Dokuwiki suporta links [[doku>wiki:interwiki|Interwiki]], que são +The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links).
-  links rápidos com outros wikis. Este é um exemplo de link para a  +
-  página sobre Wikis da Wikipedia: [[wp>Wiki]]. +
-==== Links com Imagens ==== +
-Você também poderá usar uma imagem para linkar outra página interna ou externa combinando a sintaxe de links e de [[#imagens_e_outros_arquivos|imagens]] (veja abaixodesta forma:+
  
-  [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+===== Footnotes =====
  
-[[http://www.php.net|{{wiki:dokuwiki-128.png}}]]+You can add footnotes ((This is a footnote)) by using double parentheses.
  
-**Importante**: A formatação de imagem é única sintaxe de formatação aceita nos nomes de links.+  You can add footnotes ((This is footnote)) by using double parentheses.
  
-A sintaxe completa de [[#imagens_e_outros_arquivos|imagem]] e de [[#links|link]] é suportada. (incluindo redimensionamento de imagens, imagens internas e externas e links para URLs e interwiki). +===== Sectioning =====
-===== Notas de Rodapé ===== +
-Você pode adicionar notas de rodapé ((Isto é uma nota de rodapé)) usando parênteses duplos.+
  
-  Você pode adicionar notas de rodapé ((Isto é uma nota de rodapé)) +You can use up to five different levels of headlines to structure your contentIf you have more than three headlinesa table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
-  usando parênteses duplos. +
-===== Seções ===== +
-Você pode usar até cinco diferentes níveis de títulos para estruturar o conteúdo. Com 3 ou mais níveis será automaticamente gerada uma Tabela de Conteúdos visível à direita do topo da página. A Tabela de Conteúdos  poderá ser desabilitadaincluindo o comando ''<nowiki>~~NOTOC~~</nowiki>'' no documento.+
  
-O documento [[:seo|DokuWiki and Search Engine Optimization (SEO)]] recomenda que todo título de página seja definido com nível 1. +==== Headline Level 3 ==== 
-====== Título de nível 1 ====== +=== Headline Level 4 === 
-===== Título de nível 2 ===== +== Headline Level 5 ==
-==== Título de nível 3 ==== +
-=== Título de nível 4 === +
-== Título de nível 5 ==+
  
-  ====== Título de nível 1 ====== +  ==== Headline Level 3 ==== 
-  ===== Título de nível 2 ===== +  === Headline Level 4 === 
-  ==== Título de nível 3 ==== +  == Headline Level 5 ==
-  === Título de nível 4 === +
-  == Título de nível 5 ==+
  
-Para incluir uma linha horizontal como abaixo digite 4 ou mais traços:+By using four or more dashes, you can make horizontal line:
  
 ---- ----
-===== Imagens e Outros Arquivos ===== 
-Você pode incluir [[doku>images|imagens]] internas e externas usando chaves. Opcionalmente, o tamanho das imagens pode ser especificado. 
  
-Tamanho real:                      {{wiki:dokuwiki-128.png}}+===== Media Files =====
  
-Tamanho personalizado:             {{wiki:dokuwiki-128.png?50}}+You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-Redimensionar para uma largura ou largura específica((Quando a proporção da largura e altura especificada não coincidir com a da imagem, ela será recortada para a nova proporção antes de ser redimensionada)): {{wiki:dokuwiki-128.png?200x50}}+Real size                       {{wiki:dokuwiki-128.png}}
  
-Imagem externa redimensionada     {{https://secure.php.net/images/php.gif?200x50}}+Resize to given width           {{wiki:dokuwiki-128.png?50}}
  
-  Tamanho Real                              {{wiki:dokuwiki-128.png}} +Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
-  Redimensionada para uma largura específica: {{wiki:dokuwiki-128.png?50}} +
-  Redimensionada para uma altura específica:  {{wiki:dokuwiki-128.png?200x50}} +
-  Imagem externa redimensionada:              {{https://secure.php.net/images/php.gif?200x50}}+
  
-Usando espaços em branco na direita e na esquerda, você poderá mudar o alinhamento:+Resized external image          {{https://www.php.net/images/php.gif?200x50}} 
 + 
 +  Real size:                        {{wiki:dokuwiki-128.png}} 
 +  Resize to given width:            {{wiki:dokuwiki-128.png?50}} 
 +  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} 
 +  Resized external image:           {{https://www.php.net/images/php.gif?200x50}} 
 + 
 + 
 +By using left or right whitespaces you can choose the alignment.
  
 {{ wiki:dokuwiki-128.png}} {{ wiki:dokuwiki-128.png}}
Linha 132: Linha 157:
   {{ wiki:dokuwiki-128.png }}   {{ wiki:dokuwiki-128.png }}
  
-Obviamentevocê também pode trocar o título da imagem (exibido como //tooltip// por muitos navegadores quando se pára o mouse sobre imagem ou a imagem não é encontrada).+Of courseyou can add a title (displayed as tooltip by most browsers), too.
  
-{{ wiki:dokuwiki-128.png |Este é o título}}+{{ wiki:dokuwiki-128.png |This is the caption}}
  
-  {{ wiki:dokuwiki-128.png |Este é o título}}+  {{ wiki:dokuwiki-128.png |This is the caption}}
  
-Se você especificar um nome de arquivo (externo ou interno) que não seja uma imagem (''gif, jpeg, png''), então  o texto "Este é o título" será exibido como um link.+For linking an image to another page see [[#Image Links]] above.
  
-Para linkar uma imagem para outra página, veja o tópico [[#Links com Imagens]] acima. +==== Supported Media Formats ====
-==== Arquivos PDF ==== +
-Para abrir arquivos PDF, execute primeiro o upload com o Media Manager, programe a referência semelhante à das imagens. Por exemplo, se foi feito o upload do arquivo manual.pdf para \media\pdf, assim ficará a referência:+
  
-<code> +DokuWiki can embed the following media formats directly.
-{{:pdf\manual.pdf|Manual do Sistema}} +
-</code>+
  
 +| Image | ''gif'', ''jpg'', ''png''  |
 +| Video | ''webm'', ''ogv'', ''mp4'' |
 +| Audio | ''ogg'', ''mp3'', ''wav''  |
 +| Flash | ''swf''                    |
  
-==== Formatos de Mídia Suportados ====+If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
  
-O Wiki pode embutir os seguintes formatos de mídia diretamente. +By adding ''?linkonly'' you provide a link to the media without displaying it inline
- +
-| Imagem | ''gif'', ''jpg'', ''png'' +
-| Video  | ''webm'', ''ogv'', ''mp4''+
-| Áudio  | ''ogg'', ''mp3'', ''wav'' +
-| Flash  | ''swf''                    | +
- +
-Se você especificar um nome de arquivo que não é suportado, então ele será exibido como um link. +
- +
-Adicionando ''?linkonly'' você estará incluindo um link para a imagem sem exibi-la na página.+
  
   {{wiki:dokuwiki-128.png?linkonly}}   {{wiki:dokuwiki-128.png?linkonly}}
  
-{{wiki:dokuwiki-128.png?linkonly}} Isto é apenas um link para imagem.+{{wiki:dokuwiki-128.png?linkonly}} This is just link to the image.
  
-==== Formatos Avançados ====+==== Fallback Formats ====
  
-Infelizmente nem todos os navegadores entendem todos os formatos de videos e de áudioPara mitigar este problemavocê pode enviar diferentes formatos para o máximo de compatibilidade dos navegadores.+Unfortunately not all browsers understand all video and audio formatsTo mitigate the problemyou can upload your file in different formats for maximum browser compatibility.
  
-Por exemplo, considere este vídeo embutido:+For example consider this embedded mp4 video:
  
-  {{video.mp4|Um vídeo engraçado}}+  {{video.mp4|A funny video}}
  
-Quando você faz o upload de um ''video.webm'' e um ''video.ogv'' após o ''video.mp4'', DokuWiki os adicionará automaticamente como alternativas para que um dos três arquivos seja entendido pelo seu navegador.+When you upload ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.
  
-Além disso, o DokuWiki suporta uma imagem "poster" que será exibida antes do início do vídeoEssa imagem precisa ter o mesmo nome de arquivo que o vídeo e ser um arquivo jpg ou png. No exemplo acima, um arquivo ''video.jpg'' funcionaria.+Additionally DokuWiki supports a "poster" image which will be shown before the video has startedThat image needs to have the same filename as the video and be either a jpg or png fileIn the example above a ''video.jpg'' file would work.
  
 +===== Lists =====
  
-===== Listas ===== +Dokuwiki supports ordered and unordered listsTo create a list item, indent your text by two spaces and use ''*'' for unordered lists or a ''-'' for ordered ones.
-Dokuwiki suportas listas ordenadas (numeradas) e não-ordenadasPara criar um item de listasendente seu texto com dois espaços e use um ''*''(asterísco) para listas não-ordenadas e um ''-''(traço) para listas ordenadas.+
  
-  * Esta é uma lista +  * This is a list 
-  * O segundo item +  * The second item 
-    * você pode ter diferentes níveis +    * You may have different levels 
-  * Outro item+  * Another item
  
-  - A mesma lista porém ordenada +  - The same list but ordered 
-  - Outro Item +  - Another item 
-    - Simplesmente use endentação para criar níveis +    - Just use indention for deeper levels 
-  - Último item+  - That's it
  
 <code> <code>
-  * Esta é uma lista +  * This is a list 
-  * O segundo item +  * The second item 
-    * você pode ter diferentes níveis +    * You may have different levels 
-  * Outro item+  * Another item
  
-  - A mesma lista porém ordenada +  - The same list but ordered 
-  - Outro Item +  - Another item 
-    - Simplesmente use endentação para criar níveis +    - Just use indention for deeper levels 
-  - Último item+  - That's it
 </code> </code>
  
-Veja também o [[doku>faq:lists|FAQ de listas de itens]]. +Also take a look at the [[doku>faq:lists|FAQ on list items]]. 
-===== Conversões de Texto ===== + 
-[[doku>DokuWiki]] pode converter certos caracteres ou textos predefinidos em imagens ou em outro texto ou em HTML.+===== Text Conversions ===== 
 + 
 +DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. 
 + 
 +The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well. 
 + 
 +==== Text to Image Conversions ==== 
 + 
 +DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extendedHere is an overview of Smileys included in DokuWiki:
  
-A conversão de texto para imagem é feito principalmente para smileys(carinhas). E a conversão de texto para HTML é usado para substituição de tipografia, mas também pode ser configurada para usar outro HTML. 
-==== Conversão de Texto para Imagem ==== 
-O DokuWiki produz os [[wp>emoticon]]s mais usados, convertendo em imagens os caracteres digitados no texto. Estes [[doku>Smileys]] e outras imagens podem ser configurados e estendidos. Aqui está uma visão geral do que já está incluído: 
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
   * 8-O %%  8-O  %%   * 8-O %%  8-O  %%
Linha 226: Linha 247:
   * ;-) %%  ;-)  %%   * ;-) %%  ;-)  %%
   * ^_^ %%  ^_^  %%   * ^_^ %%  ^_^  %%
 +  * m(  %%  m(   %%
   * :?: %%  :?:  %%   * :?: %%  :?:  %%
   * :!: %%  :!:  %%   * :!: %%  :!:  %%
Linha 231: Linha 253:
   * FIXME %%  FIXME %%   * FIXME %%  FIXME %%
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
-===== Conversão de Texto para HTML ===== + 
-[[wiki:Dokuwiki]] pode converter caracteres de texto simples em suas entidades tipograficamente corretasAqui está um exemplo de caracteres reconhecidos.+==== Text to HTML Conversions ==== 
 + 
 +Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entitiesHere is an example of recognized characters.
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
-"Ele disse: 'Aquilo é um frango-d'água'..."+"He thought 'It's a man's world'..."
  
 <code> <code>
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
-"Ele disse: 'Aquilo é um frango-d'água'..."+"He thought 'It's a man's world'..."
 </code> </code>
-===== Citações ===== 
-Se precisar mostrar textos como diálogos igual ao abaixo, a sintaxe é a seguinte: 
  
 +The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].
  
-  Eu pensei que nós deveríamos fazer isto +There are three exceptions which do not come from that pattern file: multiplication entity (640x480)'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]].
-   +
-  > Nãonão deveríamos +
-   +
-  >> Bem, eu disse que nós deveríamos +
-   +
-  > Realmente? +
-   +
-  >> Sim! +
-   +
-  >>Então vamos fazer isto!+
  
-Eu pensei que nós deveríamos fazer isto+===== Quoting =====
  
-> Não, não deveríamos+Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
  
->> Bemeu disse que nós deveríamos+<code> 
 +I think we should do it 
 + 
 +No we shouldn'
 + 
 +>> WellI say we should 
 + 
 +> Really? 
 + 
 +>> Yes! 
 + 
 +>>> Then lets do it! 
 +</code> 
 + 
 +I think we should do it 
 + 
 +> No we shouldn'
 + 
 +>> Well, I say we should 
 + 
 +> Really?
  
 +>> Yes!
  
-Realmente?+>>> Then lets do it!
  
->> Sim!+===== Tables =====
  
->>> Então vamos fazer isto! +DokuWiki supports a simple syntax to create tables.
-===== Tabelas ===== +
-O Dokuwiki disponibiliza uma sintaxe simples para criação de tabelas+
  
-Cabeçalho       Cabeçalho                               Cabeçalho       +Heading      Heading       Heading          
-Linha Coluna  Linha Coluna                          Linha Coluna  +Row Col    Row Col     Row Col        
-Linha Coluna  Linha mesclada (repare o pipeline duplo                    || +Row Col    some colspan (note the double pipe) || 
-Linha Coluna  Linha Coluna                          Linha Coluna  |+Row Col    Row Col     Row Col        |
  
-Linhas de tabelas devem iniciar e terminar com um ''^''(circunflexo) para cabeçalhos e com um ''|''(pipeline) para linhas de dados.+Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.
  
-  ^ Cabeçalho       Cabeçalho 2       Cabeçalho           +  ^ Heading      Heading 2       Heading          
-  | Linha Coluna  Linha Coluna  Linha Coluna      +  | Row Col    Row Col     Row Col        
-  | Linha Coluna  Linha mesclada (repare o pipeline duplo) || +  | Row Col    some colspan (note the double pipe) || 
-  | Linha Coluna  Linha Coluna  Linha Coluna      |+  | Row Col    Row Col     Row Col        |
  
-Para conectar células horizontalmenteapenas faça a próxima célula vazia como exibido abaixo. Certifique-se de que existe a mesma quantidade de separadores de células em todas as linhas!+To connect cells horizontallyjust make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!
  
-Cabeçalhos verticais também são possíveis.+Vertical tableheaders are possible, too.
  
-|              ^ Cabeçalho           Cabeçalho       +|              ^ Heading            Heading          
-Cabeçalho  Linha Coluna 3      Linha Coluna  +Heading    Row Col 2          Row Col        
-Cabeçalho  Sem mesclar dessa vez                   +Heading    no colspan this time                    
-Cabeçalho  Linha Coluna 3      Linha Coluna  |+Heading    Row Col 2          Row Col        |
  
-Como você pode veré o separador de células anterior à célula que decide sobre formatação:+As you can seeit's the cell separator before cell which decides about the formatting:
  
-  |              ^ Cabeçalho           Cabeçalho       +  |              ^ Heading            Heading          
-  ^ Cabeçalho  Linha Coluna 3      Linha Coluna  +  ^ Heading    Row Col 2          Row Col        
-  ^ Cabeçalho  Sem mesclar dessa vez                   +  ^ Heading    no colspan this time                    
-  ^ Cabeçalho  Linha Coluna 3      Linha Coluna  |+  ^ Heading    Row 2 Col          Row Col        |
  
-Você pode conectar células verticalmente adicionando '':::'' dentro das células abaixo da qual elas devem conectar.+You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect.
  
-Cabeçalho          Cabeçalho                        Cabeçalho        +Heading      Heading                  Heading          
-Linha  Coluna 1    | esta célula expande verticalmente  Linha  Coluna  +Row Col 1    | this cell spans vertically Row Col        
-Linha  Coluna 1    | :::                                Linha  Coluna  +Row Col 1    | :::                        Row Col        
-Linha  Coluna 1    | :::                                Linha  Coluna  |+Row Col 1    | :::                        Row Col        |
  
-Estas células não deverão conter nada além da sintaxe de conexão vertical.+Apart from the rowspan syntax those cells should not contain anything else.
  
-  ^ Cabeçalho          Cabeçalho                        Cabeçalho        +  ^ Heading      Heading                  Heading          
-  | Linha  Coluna 1    | esta célula expande verticalmente  Linha  Coluna  +  | Row Col 1    | this cell spans vertically Row Col        
-  | Linha  Coluna 1    | :::                                Linha  Coluna  +  | Row Col 1    | :::                        Row Col        
-  | Linha  Coluna 1    | :::                                Linha  Coluna  |+  | Row Col 1    | :::                        Row Col        |
  
-Você também pode alinhar o conteúdo da tabelaadicionando dois espaços no lado oposto ao do alinhamento: +You can align the table contentstooJust add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text.
-  * Para alinhar à direita adicione dois espaços no lado esquerdo. +
-  * Para alinhar à esquerda adicione dois espaços no lado direito. +
-  * Para centralizar adicione dois espaços nos dois lados.+
  
-^           Tabela com alinhamento         ^^^ +^           Table with alignment           ^^^ 
-      direita|    centro    |esquerda      +        right|    center    |left          
-|esquerda            direita|    centro    |+|left                  right|    center    |
 | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-Assim que aparede no código-fonte:+This is how it looks in the source:
  
-  ^           Tabela com alinhamento         ^^^ +  ^           Table with alignment           ^^^ 
-  |       direita|    centro    |esquerda      +  |         right|    center    |left          
-  |esquerda            direita|    centro    |+  |left                  right|    center    |
   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-NotaAlinhamento vertical não é suportado+NoteVertical alignment is not supported. 
-===== Blocos não-interpretados ===== + 
-Se você precisar exibir um texto sem formatação exatamente como digitadodelimite o texto com a tag ''%%<nowiki>...</nowiki>%%'' ou simplesmente com dois caracteres de porcentagem ''<nowiki>%%...%%</nowiki>''.+===== No Formatting ===== 
 + 
 +If you need to display text exactly like it is typed (without any formatting)enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''.
  
 <nowiki> <nowiki>
-Este é um texto que contém endereços como este: http://www.Dokuwiki.com.br e **formatação**, mas nada é feito com eles.+This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
 </nowiki> </nowiki>
-O mesmo acontece com %%//__este__ **texto**// com um smiley ;-)%%.+The same is true for %%//__this__ text// with a smiley ;-)%%.
  
   <nowiki>   <nowiki>
-  Este é um texto que contém endereços como este: http://www.Dokuwiki.com.br e   **formatação**, mas nada é feito com eles.+  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
   </nowiki>   </nowiki>
-  O mesmo acontece com %%//__este__ **texto**// com um smiley ;-)%%. +  The same is true for %%//__this__ text// with a smiley ;-)%%. 
-===== Blocos de código ===== + 
-Você pode incluir blocos de código-fonte em seu documento endentando-os com dois espaços no início da linha(como nos exemplos anterioresou usando as tags ''code'' ou ''file''.+===== Code Blocks ===== 
 + 
 +You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examplesor by using the tags ''%%<code>%%'' or ''%%<file>%%''
 + 
 +  This is text is indented by two spaces.
  
 <code> <code>
-Este é um código pré-formatado, todos os espaços são preservadoscomo     <- este+This is preformatted code all spaces are preservedlike              <-this
 </code> </code>
  
 <file> <file>
-Este é exatamente o mesmo mas você deve usá-lo para dizer que citou um arquivo +This is pretty much the same, but you could use it to show that you quoted a file.
 </file> </file>
  
-Estes blocos foram criados pelo seguinte fonte:+Those blocks were created by this source: 
 + 
 +    This is text is indented by two spaces.
  
   <code>   <code>
-  Este é um código pré-formatado, todos os espaços são preservadoscomo     <-este+  This is preformatted code all spaces are preservedlike              <-this
   </code>   </code>
  
   <file>   <file>
-  Este é exatamente o mesmo mas você deve usá-lo para dizer que citou um arquivo +  This is pretty much the same, but you could use it to show that you quoted a file.
   </file>   </file>
-==== Destaque de Sintaxe ==== + 
-[[wiki:DokuWiki]] pode destacar códigos-fonte para facilitar a sua leituraEle usa o [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- portanto, qualquer linguagem suportada pelo GeSHi é suportadaA sintaxe é a mesma da dos blocos de código(code) e arquivo(file) da seção anteriormas desta vez o nome da linguagem usada é inserida dentro da tag. Ex. ''<nowiki><code java></nowiki>'' ou ''<nowiki><file java></nowiki>''.+==== Syntax Highlighting ==== 
 + 
 +[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to readIt uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supportedThe syntax uses the same code and file blocks described in the previous sectionbut this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
  
 <code java> <code java>
Linha 379: Linha 418:
 </code> </code>
  
-As seguintes linguagens são reconhecidas: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
-Existem [[doku>pt-br:syntax_highlighting|opções avançadas]] adicionais disponíveis para destaque de sintaxecomo realçar linhas ou adicionar números de linha. +There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlightingsuch as highlighting lines or adding line numbers.
-==== Blocos de Código Baixáveis ==== +
-Quando você usa as sintaxes ''%%<code>%%'' ou ''%%<file>%%'' descritas acima, poderá desejar que o código-fonte exibido seja disponibilizado para downloadPara isso deve especificar o nome do arquivo após o nome da linguagem de programação desta forma:+
  
-<code> +==== Downloadable Code Blocks ====
-<file php exemplo.php> +
-<?php echo "hello world!"; ?> +
-</file> +
-</code> +
- +
-<file php exemplo.php> +
-<?php echo "hello world!"; ?> +
-</file>+
  
-Se você não quiser nenhum destaque no código-fonte mas quiser que o arquivo seja baixável, troque o nome da linguagem de programação por um traço (''-'') assim: ''%%<code - exemplo.php>%%'' ou ''%%<file - exemplo.php>%%''.+When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as wellYou can do this by specifying a file name after language code like this:
  
 <code> <code>
-<file - exemplo.php>+<file php myexample.php>
 <?php echo "hello world!"; ?> <?php echo "hello world!"; ?>
 </file> </file>
 </code> </code>
  
-<file - exemplo.php>+<file php myexample.php>
 <?php echo "hello world!"; ?> <?php echo "hello world!"; ?>
 </file> </file>
  
 +If you don't want any highlighting but want a downloadable file, specify a dash (''-'') as the language code: ''%%<code - myfile.foo>%%''.
  
-===== HTML e PHP embutido ===== +===== RSS/ATOM Feed Aggregation ===== 
-Você pode embutir HTML e PHP puros dentro de seus documentos usando as tags ''%%<html>%%'' ou ''%%<php>%%''(Use tags maiúsculas se você precisar incluir níveis de blocos de elementos.)+[[DokuWiki]] can integrate data from external XML feedsFor parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as wellYou can influence the rendering by multiple additional space separated parameters:
  
-Exemplo em HTML:+^ Parameter  ^ Description ^ 
 +| any number | will be used as maximum number items to show, defaults to 8 | 
 +| reverse    | display the last items in the feed first | 
 +| author     | show item authors names | 
 +| date       | show item dates | 
 +| description| show the item description. All HTML tags will be stripped | 
 +| nosort     | do not sort the items in the feed | 
 +| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). |
  
-<code> +The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.
-<html> +
-Este é um <span style="color:red;font-size:150%;">HTML em linha</span> +
-</html> +
-<HTML> +
-<p style="border:2px dashed red;">E este é um bloco HMTL</p> +
-</HTML> +
-</code>+
  
-<html> +By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''.
-Este é um <span style="color:red;font-size:150%;">HTML em linha</span> +
-</html> +
-<HTML> +
-<p style="border:2px dashed red;">E este é um bloco HMTL</p> +
-</HTML>+
  
-Exemplo em PHP:+**Example:**
  
-<code> +  {{rss>http://slashdot.org/index.rss 5 author date 1h }}
-<php> +
-echo 'Uma logo gerada pelp PHP:'; +
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; +
-echo '(HTML gerado em linha)'; +
-</php> +
-<PHP> +
-echo '<table class="inline"><tr><td>O mesmo, mas dentro de um elemento de bloco de nível:</td>'; +
-echo '<td><img src="' $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; +
-echo '</tr></table>'; +
-</PHP> +
-</code>+
  
-<php> +{{rss>http://slashdot.org/index.rss 5 author date 1h }}
-echo 'Uma logo gerada pelp PHP:'; +
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; +
-echo '(HTML gerado em linha)'; +
-</php> +
-<PHP> +
-echo '<table class="inline"><tr><td>O mesmo, mas dentro de um elemento de bloco de nível:</td>'; +
-echo '<td><img src="' $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>'; +
-echo '</tr></table>'; +
-</PHP>+
  
-**Nota:** HTML e PHP embutidos ficam desabilitados por padrão na configuração. Quando desabilitados, o código é exibido ao invés de executado. Se quiser habilitá-los, vá em Administrar -> Configurações do DokuWiki -> Configurações de edição e marque Permitir incorporação de HTML (htmlok) e Permitir incorporação de PHP (phpok). 
-===== RSS/ATOM Feed Aggregation ===== 
-O Dokuwiki pode integrar com dados externos de XML feeds. O [[http://simplepie.org/|SimplePie]] é usado para interpretar os XML feeds. Todos os formatos suportados pelo SimplePie podem ser usados no Dokuwiki. Você pode influenciar na interpretação através de múltiplos parâmetros adicionais separados por espaço: 
  
-^ Parâmetro  ^ Descrição ^ +===== Control Macros =====
-| //n//        | será usado como máximo de itens a serem exibidos, o padrão é 8 | +
-| reverse      | exibe os últimos itens no início na lista | +
-| author       | exibe os nome dos autores dos itens | +
-| date         | exibe as datas dos itens | +
-| description  | exibe a descrição do item. Se [[doku>wiki:config#htmlok|HTML]] estiver desabilitado todas as tags serão removidas | +
-| //n//[dhm]   | período de atualização, onde d=dias, h=horas, m=minutos. (ex. 12h 12 horas). |+
  
-O período de atualização por padrão é 4 horas. Qualquer valor abaixo de 10 minutos será tratado como 10 minutos. O Dokuwiki geralmente vai tentar fornecer uma versão em //cache// da página, claro que isto é inapropriado quando a página contém conteúdo externo dinâmico. Os parâmetros falam pro Dokuwiki recarregar página se tiver um período maior que o //período de atualização// desde o último carregamento.+Some syntax influences how DokuWiki renders page without creating any output it selfThe following control macros are availble:
  
-**Exemplo:**+^ Macro           ^ Description | 
 +| %%~~NOTOC~~%%   | If this macro is found on the page, no table of contents will be created | 
 +| %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |
  
-  {{rss>http://slashdot.org/index.rss 5 author date 1h }}+===== Syntax Plugins =====
  
-{{rss>http://slashdot.org/index.rss 5 author date 1h }} +DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]How the installed plugins are used is described on their appropriate description pagesThe following syntax plugins are available in this particular DokuWiki installation: 
-===== Comandos de Controle ===== + 
-Alguns comandos influenciam em como o DokuWiki monta a página sem criar nenhuma informação visível para o leitor. Os seguintes comandos de controle estão disponíveis:+~~INFO:syntaxplugins~~
  
-^ Comando  ^ Descrição                                                                                                                                                                                 ^ 
-|%%~~NOTOC~~%%    | Se este controle for encontrado na página, a Tabela de Conteúdos não será criada                                                                                                          | 
-|%%~~NOCACHE~~%%  | O DokuWiki faz //cache// de todas as páginas por padrão. Em alguns casos isto pode não ser desejável. Adicionar este controle forçará o DokuWiki a interpretar a página em cada chamada.  | 
wiki/syntax.1686716710.txt.gz · Última modificação: 2023/06/14 04:25 por Sirilo Terres