DokuWiki

It's better when it's simple

Ferramentas do usuário

Ferramentas do site


pt-br: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
Próxima revisão
Revisão anterior
pt-br:wiki:syntax [2015-11-11 19:20] 201.77.112.33pt-br:wiki:syntax [2023-05-23 21:17] (atual) – [Sintaxe de Formatação] nerun
Linha 1: Linha 1:
-Boa tarde, pensei que fosse local e acabei apagando tudo! (tenho backup em inglês)+====== Sintaxe de Formatação ====== 
 +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.
  
-====== Formatting Syntax ======+  O Dokuwiki suporta textos em **negrito**,  
 +  //itálico//, __sublinhado__ e ''mono espaçado''
 +  Obviamente, você poderá **__//''combinar''//__**  
 +  todos os formatos.
  
-[[doku>DokuWiki]] supports some simple markup language, which 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 something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.+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. +  Você poderá marcar algo como <del>tachado</del>.
-  Of course you can **__//''combine''//__** all these.+
  
-You can use <sub>subscript</sub> and <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 
 +duas barras (\\) são reconhecidas apenas no fim da linha\\ 
 +ou seguidas por\\ um espaço \\isto que acontece sem o espaço.
  
-You can mark something as <del>deleted</del> as well. +  Este é um texto com algumas quebras de linha\\ Note que as 
- +  duas barras (\\) são reconhecidas apenas no fim da linha\\ 
-  You can mark something as <del>deleted</del> as well. +  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.
  
-DokuWiki supports multiple ways of creating links.+  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. 
 +==== 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
  
-==== External ====+  Links internos são criados usando colchetes. Você pode apenas fornecer 
 +  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. 
  
-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 +  Você pode usar [[namespaces:]] acrescentando (dois-pontos) ao nome da página.
-  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.+
  
-==== Internal ====+//Namespaces// são diretórios de páginas usados para organizar e evitar que páginas com o mesmo nome entrem em conflito. 
 +[[namespaces|Clique aqui]] para saber mais sobre [[namespaces]].
  
-Internal links are created by using square bracketsYou can either just give a [[pagename]] or use an additional [[pagename|link text]].+É 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 brackets. You can either just give +  Este link aponta para [[#internos|seção Internos]].
-  a [[pagename]] or use an additional [[pagename|link text]].+
  
-[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed. +Notas:
- +
-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 ====
  
-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]].+O Dokuwiki suporta links [[doku>interwiki|Interwiki]], que são links rápidos com outros wikisEste é um exemplo de link para a página sobre Wikis da Wikipedia: [[wp>Wiki]].
  
-  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. +  O Dokuwiki suporta links [[doku>wiki:interwiki|Interwiki]], que são 
-  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]]. +  links rápidos com outros wikisEste é um exemplo de link para a  
- +  página sobre Wikis da Wikipedia: [[wp>Wiki]]. 
-==== Windows Shares ==== +==== Links com Imagens ==== 
- +Você também poderá usar uma imagem para linkar outra página interna ou externa combinando sintaxe de links e de [[#imagens_e_outros_arquivos|imagens]] (veja abaixodesta forma:
-Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in 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 belowlike this:+
  
   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]   [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
Linha 103: Linha 77:
 [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] [[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
  
-Please noteThe image formatting is the only formatting syntax accepted in link names. +**Importante**A formatação de imagem é a única sintaxe de formatação aceita nos nomes de links.
- +
-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). +
- +
-===== Footnotes ===== +
- +
-You can add footnotes ((This is a footnote)) by using double parentheses. +
- +
-  You can add footnotes ((This is a footnote)) by using double parentheses.+
  
-===== Sectioning =====+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). 
 +===== Notas de Rodapé ===== 
 +Você pode adicionar notas de rodapé ((Isto é uma nota de rodapé)) usando parênteses duplos.
  
-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.+  Você pode adicionar notas de rodapé ((Isto é uma nota de rodapé)) 
 +  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.
  
-==== Headline Level 3 ==== +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 4 === +====== Título de nível 1 ====== 
-== Headline Level 5 ==+===== Título de nível 2 ===== 
 +==== Título de nível 3 ==== 
 +=== Título de nível 4 === 
 +== Título de nível 5 ==
  
-  ==== 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 ==
  
-By using four or more dashes, you can make a horizontal line:+Para incluir uma linha horizontal como a abaixo digite 4 ou mais traços:
  
 ---- ----
 +===== Imagens e Outros Arquivos =====
 +Você pode incluir [[doku>images|imagens]] internas e externas usando chaves. Opcionalmente, o tamanho das imagens pode ser especificado.
  
-===== Media Files =====+Tamanho real:                      {{wiki:dokuwiki-128.png}}
  
-You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.+Tamanho personalizado:             {{wiki:dokuwiki-128.png?50}}
  
-Real size                       {{wiki:dokuwiki-128.png}}+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}}
  
