Herramientas de usuario

Herramientas del sitio


wiki:syntax

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
Próxima revisión Ambos lados, revisión siguiente
wiki:syntax [2014/05/28 01:44]
127.0.0.1 editor externo
wiki:syntax [2016/01/20 08:21]
admin
Línea 1: Línea 1:
-====== Formatting Syntax ======+====== Sintaxis de Formato ======
  
-[[doku>DokuWiki]] supports some simple markup languagewhich tries to make the datafiles to be as readable as possibleThis page contains all possible syntax you may use when editing the pagesSimply 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.+[[DokuWiki]] soporta un lenguaje de marcas simple, que intenta hacer los ficheros de datos tan legibles como sea posibleEsta página contiene un resumen de las posibles opciones que puedes usar a la hora de editar las páginas((El listado completo de estas opciones está en [[https://www.dokuwiki.org/es:syntax|www.dokuwiki.org/es:syntax]])). Simplemente, observa el código de esta página pulsando sobre //Editar esta página// en la parte superior y en la parte inferior de la página. Si quieres intentar algousa [[playground:playground|la página de pruebas]]. Las marcas más simples también se encuentran accesibles mediante [[doku>es:toolbar]].
  
-===== Basic Text Formatting =====+===== Formato básico de texto =====
  
-DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' textsOf course you can **__//''combine''//__** all these.+DokuWiki soporta **negritas**, //cursivas//, __subrayados__ y texto ''monoespaciado''Por supuesto, puedes **__//''combinarlos''//__** todos.
  
-  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts+  DokuWiki soporta **negritas**, //cursivas//, __subrayados__ y texto ''monoespaciado''.  
-  Of course you can **__//''combine''//__** all these.+  Por supuesto, puedes **__//''combinarlos''//__** todos.
  
-You can use <sub>subscript</suband <sup>superscript</sup>, too.+Del mismo modo, también puedes marcar algo como <del>tachado</del>.
  
-  You can use <sub>subscript</suband <sup>superscript</sup>, too.+  Del mismo modo, también puedes marcar algo como <del>borrado</del>.
  
-You can mark something as <del>deleted</del> as well.+Los **párrafos** se crean a partir de líneas en blanco. Si quieres **forzar un salto de línea** sin un párrafo, puedes usar dos barras invertidas seguidas por un espacio en blanco o el final de la línea.
  
-  You can mark something as <del>deleted</del> as well.+Esto es un texto con algunos saltos de línea.\\ Advierte que las 
 +dos barras invertidas son reconocidas solamente al final de una línea\\ 
 +o cuando están seguidas de\\ un espacio en blanco \\Esto sucede sin él.
  
-**Paragraphs** are created from blank linesIf you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line.+  Esto es un texto con algunos saltos de línea.\\ Advierte que las  
 +  dos barras invertidas son reconocidas solamente al final de una línea\\ 
 +  o cuando están seguidas de\\ un espacio en blanco \\Esto sucede sin él.
  
-This is some text with some linebreaks\\ Note that the +Solamente deberías forzar saltos de línea cuando realmente lo necesites.
-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.+===== Enlaces =====
  
-===== Links =====+DokuWiki soporta múltiples formas de crear enlaces. 
 +==== Externos ====
  
-DokuWiki supports multiple ways of creating links.+Los enlaces externos se reconocen automáticamente: http://www.google.com o simplemente www.google.com - También puedes establecer enlaces con un nombre: [[http://www.google.com|Este enlace apunta a google]]. Las direcciones de correo electrónico como ésta: <andi@splitbrain.org> también son reconocidas.
  
-==== External ====+  Dokuwiki soporta múltiples formas de crear enlaces. Los enlaces externos se reconocen  
 +  automáticamente: http://www.google.com o simplemente www.google.com - También puedes 
 +  establecer enlaces con nombre: [[http://www.google.com|Este enlace apunta a google]].  
 +  Las direcciones de correo electrónico como ésta: <andi@splitbrain.org>  
 +  también son reconocidas.
  
-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. 
  
-  DokuWiki supports multiple ways of creating links. External links are recognized +==== Internos ====
-  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 ====+Los enlaces internos se crean mediante corchetes. Puedes tanto simplemente usar [[doku>pagename]] como usar el extendido[[doku>pagename|Texto de título]]. Los nombres de páginas wiki son convertidos a minúsculas automáticamente y no se permiten caracteres especiales.
  
-Internal links are created by using square bracketsYou can either just give a [[pagename]] or use an additional [[pagename|link text]]. +  Los enlaces internos se crean mediante corchetesPuedes tanto simplemente usar [[doku>pagename]]  
- +  como usar el extendido[[doku>pagename|Texto de título]]. Los nombres de páginas wiki son convertidos 
-  Internal links are created by using square brackets. You can either just give +  a minúsculas automáticamente y no se permiten caracteres especiales
-  a [[pagename]] or use an additional [[pagename|link text]]. +   
- +Puedes usar [[namespaces]] mediante dos puntos en el nombre de la página.
-[[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 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. +
- +
-==== 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]]. +
- +
-  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 ====+  Puedes usar [[namespaces]] mediante dos puntos en el nombre de la página.
  
-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]].+Para más detalles sobre espacios de nombres mira [[doku>namespaces]].
  
-  Windows Shares like [[\\server\share|this]] are recognized, too.+Es también posible enlazar con una sección específica. Basta con añadir el nombre de sección detrás de una almohadilla, como se hace en HTML. Esto enlaza a [[syntax#internos|Esta sección]].
  
-Notes:+  Esto enlaza a [[syntax#internos|Esta sección]].
  
-  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). +Notas:
-  * 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/userscript.js'':+
  
-  LANG.nosmblinks = '';+  * Los enlaces a [[syntax|páginas existentes]] se muestran de forma diferente a los [[no existentes]]. 
 +  * DokuWiki no utiliza [[wp>CamelCase]] para crear enlaces automáticamente por defecto, pero este comportamiento puede ser habilitado en el fichero [[doku>config]]. Truco: Si DokuWiki es un enlace, entonces está habilitado. 
 +  * Cuando se cambia el encabezamiento de una sección, su bookmark también cambia. Así que no dependas demasiado del enlace de secciones.
  
 ==== Image Links ==== ==== Image Links ====
Línea 170: Línea 147:
  
 If you specify a filename that is not a supported media format, then it will be displayed as a link instead. If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
 +
 +By adding ''?linkonly'' you provide a link to the media without displaying it inline
 +
 +  {{wiki:dokuwiki-128.png?linkonly}}
 +
 +{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.
  
 ==== Fallback Formats ==== ==== Fallback Formats ====
Línea 262: Línea 245:
 Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
  
-  I think we should do it +<code> 
-   +I think we should do it 
-  > No we shouldn'+ 
-   +> No we shouldn'
-  >> Well, I say we should + 
-   +>> Well, I say we should 
-  > Really? + 
-   +> Really? 
-  >> Yes! + 
-   +>> Yes! 
-  >>> Then lets do it!+ 
 +>>> Then lets do it! 
 +</code>
  
 I think we should do it I think we should do it
Línea 318: Línea 303:
   ^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |   ^ 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.+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          ^ ^ Heading 1      ^ Heading 2                  ^ Heading 3          ^
Línea 482: Línea 467:
 | date       | show item dates | | date       | show item dates |
 | description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all tags will be stripped | | description| show the item description. If [[doku>config:htmlok|HTML]] is disabled all 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). | | //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: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. 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.
 +
 +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''.
  
 **Example:** **Example:**
wiki/syntax.txt · Última modificación: 2022/11/16 21:50 (editor externo)