- Todo sobre EDDIY
- Participa
- Soluciones
- Peticiones realizadas
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa | ||
wiki:syntax [2010/01/17 11:35] 127.0.0.1 editor externo |
wiki:syntax [2010/10/19 13:31] (actual) |
||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | ====== | + | ====== |
- | [[doku>DokuWiki]] | + | [[DokuWiki]] |
- | ===== Basic Text Formatting | + | ===== Formato básico de texto ===== |
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | |
- | You can use <sub>subscript</ | + | También puedes usar <sub>subíndices</ |
- | | + | |
- | You can mark something as <del>deleted</ | + | Del mismo modo, también puedes marcar algo como <del>borrado</ |
- | | + | |
- | **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. | + | Los **párrafos** se crean a partir de líneas en blanco. Si quieres |
- | This is some text with some linebreaks\\ Note that the | + | Esto es un texto con algunos saltos de línea.\\ Advierte que las |
- | two backslashes are only recognized at the end of a line\\ | + | dos barras invertidas son reconocidas solamente al final de una línea\\ |
- | or followed by\\ a whitespace | + | o cuando están seguidas de\\ un espacio en blanco |
- | | + | |
- | | + | |
- | | + | |
- | You should use forced newlines only if really needed. | + | Solamente deberías forzar saltos de línea cuando realmente lo necesites. |
- | ===== Links ===== | ||
- | DokuWiki supports multiple ways of creating links. | + | ===== Enlaces ===== |
- | ==== External | + | DokuWiki soporta múltiples formas de crear enlaces. |
+ | ==== Externos | ||
- | External links are recognized automagically: http:// | + | Los enlaces externos se reconocen automáticamente: http:// |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
+ | también son reconocidas. | ||
- | ==== Internal ==== | ||
- | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | ==== Internos ==== |
- | Internal links are created by using square brackets. You can either just give | + | Los enlaces internos se crean mediante corchetes. Puedes tanto simplemente usar [[doku>pagename]] |
- | a [[pagename]] | + | |
- | [[doku> | + | Los enlaces internos se crean mediante corchetes. Puedes tanto simplemente usar [[doku> |
+ | como usar el extendido[[doku> | ||
+ | a minúsculas automáticamente y no se permiten caracteres especiales. | ||
+ | |||
+ | Puedes usar [[namespaces]] mediante dos puntos en el nombre de la página. | ||
- | You can use [[some:namespaces]] | + | Puedes usar [[namespaces]] |
- | You can use [[some:namespaces]] | + | Para más detalles sobre espacios de nombres mira [[doku>namespaces]]. |
- | For details about namespaces see [[doku> | + | 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, |
- | 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]]. | + | Esto enlaza |
- | This links to [[syntax# | + | Notas: |
- | Notes: | + | |
- | + | * DokuWiki | |
- | | + | * Cuando se cambia el encabezamiento de una sección, su bookmark |
- | * DokuWiki | + | |
- | * When a section' | + | |
==== Interwiki ==== | ==== Interwiki ==== | ||
- | DokuWiki | + | DokuWiki |
- | DokuWiki | + | DokuWiki |
- | | + | |
+ | ==== Recursos compartidos de Windows ==== | ||
- | ==== Windows | + | Los recursos compartidos de Windows |
- | Windows | + | Los recursos compartidos de Windows |
- | + | ||
- | | + | Nota: |
- | Notes: | + | * Por motivos de seguridad, la navegación directa por recursos compartidos solamente funciona en Microsoft Internet Explorer. |
+ | * Para Mozilla y Firefox puede ser habilitada a través de una opción de configuración [[http:// | ||
+ | * Ver [[bug> | ||
- | * 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:// | ||
- | ==== Image Links ==== | + | ==== Enlaces imagen |
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | + | También puedes usar una imagen como enlace a otra página externa o interna combinando la sintaxis de enlaces e imágenes |
[[http:// | [[http:// | ||
Línea 96: | Línea 98: | ||
[[http:// | [[http:// | ||
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | Por favor, ten en cuenta que el formato de imagen es la única sintaxis de formato aceptada en los nombres de enlace. |
- | The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported | + | Está soportada la sintaxis completa de [[#imagenes_y_otros_ficheros|imagen]] y [[#enlaces|enlace]] (incluyendo modificar el tamaño de la imagen, e imágenes, URLs y enlaces |
- | ===== Footnotes | + | ===== Notas al pie ===== |
- | You can add footnotes | + | Puedes añadir notas al pie ((Esto es una nota al pie)) usando paréntesis dobles. |
- | | + | |
- | ===== Sectioning | + | ===== Secciones |
- | 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 | + | Puedes usar hasta cinco niveles de encabezado distintos para estructurar tus contenidos. Si tienes más de tres encabezados, un índice se genera automáticamente |
- | ==== Headline Level 3 ==== | + | ==== Titular Nivel 3 ==== |
- | === Headline Level 4 === | + | === Titular Nivel 4 === |
- | == Headline Level 5 == | + | == Titular Nivel 5 == |
- | ==== Headline Level 3 ==== | + | ==== Titular Nivel 3 ==== |
- | === Headline Level 4 === | + | === Titular Nivel 4 === |
- | == Headline Level 5 == | + | == Titular Nivel 5 == |
- | By using four or more dashes, you can make a horizontal | + | Usando cuatro o más guiones, puedes hacer una línea |
---- | ---- | ||
- | ===== Images and Other Files ===== | + | ===== Imágenes y otros ficheros |
- | You can include external and internal | + | Puedes incluir |
- | Real size: {{wiki: | + | Tamaño real: {{wiki: |
- | Resize to given width: {{wiki: | + | Redimensionando el ancho: |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | Redimensionando altura y ancho: |
- | Resized external image: | + | Imagen externa redimensionada: {{http:// |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | Usando espacios en blanco a derecha o izquierda puedes escoger el alineamiento: | |
- | By using left or right whitespaces you can choose the alignment. | + | |
{{ wiki: | {{ wiki: | ||
Línea 152: | Línea 153: | ||
{{ wiki: | {{ wiki: | ||
- | Of course, you can add a title (displayed as a tooltip | + | Naturalmente, también puedes añadir un título |
- | {{ wiki: | + | {{ wiki: |
- | {{ wiki: | + | {{ wiki: |
- | If you specify a filename | + | Si especificas un nombre de fichero |
- | For linking an image to another page see [[#Image Links]] above. | + | Para enlazar una imagen a otra página ver mas arriba en [[#Enlaces imagen]]. |
- | ===== Lists ===== | ||
- | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | ||
- | * This is a list | ||
- | * The second item | ||
- | * You may have different levels | ||
- | * Another item | ||
- | | + | |
- | - Another item | + | ===== Listas ===== |
- | - Just use indention for deeper levels | + | |
- | - That's it | + | Dokuwiki soporta listas ordenadas y desordenadas. Para crear un elemento de lista, indenta tu texto con dos espacios y usa un '' |
+ | |||
+ | * Esto es una lista | ||
+ | * El segundo elemento | ||
+ | * Puedes tener diferentes niveles | ||
+ | * Otro elemento | ||
+ | |||
+ | - La misma lista pero ordenada | ||
+ | - Otro elemento | ||
+ | - Basta con usar sangría para obtener niveles más anidados | ||
+ | - Eso es | ||
< | < | ||
- | * This is a list | + | * Esto es una lista |
- | * The second item | + | * El segundo elemento |
- | * You may have different levels | + | * Puedes tener diferentes niveles |
- | * Another item | + | * Otro elemento |
- | - The same list but ordered | + | - La misma lista pero ordenada |
- | - Another item | + | - Otro elemento |
- | - Just use indention for deeper levels | + | - Basta con usar indentación para obtener niveles más anidados |
- | - That's it | + | - Eso es |
</ | </ | ||
- | Also take a look at the [[doku> | ||
- | ===== Text Conversions ===== | ||
- | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | + | ===== Smileys ===== |
- | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | + | DokuWiki |
- | + | ||
- | ==== Text to Image Conversions ==== | + | |
- | + | ||
- | DokuWiki | + | |
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
Línea 221: | Línea 220: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ==== Text to HTML Conversions | + | ===== Tipografía ===== |
- | Typography: | + | [[DokuWiki]] |
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought | + | "El pensó |
< | < | ||
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
- | "He thought | + | "El pensó |
</ | </ | ||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | Por favor, advierte: Estas conversiones pueden ser deshabilitadas en las opciones de configuración. |
- | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), ' | + | ===== Citas ===== |
- | ===== Quoting ===== | + | A veces desea marcar algún texto para indicar que es una respuesta o comentario. Puede usar la siguiente sintaxis: |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | Pienso que deberíamos hacerlo |
- | + | ||
- | I think we should do it | + | |
| | ||
- | > No we shouldn' | + | > No deberíamos |
| | ||
- | >> | + | >> |
| | ||
- | > Really? | + | > En serio? |
| | ||
- | >> | + | >> |
| | ||
- | >>> | + | >>> |
- | I think we should do it | + | Pienso que deberíamos hacerlo |
- | > No we shouldn' | + | > No deberíamos |
- | >> | + | >> |
- | > Really? | + | > En serio? |
- | >> | + | >> |
- | >>> | + | >>> |
- | ===== Tables | + | ===== Tablas |
- | DokuWiki | + | DokuWiki |
- | ^ Heading | + | ^ Encabezado |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Fila 1 Col 1 |
- | | Row 2 Col 1 | some colspan | + | | Fila 2 Col 1 |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Fila 3 Col 1 |
- | Table rows have to start and end with a '' | + | Las filas tienen que empezar y terminar con un '' |
- | ^ Heading | + | ^ Encabezado |
- | | Row 1 Col 1 | Row 1 Col 2 | + | | Fila 1 Col 1 |
- | | Row 2 Col 1 | some colspan | + | | Fila 2 Col 1 |
- | | Row 3 Col 1 | Row 3 Col 2 | + | | Fila 3 Col 1 |
- | 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! | + | Para conectar celdas horizontalmente, haz la celda siguiente completamente vacía como se muestra arriba. ¡Asegúrate de tener siempre el mismo número de separadores de celda! |
- | Vertical tableheaders are possible, too. | + | Los encabezados verticales también son posibles. |
- | | ^ Heading | + | | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | As you can see, it's the cell separator before a cell which decides about the formatting: | + | Como puedes ver, el separador de celda antes de una celda es quien decide cómo es el formato: |
- | | ^ Heading | + | | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | ^ Heading | + | ^ Encabezado |
- | You can have rowspans | + | Puedes combinar celdas verticalmente |
- | ^ Heading | + | ^Encabezado |
- | | Row 1 Col 1 | this cell spans vertically | + | |Fila 1 Columna |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | |Fila 2 Columna |
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | |Fila 3 Columna |
- | Apart from the rowspan syntax those cells should not contain anything else. | + | < |
+ | ^Encabezado 1 | ||
+ | |Fila 1 Columna 1 |Esta celda se combina verticalmente |Fila 1 Columna 3 | | ||
+ | |Fila 2 Columna 1 | ||
+ | |Fila 3 Columna 1 | ||
+ | </ | ||
- | ^ 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. | + | También puedes alinear los contenidos de la tabla. Basta con añadir al menos dos espacios en blanco en el lado opuesto de tu texto: Añade dos espacios a la izquierda para alinear a la derecha, dos espacios a la derecha para alinear a la izquierda y dos espacios en cada extremo para obtener texto centrado. |
- | ^ Table with alignment | + | ^ Tabla con alineamiento |
- | | right| | + | | derecha| |
- | |left | + | |izquierda |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | This is how it looks in the source: | + | Así es como aparece en el fuente: |
- | ^ Table with alignment | + | ^ Tabla con alineamiento |
- | | right| | + | | derecha| |
- | |left | + | |izquierda |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
- | Note: Vertical alignment is not supported. | ||
- | |||
- | ===== No Formatting ===== | ||
- | |||
- | If you need to display text exactly like it is typed (without any formatting), | ||
- | |||
- | < | ||
- | This is some text which contains addresses like this: http:// | ||
- | </ | ||
- | The same is true for %%// | ||
- | |||
- | < | ||
- | This is some text which contains addresses like this: http:// | ||
- | </ | ||
- | The same is true for %%// | ||
- | |||
- | ===== Code Blocks ===== | ||
- | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | ===== Bloques no analizados ===== |
- | This is text is indented by two spaces. | + | Puedes incluir en en tus documentos bloques sin analizar tanto indentando con al menos dos espacios (como se ha usado en los ejemplos anteriores) o usando las etiquetas '' |
< | < | ||
- | This is preformatted code all spaces are preserved: like <-this | + | Esto es código preformateado, |
</ | </ | ||
< | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | Esto es muy parecido, pero podrías usarlo para indicar que estás mostrando un fichero. |
</ | </ | ||
- | Those blocks were created by this source: | + | Para que el analizador ignore por completo una zona (es decir, no le aplique ningún formato), encierra el área entre etiquetas '' |
- | This is text is indented by two spaces. | + | < |
+ | Esto es un texto que contiene direcciones como ésta: http://www.splitbrain.org y **formatos**, | ||
+ | </ | ||
- | < | + | Echa un vistazo al fuente de esta página para ver cómo usar estos bloques. |
- | This is preformatted code all spaces are preserved: like <-this | + | ===== Resaltado de Sintaxis ===== |
- | </ | + | |
- | < | + | [[DokuWiki]] |
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | |
- | </ | + | |
- | + | ||
- | ==== Syntax Highlighting ==== | + | |
- | + | ||
- | [[wiki:DokuWiki]] | + | |
<code java> | <code java> | ||
- | /** | + | /** |
* The HelloWorldApp class implements an application that | * The HelloWorldApp class implements an application that | ||
* simply displays "Hello World!" | * simply displays "Hello World!" | ||
Línea 383: | Línea 359: | ||
</ | </ | ||
- | The following language strings are currently recognized: //abap, actionscript-french, actionscript, | + | Los lenguajes siguientes son reconocidos actualmente: //actionscript, actionscript-french, |
- | ==== Downloadable Code Blocks | + | ===== Agregar fuentes RSS/ATOM ===== |
- | + | DokuWiki puede integrar información de fuentes XML externas. Para procesar las fuentes XML, se ocupa [[http://simplepie.org/|SimplePie]]. Todos los formatos entendidos por SimplePie, pueden usarse también en DocuWiki. Se puede afectar el despliegue por medio de varios parámetros separados por espacios: | |
- | When you use the '' | + | |
- | + | ||
- | < | + | |
- | <file php myexample.php> | + | |
- | <?php echo "hello world!"; | + | |
- | </file> | + | |
- | </code> | + | |
- | + | ||
- | <file php myexample.php> | + | |
- | <?php echo "hello world!"; | + | |
- | </file> | + | |
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | ^ Parámetro |
+ | | cualquier número | número de artículos | ||
+ | | reverse | ||
+ | | author | ||
+ | | date | mostrar las fechas de los artículos | | ||
+ | | description | ||
+ | | // | ||
+ | El periodo de actualización por omisión es de 4 horas. Cualquier valor menor a 10 minutos será tratado como 10 minutos. DokuWiki generalmente tratará de entregar una versión en caché de la página; obviamente esto no es apropiado cuando la página incluye contenido dinámico externo. El parámetro le dice a DokuWiki que regenere la página si hace más de //periodo de actualización// | ||
- | ===== Embedding HTML and PHP ===== | + | **Ejemplo: |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | {{rss>http:// |
- | HTML example: | + | {{rss> |
+ | ===== Incrustar HTML y PHP ===== | ||
+ | Puedes incrustar código HTML o PHP puro en tus documentos usando las etiquetas '' | ||
< | < | ||
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Esto es <font color="red" |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
</ | </ | ||
< | < | ||
- | This is some <span style="color:red;font-size:150%;">inline | + | Esto es <font color="red" |
</ | </ | ||
- | < | ||
- | <p style=" | ||
- | </ | ||
- | |||
- | PHP example: | ||
< | < | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'Un logo generado por PHP:'; |
echo '< | echo '< | ||
- | echo ' | ||
</ | </ | ||
- | <PHP> | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | </ | ||
</ | </ | ||
<php> | <php> | ||
- | echo 'A logo generated by PHP:'; | + | echo 'Un logo generado por PHP:'; |
echo '< | echo '< | ||
- | echo ' | ||
</ | </ | ||
- | <PHP> | ||
- | 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. | + | **Por favor observa**: La inclusión de HTML y PHP se encuentra deshabilitada predeterminadamente en la configuración. Si se encuentra deshabilitado, el código se muestra en lugar de ejecutarse. |
- | ===== RSS/ATOM Feed Aggregation ===== | ||
- | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http:// | ||
- | ^ Parameter | ||
- | | any number | will be used as maximum number items to show, defaults to 8 | | ||
- | | reverse | ||
- | | author | ||
- | | date | show item dates | | ||
- | | description| show the item description. If [[doku> | ||
- | | //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: | + | ===== Macros de Control ===== |
- | **Example:** | + | Algunas expresiones afectan la manera en que DokuWiki despliega una página, sin producir una salida //per se//. Se cuenta con las siguientes macros de control: |
- | | + | ^ Macro ^ Descripción | |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki, por omisión, hace un caché de todo lo que despliega. A veces esto no es deseable (por ejemplo, cuando se usa la sintaxis %%<php>%% descrita arriba); añadir esta macro forzará a DokuWiki a regenerar la página cada vez que sea solicitada | | ||
- | {{rss> | + | ===== Plugins de Sintaxis ===== |
- | + | La sintaxis de DokuWiki | |
- | ===== Control Macros ===== | + | |
- | + | ||
- | Some syntax influences how DokuWiki | + | |
- | + | ||
- | ^ Macro ^ Description | | + | |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the %%< | + | |
- | + | ||
- | ===== Syntax Plugins ===== | + | |
- | + | ||
- | DokuWiki' | + | |
~~INFO: | ~~INFO: | ||
- |