-Resize to given width           {{wiki:dokuwiki-128.png?50}}+Imagem externa redimensionada     {{https://secure.php.net/images/php.gif?200x50}}
  
-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}}+  Tamanho Real                              {{wiki:dokuwiki-128.png}} 
 +  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}}
  
-Resized external image          {{http://de3.php.net/images/php.gif?200x50}} +Usando espaços em branco na direita e na esquerda, você poderá mudar o alinhamento:
- +
-  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:           {{http://de3.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 159: Linha 132:
   {{ wiki:dokuwiki-128.png }}   {{ wiki:dokuwiki-128.png }}
  
-Of courseyou can add a title (displayed as tooltip by most browsers), too.+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).
  
-{{ wiki:dokuwiki-128.png |This is the caption}}+{{ wiki:dokuwiki-128.png |Este é o título}}
  
-  {{ wiki:dokuwiki-128.png |This is the caption}}+  {{ wiki:dokuwiki-128.png |Este é o título}}
  
-For linking an image to another page see [[#Image Links]] above.+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. 
 + 
 +Para linkar uma imagem para outra página, veja o tópico [[#Links com Imagens]] acima. 
 +==== 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> 
 +{{:pdf\manual.pdf|Manual do Sistema}} 
 +</code>
  
-==== Supported Media Formats ==== 
  
-DokuWiki can embed the following media formats directly.+==== Formatos de Mídia Suportados ====
  
-| Image | ''gif'', ''jpg'', ''png'' +O Wiki pode embutir os seguintes formatos de mídia diretamente.
-| Video | ''webm'', ''ogv'', ''mp4''+
-| Audio | ''ogg'', ''mp3'', ''wav'' +
-| Flash | ''swf''                    |+
  
-If you specify a filename that is not a supported media formatthen it will be displayed as a link instead.+| Imagem | ''gif''''jpg'', ''png'' 
 +| Video  | ''webm'', ''ogv'', ''mp4''
 +| Áudio  | ''ogg'', ''mp3'', ''wav'' 
 +| Flash  | ''swf''                    |
  
-By adding ''?linkonly'' you provide a link to the media without displaying it inline+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}} This is just a link to the image.+{{wiki:dokuwiki-128.png?linkonly}} Isto é apenas um link para a imagem.
  
-==== Fallback Formats ====+==== Formatos Avançados ====
  
-Unfortunately not all browsers understand all video and audio formatsTo mitigate the problemyou can upload your file in different formats for maximum browser compatibility.+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.
  
-For example consider this embedded mp4 video:+Por exemplo, considere este vídeo embutido:
  
-  {{video.mp4|A funny video}}+  {{video.mp4|Um vídeo engraçado}}
  
-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.+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.
  
-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.+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.
  
-===== Lists ===== 
  
-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.+===== Listas ===== 
 +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.
  
-  * This is a list +  * Esta é uma lista 
-  * The second item +  * O segundo item 
-    * You may have different levels +    * você pode ter diferentes níveis 
-  * Another item+  * Outro item
  
-  - The same list but ordered +  - A mesma lista porém ordenada 
-  - Another item +  - Outro Item 
-    - Just use indention for deeper levels +    - Simplesmente use endentação para criar níveis 
-  - That's it+  - Último item
  
 <code> <code>
-  * This is a list +  * Esta é uma lista 
-  * The second item +  * O segundo item 
-    * You may have different levels +    * você pode ter diferentes níveis 
-  * Another item+  * Outro item
  
-  - The same list but ordered +  - A mesma lista porém ordenada 
-  - Another item +  - Outro Item 
-    - Just use indention for deeper levels +    - Simplesmente use endentação para criar níveis 
-  - That's it+  - Último item
 </code> </code>
  
-Also take a look at the [[doku>faq:lists|FAQ on list items]]. +Veja também o [[doku>faq:lists|FAQ de listas de itens]]. 
- +===== Conversões de Texto ===== 
-===== Text Conversions ===== +[[doku>DokuWiki]] pode converter certos caracteres ou textos predefinidos em imagens ou em outro texto ou em HTML.
- +
-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 254: Linha 231:
   * FIXME %%  FIXME %%   * FIXME %%  FIXME %%
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
- +===== Conversão de Texto para HTML ===== 
-==== Text to HTML Conversions ==== +[[wiki:Dokuwiki]] pode converter caracteres de texto simples em suas entidades tipograficamente corretasAqui está um exemplo de caracteres reconhecidos.
- +
-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)
-"He thought 'It's a man's world'..."+"Ele disse: 'Aquilo é um frango-d'água'..."
  
 <code> <code>
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
-"He thought 'It's a man's world'..."+"Ele disse: 'Aquilo é um frango-d'água'..."
 </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]]. 
  
-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]].+  Eu pensei que nós deveríamos fazer isto 
 +   
 +  > Nãonão deveríamos 
 +   
 +  >> Bem, eu disse que nós deveríamos 
 +   
 +  > Realmente? 
 +   
 +  >> Sim! 
 +   
 +  >>Então vamos fazer isto!
  
-===== Quoting =====+Eu pensei que nós deveríamos fazer isto
  
-Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:+> Não, não deveríamos
  
-<code> +>> Bem, eu disse que nós deveríamos
-I think we should do it+
  
-> No we shouldn't 
  
->> Well, I say we should+Realmente?
  
-Really?+>> Sim!
  
->> Yes!+>>> Então vamos fazer isto! 
 +===== Tabelas ===== 
 +O Dokuwiki disponibiliza uma sintaxe simples para criação de tabelas. 
  
->>> Then lets do it! +^ Cabeçalho 1       ^ Cabeçalho 2                               ^ Cabeçalho 3       ^ 
-</code>+| Linha 1 Coluna 1  | Linha 1 Coluna 2                          | Linha 1 Coluna 3  | 
 +| Linha 2 Coluna 1  | Linha mesclada (repare o pipeline duplo)                     || 
 +| Linha 3 Coluna 1  | Linha 3 Coluna 2                          | Linha 3 Coluna 3  |
  
-I think we should do it+Linhas de tabelas devem iniciar e terminar com um ''^''(circunflexo) para cabeçalhos e com um ''|''(pipeline) para linhas de dados.
  
-> No we shouldn't+  ^ Cabeçalho 1       ^ Cabeçalho 2       ^ Cabeçalho 3           ^ 
 +  | Linha 1 Coluna 1  | Linha 1 Coluna 2  | Linha 1 Coluna 3      | 
 +  | Linha 2 Coluna 1  | Linha mesclada (repare o pipeline duplo) || 
 +  | Linha 3 Coluna 1  | Linha 3 Coluna 2  | Linha 3 Coluna 3      |
  
->> WellI say we should+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!
  
-> Really?+Cabeçalhos verticais também são possíveis.
  
->> Yes!+|              ^ Cabeçalho 1           ^ Cabeçalho 2       ^ 
 +^ Cabeçalho 3  | Linha 1 Coluna 3      | Linha 1 Coluna 3  | 
 +^ Cabeçalho 4  | Sem mesclar dessa vez |                   | 
 +^ Cabeçalho 5  | Linha 2 Coluna 3      | Linha 2 Coluna 3  |
  
->>> Then lets do it!+Como você pode ver, é o separador de células anterior à célula que decide sobre a formatação:
  
-===== Tables =====+  |              ^ Cabeçalho 1           ^ Cabeçalho 2       ^ 
 +  ^ Cabeçalho 3  | Linha 1 Coluna 3      | Linha 1 Coluna 3  | 
 +  ^ Cabeçalho 4  | Sem mesclar dessa vez |                   | 
 +  ^ Cabeçalho 5  | Linha 2 Coluna 3      | Linha 2 Coluna 3  |
  
-DokuWiki supports a simple syntax to create tables.+Você pode conectar células verticalmente adicionando '':::'' dentro das células abaixo da qual elas devem conectar.
  
-Heading      Heading       Heading          +Cabeçalho          Cabeçalho                        Cabeçalho        
-Row Col 1    | Row 1 Col 2     Row Col        +Linha  Coluna 1    | esta célula expande verticalmente  Linha  Coluna  
-Row Col 1    | some colspan (note the double pipe) || +Linha  Coluna 1    | :::                                Linha  2 Coluna 3  
-Row Col 1    | Row 3 Col     | Row 3 Col        |+Linha  Coluna 1    | :::                                | Linha  Coluna  |
  
-Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.+Estas células não deverão conter nada além da sintaxe de conexão vertical.
  
-  ^ Heading      Heading       Heading          +  ^ Cabeçalho          Cabeçalho                        Cabeçalho        
-  | Row Col 1    | Row 1 Col 2     Row Col        +  | Linha  Coluna 1    | esta célula expande verticalmente  Linha  Coluna  
-  | Row Col 1    | some colspan (note the double pipe) || +  | Linha  Coluna 1    | :::                                Linha  2 Coluna 3  
-  | Row Col 1    | Row 3 Col 2     Row Col 3        |+  | Linha  Coluna 1    | :::                                Linha  2 Coluna  |
  
-To connect cells horizontallyjust make the next cell completely empty as shown aboveBe sure to have always the same amount of cell separators!+Você também pode alinhar o conteúdo da tabelaadicionando dois espaços no lado oposto ao do alinhamento: 
 +  * 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.
  
-Vertical tableheaders are possible, too. +          Tabela com alinhamento         ^^^ 
- +      direita|    centro    |esquerda      | 
-|              Heading 1            Heading 2          ^ +|esquerda            direita|    centro    |
-Heading 3    | Row 1 Col 2          | Row 1 Col 3        | +
-^ Heading 4    no colspan this time                    | +
-^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        | +
- +
-As you can see, it's the cell separator before a cell which decides about the formatting: +
- +
-  |              ^ Heading 1            ^ Heading 2          ^ +
-  ^ Heading 3    Row 1 Col 2          | Row 1 Col 3        | +
-  ^ Heading 4    | no colspan this time |                    | +
-  ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        | +
- +
-You can have rowspans (vertically connected cells) by adding ''%%:::%%'' into the cells below the one to which they should connect. +
- +
-^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ +
-| Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        +
-Row 2 Col 1    | :::                        | Row 2 Col 3        | +
-| Row 3 Col 1    | :::                        | Row 2 Col 3        | +
- +
-Apart from the rowspan syntax those cells should not contain anything else. +
- +
-  ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^ +
-  Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        | +
-  | Row 2 Col 1    | :::                        | Row 2 Col 3        | +
-  | Row 3 Col 1    | :::                        | Row 2 Col 3        | +
- +
-You can align the table contents, too. Just 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. +
- +
-^           Table with alignment           ^^^ +
-|         right|    center    |left          | +
-|left          |         right|    center    |+
 | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-This is how it looks in the source:+Assim que aparede no código-fonte:
  
-  ^           Table with alignment           ^^^ +  ^           Tabela com alinhamento         ^^^ 
-  |         right|    center    |left          +  |       direita|    centro    |esquerda      
-  |left                  right|    center    |+  |esquerda            direita|    centro    |
   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-NoteVertical alignment is not supported. +NotaAlinhamento vertical não é suportado
- +===== Blocos não-interpretados ===== 
-===== No Formatting ===== +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>''.
- +
-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>
-This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.+Este é um texto que contém endereços como este: http://www.Dokuwiki.com.br e **formatação**, mas nada é feito com eles.
 </nowiki> </nowiki>
-The same is true for %%//__this__ text// with a smiley ;-)%%.+O mesmo acontece com %%//__este__ **texto**// com um smiley ;-)%%.
  
   <nowiki>   <nowiki>
-  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.+  Este é um texto que contém endereços como este: http://www.Dokuwiki.com.br e   **formatação**, mas nada é feito com eles.
   </nowiki>   </nowiki>
-  The same is true for %%//__this__ text// with a smiley ;-)%%. +  O mesmo acontece com %%//__este__ **texto**// com um smiley ;-)%%. 
- +===== Blocos de código ===== 
-===== Code Blocks ===== +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''.
- +
-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>
-This is preformatted code all spaces are preservedlike              <-this+Este é um código pré-formatado, todos os espaços são preservadoscomo     <- este
 </code> </code>
  
 <file> <file>
-This is pretty much the same, but you could use it to show that you quoted a file.+Este é exatamente o mesmo mas você deve usá-lo para dizer que citou um arquivo 
 </file> </file>
  
-Those blocks were created by this source: +Estes blocos foram criados pelo seguinte fonte:
- +
-    This is text is indented by two spaces.+
  
   <code>   <code>
-  This is preformatted code all spaces are preservedlike              <-this+  Este é um código pré-formatado, todos os espaços são preservadoscomo     <-este
   </code>   </code>
  
   <file>   <file>
-  This is pretty much the same, but you could use it to show that you quoted a file.+  Este é exatamente o mesmo mas você deve usá-lo para dizer que citou um arquivo 
   </file>   </file>
- +==== Destaque de Sintaxe ==== 
-==== Syntax Highlighting ==== +[[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>''.
- +
-[[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 419: Linha 379:
 </code> </code>
  
-The following language strings are currently recognized: //4cs6502acme6502kickass6502tasm68000devpacabapactionscript-french, actionscript, actionscript3, adaalgol68apacheapplescriptasmaspautoconfautohotkeyautoitavisynthawkbascomavrbashbasic4glbfbibtexblitzbasicbnfboo, c, c_loadrunner, c_mac, caddclcadlispcfdgcfmchaiscriptcilclojurecmakecobolcoffeescriptcppcpp-qtcsharpcsscuesheet, d, dcsdelphidiffdivdosdot, e, epc, ecmascripteiffelemailerlangeuphoriaf1falconfofortranfreebasicfsharpgambasgenerogenie, gdb, glslgmlgnuplotgogroovy, gettext, gwbasichaskellhicesthq9plushtmlhtml5iconidliniinnointercalio, j, java5javajavascriptjquerykixtartklonecklonecpplatexlblispllvmlocobasiclogtalklolcodelotusformulaslotusscriptlscriptlsl2luam68kmagiksfmakemapbasicmatlabmircmodula2modula3, mmix, mpasmmxmlmysqlnewlispnsisoberon2objcobjeckocaml-briefocamloobas, oracle8, oracle11oxygeneozpascalpcre, perl, perl6perpfphp-briefphp, pike, pic16pixelbenderpliplsqlpostgresqlpovraypowerbuilderpowershellproftpdprogressprologpropertiesprovidexpurebasicpyconpython, q, qbasicrailsrebolregrobotsrpmspecrsplusrubysasscalaschemescilabsdlbasicsmalltalksmartysqlsystemverilogtclteratermtextthinbasictsqltyposcriptuniconuscriptvalavbnetvbverilogvhdlvimvisualfoxprovisualprologwhitespace, winbatch, whoisxbasicxmlxorg_confxppyamlz80zxbasic// +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 cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot 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//
- +
-==== Downloadable Code Blocks ====+
  
-When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as aboveyou 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:+Existem [[doku>pt-br:syntax_highlighting|opções avançadas]] adicionais disponíveis para destaque de sintaxe, como realçar linhas ou adicionar números de linha. 
 +==== Blocos de Código Baixáveis ==== 
 +Quando você usa as sintaxes ''%%<code>%%'' ou ''%%<file>%%'' descritas acimapoderá desejar que o código-fonte exibido seja disponibilizado para download. Para isso deve especificar o nome do arquivo após o nome da linguagem de programação desta forma:
  
 <code> <code>
-<file php myexample.php>+<file php exemplo.php>
 <?php echo "hello world!"; ?> <?php echo "hello world!"; ?>
 </file> </file>
 </code> </code>
  
-<file php myexample.php>+<file php exemplo.php>
 <?php echo "hello world!"; ?> <?php echo "hello world!"; ?>
 </file> </file>
  
-If you don't want any highlighting but want a downloadable filespecify a dash (''-''as the language code: ''%%<code - myfile.foo>%%''.+Se você não quiser nenhum destaque no código-fonte mas quiser que o arquivo seja baixáveltroque o nome da linguagem de programação por um traço (''-''assim: ''%%<code - exemplo.php>%%'' ou ''%%<file - exemplo.php>%%''.
  
 +<code>
 +<file - exemplo.php>
 +<?php echo "hello world!"; ?>
 +</file>
 +</code>
 +
 +<file - exemplo.php>
 +<?php echo "hello world!"; ?>
 +</file>
  
-===== Embedding HTML and PHP ===== 
  
-You can embed raw HTML or PHP code into your documents by using the ''%%<html>%%'' or ''%%<php>%%'' tags. (Use uppercase tags if you need to enclose block level elements.)+===== HTML PHP embutido ===== 
 +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.)
  
-HTML example:+Exemplo em HTML:
  
 <code> <code>
 <html> <html>
-This is some <span style="color:red;font-size:150%;">inline HTML</span>+Este é um <span style="color:red;font-size:150%;">HTML em linha</span>
 </html> </html>
 <HTML> <HTML>
-<p style="border:2px dashed red;">And this is some block HTML</p>+<p style="border:2px dashed red;">E este é um bloco HMTL</p>
 </HTML> </HTML>
 </code> </code>
  
 <html> <html>
-This is some <span style="color:red;font-size:150%;">inline HTML</span>+Este é um <span style="color:red;font-size:150%;">HTML em linha</span>
 </html> </html>
 <HTML> <HTML>
-<p style="border:2px dashed red;">And this is some block HTML</p>+<p style="border:2px dashed red;">E este é um bloco HMTL</p>
 </HTML> </HTML>
  
-PHP example:+Exemplo em PHP:
  
 <code> <code>
 <php> <php>
-echo 'The PHP version: '; +echo 'Uma logo gerada pelp PHP:'; 
-echo phpversion(); +echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'
-echo ' (generated inline HTML)';+echo '(HTML gerado em linha)';
 </php> </php>
 <PHP> <PHP>
-echo '<table class="inline"><tr><td>The samebut inside a block level element:</td>'; +echo '<table class="inline"><tr><td>O mesmomas dentro de um elemento de bloco de nível:</td>'; 
-echo '<td>'.phpversion().'</td>';+echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>';
 echo '</tr></table>'; echo '</tr></table>';
 </PHP> </PHP>
Linha 476: Linha 445:
  
 <php> <php>
-echo 'The PHP version: '; +echo 'Uma logo gerada pelp PHP:'; 
-echo phpversion(); +echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'
-echo ' (inline HTML)';+echo '(HTML gerado em linha)';
 </php> </php>
 <PHP> <PHP>
-echo '<table class="inline"><tr><td>The samebut inside a block level element:</td>'; +echo '<table class="inline"><tr><td>O mesmomas dentro de um elemento de bloco de nível:</td>'; 
-echo '<td>'.phpversion().'</td>';+echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" /></td>';
 echo '</tr></table>'; echo '</tr></table>';
 </PHP> </PHP>
  
-**Please Note**HTML and PHP embedding is disabled by default in the configurationIf disabledthe code is displayed instead of executed. +**Nota:** HTML PHP embutidos ficam desabilitados por padrão na configuraçãoQuando desabilitadoso 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 ===== ===== RSS/ATOM Feed Aggregation =====
-[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is usedAll formats understood by SimplePie can be used in DokuWiki as wellYou can influence the rendering by multiple additional space separated parameters:+O Dokuwiki pode integrar com dados externos de XML feeds. [[http://simplepie.org/|SimplePie]] é usado para interpretar os XML feedsTodos os formatos suportados pelo SimplePie podem ser usados no DokuwikiVocê pode influenciar na interpretação através de múltiplos parâmetros adicionais separados por espaço:
  
-Parameter  Description +Parâmetro  Descrição 
-any number will be used as maximum number items to showdefaults to 8 | +//n//        será usado como máximo de itens a serem exibidoso padrão é 8 | 
-| reverse    display the last items in the feed first +| reverse      exibe os últimos itens no início na lista 
-| author     show item authors names +| author       exibe os nome dos autores dos itens 
-| date       show item dates +| date         exibe as datas dos itens 
-| description| show the item descriptionIf [[doku>config:htmlok|HTML]] is disabled all tags will be stripped | +| description  exibe a descrição do item. Se [[doku>wiki:config#htmlok|HTML]] estiver desabilitado todas as tags serão removidas 
-| nosort     | do not sort the items in the feed +| //n//[dhm]   período de atualizaçãoonde d=dias, h=horas, m=minutos. (ex. 12h = 12 horas). |
-| //n//[dhm] | refresh periodwhere d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). |+
  
-The refresh period defaults to hoursAny value below 10 minutes will be treated as 10 minutes[[wiki:DokuWiki]] will generally try to supply a cached version of a pageobviously this is inappropriate when the page contains dynamic external contentThe parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.+O período de atualização por padrão é horasQualquer valor abaixo de 10 minutos será tratado como 10 minutosO Dokuwiki geralmente vai tentar fornecer uma versão em //cache// da páginaclaro que isto é inapropriado quando a página contém conteúdo externo dinâmicoOs parâmetros falam pro Dokuwiki recarregar a página se tiver um período maior que o //período de atualização// desde o último carregamento.
  
-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''+**Exemplo:**
- +
-**Example:**+
  
   {{rss>http://slashdot.org/index.rss 5 author date 1h }}   {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
 {{rss>http://slashdot.org/index.rss 5 author date 1h }} {{rss>http://slashdot.org/index.rss 5 author date 1h }}
 +===== 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:
  
- +Comando  ^ Descrição                                                                                                                                                                                 
-===== Control Macros ===== +|%%~~NOTOC~~%%    Se este controle for encontrado na páginaa Tabela de Conteúdos não será criada                                                                                                          
- +|%%~~NOCACHE~~%%  DokuWiki faz //cache// de todas as páginas por padrãoEm alguns casos isto pode não ser desejávelAdicionar este controle forçará o DokuWiki a interpretar a página em cada chamada.  |
-Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: +
- +
-Macro           Description | +
-| %%~~NOTOC~~%%   If this macro is found on the pageno table of contents will be created +
-| %%~~NOCACHE~~%% | DokuWiki caches all output by defaultSometimes this might not be wanted (egwhen the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender page on every call | +
- +
-===== Syntax Plugins ===== +
- +
-DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation: +
- +
-~~INFO:syntaxplugins~~ +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
pt-br/wiki/syntax.1447266037.txt.gz · Última modificação: 2015-11-11 19:20 por 201.77.112.33

Exceto onde for informado ao contrário, o conteúdo neste wiki está sob a seguinte licença: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki