pt-br:wiki:syntax
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
pt-br:wiki:syntax [2015-11-11 19:20] – 201.77.112.33 | pt-br:wiki:syntax [2023-05-23 21:17] (atual) – [Sintaxe de Formatação] nerun | ||
---|---|---|---|
Linha 1: | Linha 1: | ||
- | Boa tarde, pensei | + | ====== Sintaxe de Formatação ====== |
+ | O Dokuwiki suporta algumas linguagens de marcação bem simples | ||
+ | ===== Formatação Básica de Texto ===== | ||
+ | O Dokuwiki suporta textos | ||
- | ====== Formatting Syntax ====== | + | O Dokuwiki suporta textos em **negrito**, |
+ | // | ||
+ | Obviamente, você poderá **__//'' | ||
+ | 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: | + | Você também pode usar <sub>texto subscrito</ |
- | ===== Basic Text Formatting ===== | + | Você também pode usar < |
- | DokuWiki supports **bold**, | + | Você poderá marcar algo como < |
- | | + | |
- | Of course you can **__//'' | + | |
- | You can use < | + | **Parágrafos** são criados a partir de linhas em branco. Se quiser **forçar a quebra de linha** sem um novo parágrafo, você poderá usar duas barras (\\) seguidas do fim da linha ou de um espaço em branco. |
- | You can use < | + | 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 < | + | Este é um texto com algumas quebras de linha\\ Note que as |
- | + | | |
- | You can mark something as < | + | |
- | + | ||
- | **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. | + | |
- | + | ||
- | | + | |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | | + | |
- | + | ||
- | 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: | ||
- | DokuWiki supports multiple ways of creating | + | Links externos são reconhecidos automaticamente: |
+ | ou simplesmente www.google.com - Você também pode rotular os links: | ||
+ | [[http:// | ||
+ | Endereços de e-mail como este: < | ||
+ | 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, | ||
- | ==== External ==== | + | Links internos são criados usando colchetes. Você pode apenas fornecer |
+ | o [[doku> | ||
+ | [[doku> | ||
+ | wiki são convertidos para minúsculo automaticamente e | ||
+ | caracteres especiais(espaço, | ||
- | External links are recognized automagically: | + | Você pode usar [[namespaces:]] acrescentando |
- | | + | |
- | automagically: | + | |
- | link text as well: [[http:// | + | |
- | addresses like this one: < | + | |
- | ==== Internal ==== | + | // |
+ | [[namespaces|Clique aqui]] para saber mais sobre [[namespaces]]. | ||
- | Internal links are created by using square brackets. You 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ágina. Basta adicionar o nome da seção após um caractere de cerquilha (#) igual como é no HTML. Este link aponta para [[#internos|seção Internos]]. |
- | | + | |
- | a [[pagename]] or use an additional [[pagename|link text]]. | + | |
- | [[doku> | + | Notas: |
- | + | ||
- | You can use [[some:namespaces]] by using a colon in the pagename. | + | |
- | + | ||
- | You can use [[some: | + | |
- | + | ||
- | For details about namespaces see [[doku> | + | |
- | + | ||
- | 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# | + | |
- | + | ||
- | This links to [[syntax# | + | |
- | + | ||
- | Notes: | + | |
- | + | ||
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | |
- | * DokuWiki does not use [[wp> | + | |
- | * When a section' | + | |
+ | * Links para [[pt-br: | ||
+ | * 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 | + | O Dokuwiki suporta links [[doku>interwiki|Interwiki]], que são links rápidos com outros wikis. Este é um exemplo de link para a página sobre Wikis da Wikipedia: [[wp> |
- | | + | |
- | | + | |
- | + | | |
- | ==== Windows Shares | + | ==== Links com Imagens |
- | + | Você também poderá usar uma imagem para linkar outra página interna ou externa combinando | |
- | 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> | + | |
- | + | ||
- | 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:// | + | |
- | <?php | + | |
- | /** | + | |
- | * Customization of the english language file | + | |
- | * Copy only the strings that needs to be modified | + | |
- | */ | + | |
- | $lang[' | + | |
- | </ | + | |
- | + | ||
- | ==== 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:// | [[http:// | ||
Linha 103: | Linha 77: | ||
[[http:// | [[http:// | ||
- | Please note: The 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 [[# | + | |
- | + | ||
- | ===== 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 [[# |
+ | ===== 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 content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string | + | 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 | ||
- | ==== Headline Level 3 ==== | + | O documento [[: |
- | === Headline Level 4 === | + | ====== Título de nível 1 ====== |
- | == Headline Level 5 == | + | ===== Título de nível 2 ===== |
+ | ==== Título de nível | ||
+ | === Título de nível | ||
+ | == Título de nível | ||
- | ==== 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 |
+ | === Título de nível | ||
+ | == Título de nível | ||
- | By using four or more dashes, you can make a horizontal | + | Para incluir uma linha horizontal |
---- | ---- | ||
+ | ===== Imagens e Outros Arquivos ===== | ||
+ | Você pode incluir [[doku> | ||
- | ===== Media Files ===== | + | Tamanho real: {{wiki: |
- | You can include external and internal [[doku> | + | Tamanho personalizado: |
- | Real size: {{wiki: | + | 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: |
- | Resize to given width: {{wiki:dokuwiki-128.png?50}} | + | Imagem externa redimensionada: {{https://secure.php.net/ |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | Tamanho Real: |
+ | Redimensionada para uma largura específica: | ||
+ | Redimensionada para uma altura específica: | ||
+ | Imagem externa redimensionada: | ||
- | Resized external image: {{http:// | + | Usando espaços em branco na direita e na esquerda, você poderá mudar o alinhamento: |
- | + | ||
- | Real size: {{wiki: | + | |
- | Resize to given width: | + | |
- | Resize to given width and height: {{wiki: | + | |
- | Resized external image: | + | |
- | + | ||
- | + | ||
- | By using left or right whitespaces you can choose the alignment. | + | |
{{ wiki: | {{ wiki: | ||
Linha 159: | Linha 132: | ||
{{ wiki: | {{ wiki: | ||
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | Obviamente, você também pode trocar o título da imagem |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | For linking an image to another page see [[#Image Links]] | + | Se você especificar um nome de arquivo (externo ou interno) que não seja uma imagem ('' |
+ | |||
+ | Para linkar uma imagem para outra página, veja o tópico | ||
+ | ==== 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: | ||
+ | |||
+ | < | ||
+ | {{: | ||
+ | </ | ||
- | ==== Supported Media Formats ==== | ||
- | DokuWiki can embed the following media formats directly. | + | ==== Formatos de Mídia Suportados ==== |
- | | Image | '' | + | O Wiki pode embutir os seguintes formatos de mídia diretamente. |
- | | Video | '' | + | |
- | | Audio | '' | + | |
- | | Flash | '' | + | |
- | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | | Imagem | '' |
+ | | Video | '' | ||
+ | | Áudio | ||
+ | | Flash | '' | ||
- | By adding | + | Se você especificar um nome de arquivo que não é suportado, então ele será exibido como um link. |
+ | |||
+ | Adicionando | ||
{{wiki: | {{wiki: | ||
- | {{wiki: | + | {{wiki: |
- | ==== Fallback Formats | + | ==== Formatos Avançados |
- | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | + | Infelizmente nem todos os navegadores entendem todos os formatos de videos e de áudio. Para mitigar este problema, você 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 | + | Quando você faz o upload |
- | Additionally | + | Além disso, o DokuWiki |
- | ===== Lists ===== | ||
- | Dokuwiki | + | ===== Listas ===== |
+ | O Dokuwiki | ||
- | * This is a list | + | * Esta é uma lista |
- | * The second | + | * O segundo |
- | * You may have different levels | + | * você pode ter diferentes níveis |
- | * Another | + | * Outro item |
- | - The same list but ordered | + | - A mesma lista porém ordenada |
- | - Another item | + | - Outro Item |
- | - Just use indention for deeper levels | + | - Simplesmente |
- | - That's it | + | - Último item |
< | < | ||
- | * This is a list | + | * Esta é uma lista |
- | * The second | + | * O segundo |
- | * You may have different levels | + | * você pode ter diferentes níveis |
- | * Another | + | * Outro item |
- | - The same list but ordered | + | - A mesma lista porém ordenada |
- | - Another item | + | - Outro Item |
- | - Just use indention for deeper levels | + | - Simplesmente |
- | - That's it | + | - Último item |
</ | </ | ||
- | Also take a look at the [[doku> | + | Veja também o [[doku> |
- | + | ===== Conversões de Texto ===== | |
- | ===== Text Conversions | + | O [[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, | + | |
- | + | ||
- | ==== Text to Image Conversions ==== | + | |
- | + | ||
- | DokuWiki converts commonly used [[wp> | + | |
+ | 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> | ||
* 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 | + | O [[wiki: |
- | + | ||
- | Typography: | + | |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought | + | "Ele disse: |
< | < | ||
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought | + | "Ele disse: |
</ | </ | ||
+ | ===== 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> | ||
- | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | + | Eu pensei que nós deveríamos fazer isto |
+ | |||
+ | > Não, nã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' | ||
- | >> Well, I say we should | + | > Realmente? |
- | > Really? | + | >> Sim! |
- | >> | + | >>> Então vamos fazer isto! |
+ | ===== Tabelas ===== | ||
+ | O Dokuwiki disponibiliza uma sintaxe simples para criação de tabelas. | ||
- | >>> | + | ^ 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 | | ||
- | I think we should do it | + | Linhas de tabelas devem iniciar e terminar com um '' |
- | > No we shouldn' | + | ^ 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 | | ||
- | >> Well, I say we should | + | Para conectar células horizontalmente, apenas 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 | | ||
- | >>> | + | 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 '':::'' |
- | ^ Heading | + | ^ Cabeçalho |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | | Linha |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Linha |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | | Linha |
- | Table rows have to start and end with a '' | + | Estas células não deverão conter nada além da sintaxe de conexão vertical. |
- | ^ Heading | + | ^ Cabeçalho |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | | Linha |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | Linha |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | + | | Linha |
- | To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators! | + | Você também pode alinhar o conteúdo da tabela, adicionando 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| | |
- | | | + | |esquerda |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | ^ Heading 4 | + | |
- | ^ 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 | + | |
- | ^ 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 '' | + | |
- | + | ||
- | ^ 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 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 | + | |
- | | | + | |
- | |left | right| | + | |
| 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| | + | | direita| |
- | |left | + | |esquerda |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | Note: Vertical alignment is not supported. | + | Nota: Alinhamento vertical não é suportado. |
- | + | ===== Blocos não-interpretados | |
- | ===== No Formatting | + | Se você precisar exibir um texto sem formatação exatamente como digitado, delimite o texto com a tag '' |
- | + | ||
- | If you need to display text exactly like it is typed (without any formatting), enclose the area either with '' | + | |
< | < | ||
- | 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. |
</ | </ | ||
- | 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 anteriores) ou usando as tags '' |
- | + | ||
- | You can include code blocks into your documents by either indenting them by at least two spaces | + | |
- | + | ||
- | This is text is indented by two spaces. | + | |
< | < | ||
- | This is preformatted code all spaces are preserved: like | + | Este é um código pré-formatado, |
</ | </ | ||
< | < | ||
- | 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. |
</ | </ | ||
- | Those blocks were created by this source: | + | Estes blocos foram criados pelo seguinte fonte: |
- | + | ||
- | This is text is indented by two spaces. | + | |
< | < | ||
- | | + | |
</ | </ | ||
< | < | ||
- | | + | |
</ | </ | ||
- | + | ==== Destaque de Sintaxe | |
- | ==== Syntax Highlighting | + | [[wiki: |
- | + | ||
- | [[wiki: | + | |
<code java> | <code java> | ||
Linha 419: | Linha 379: | ||
</ | </ | ||
- | The following language strings are currently recognized: //4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript-french, actionscript, | + | As seguintes linguagens são reconhecidas: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 |
- | + | ||
- | ==== Downloadable Code Blocks ==== | + | |
- | When you use the '' | + | Existem [[doku> |
+ | ==== Blocos de Código Baixáveis ==== | ||
+ | Quando você usa as sintaxes | ||
< | < | ||
- | <file php myexample.php> | + | <file php exemplo.php> |
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
</ | </ | ||
</ | </ | ||
- | <file php myexample.php> | + | <file php exemplo.php> |
<?php echo "hello world!"; | <?php echo "hello world!"; | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | 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 |
+ | < | ||
+ | <file - exemplo.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <file - exemplo.php> | ||
+ | <?php echo "hello world!"; | ||
+ | </ | ||
- | ===== Embedding HTML and PHP ===== | ||
- | You can embed raw HTML or PHP code into your documents by using the '' | + | ===== HTML e PHP embutido ===== |
+ | Você pode embutir HTML e PHP puros dentro de seus documentos usando as tags '' | ||
- | HTML example: | + | Exemplo em HTML: |
< | < | ||
< | < | ||
- | This is some <span style=" | + | Este é um <span style=" |
</ | </ | ||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
</ | </ | ||
< | < | ||
- | This is some <span style=" | + | Este é um <span style=" |
</ | </ | ||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
- | PHP example: | + | Exemplo em PHP: |
< | < | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Uma logo gerada pelp PHP:'; |
- | echo phpversion(); | + | echo '< |
- | echo ' (generated inline | + | echo ' |
</ | </ | ||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
Linha 476: | Linha 445: | ||
<php> | <php> | ||
- | echo 'The PHP version: '; | + | echo 'Uma logo gerada pelp PHP:'; |
- | echo phpversion(); | + | echo '< |
- | echo ' (inline | + | echo ' |
</ | </ | ||
<PHP> | <PHP> | ||
- | echo '< | + | echo '< |
- | echo '< | + | echo '< |
echo '</ | echo '</ | ||
</ | </ | ||
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | + | **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, |
===== RSS/ATOM Feed Aggregation ===== | ===== RSS/ATOM Feed Aggregation ===== | ||
- | [[DokuWiki]] can integrate data from external | + | O Dokuwiki pode integrar com dados externos de XML feeds. |
- | ^ Parameter | + | ^ Parâmetro |
- | | any number | + | | //n// |
- | | reverse | + | | reverse |
- | | author | + | | author |
- | | date | + | | date |
- | | description| | + | | description |
- | | nosort | + | | // |
- | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | + | |
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: | + | 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 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 '' | + | **Exemplo:** |
- | + | ||
- | **Example:** | + | |
{{rss> | {{rss> | ||
{{rss> | {{rss> | ||
+ | ===== 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 | |
- | ===== Control Macros ===== | + | |%%~~NOTOC~~%% |
- | + | |%%~~NOCACHE~~%% | |
- | Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble: | + | |
- | + | ||
- | ^ Macro ^ Description | | + | |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | DokuWiki | + | |
- | + | ||
- | ===== Syntax Plugins ===== | + | |
- | + | ||
- | DokuWiki' | + | |
- | + | ||
- | ~~INFO: | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
pt-br/wiki/syntax.1447266037.txt.gz · Última modificação: 2015-11-11 19:20 por 201.77.112.33