Consejos de redacción
formatos de entrada:- Filtered HTML:
- Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
Etiquetas HTML permitidas: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
Este sitio admite contenido HTML. Aprender todo el HTML es una tarea ardua e intimidante, pero aprender unas cuantas «etiquetas» HTML básicas es muy sencillo. Esta tabla proporciona ejemplos para cada etiqueta que está activa en el sitio.
Para más información, puede ver las especificaciones HTML de W3C o usar su motor de búsqueda favorito para buscar otros sitios que traten sobre HTML.
Descripción de la etiqueta Teclea Obtiene Las anclas se usan para hacer enlaces a otras páginas. <a href="http://www.paelladekimchi.com">Paella de Kimchi</a>Paella de Kimchi Enfatizado <em>Enfatizado</em>Enfatizado Fuerte <strong>Fuerte</strong>Fuerte Citado <cite>Citado</cite>Citado Texto codificado que se usa para mostrar código fuente de programación <code>Codificado</code>CodificadoLista desordenada: use <li> para comenzar cada elemento de la lista <ul> <li>Primer elemento</li> <li>Segundo elemento</li> </ul>- Primer elemento
- Segundo elemento
Lista ordenada: utilice <li> para comenzar cada elemento de la lista <ol> <li>Primer elemento</li> <li>Segundo elemento</li> </ol>- Primer elemento
- Segundo elemento
Las listas de definiciones son similares a otras listas HTML. <dl> da comienzo a la lista de definiciones, <dt> da comienzo a cada término definido y <dd> da comienzo a la descripción de la definición. <dl> <dt>Primer término</dt> <dd>Primera definición</dd> <dt>Segundo término</dt> <dd>Segunda definición</dd> </dl>- Primer término
- Primera definición
- Segundo término
- Segunda definición
Los caracteres menos habituales se pueden introducir directamente sin mayor complicación.
Si tiene problemas, intente usar entidades de caracteres HTML. Un ejemplo de esto es &, que se usa para conseguir el carácter &. Tiene una lista completa de las entidades HTML en la página de entidades. Entre los caracteres disponibles están:
Descripción del carácter Teclea Obtiene Ampersand && Mayor que >> Menor que << Comillas "" Using custom PHP code
Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.
If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.
Notes:
- Remember to double-check each line for syntax and logic errors before saving.
- Statements must be correctly terminated with semicolons.
- Global variables used within your PHP code retain their values after your script executes.
register_globalsis turned off. If you need to use forms, understand and use the functions in the Drupal Form API.- Use a
printorreturnstatement in your code to output content. - Develop and test your PHP code using a separate test script and sample database before deploying on a production site.
- Consider including your custom PHP code within a site-specific module or
template.phpfile rather than embedding it directly into a post or block. - Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.
A basic example: Creating a "Welcome" block that greets visitors with a simple message.
Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:
print t('Welcome visitor! Thank you for visiting.');To display the name of a registered user, use this instead:
global $user; if ($user->uid) { print t('Welcome @name! Thank you for visiting.', array('@name' => $user->name)); } else { print t('Welcome visitor! Thank you for visiting.'); }
Drupal.org offers some example PHP snippets, or you can create your own with some PHP experience and knowledge of the Drupal system.
- The content of this field will be saved to a file and included on the original page in an iFrame.
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]
is displayed as:This is a simple quote.Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]
is displayed as:This is a quote with an attribution line.Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]
is displayed as:I think she says it best...This is a quote nested within another quote.but you can't argue withThe more quotes, the merrier. Just don't get too carried away.And I have nothing more to say.- If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
- Full HTML:
- Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
- Las líneas y los párrafos se reconocen automáticamente. Las etiquetas <br /> para el salto de línea y <p> y </p> para abrir y cerrar el párrafo se insertan automáticamente. Si los párrafos no se reconocen, simplemente añada unas cuantas líneas vacías.
- The content of this field will be saved to a file and included on the original page in an iFrame.
Using custom PHP code
Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.
If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.
Notes:
- Remember to double-check each line for syntax and logic errors before saving.
- Statements must be correctly terminated with semicolons.
- Global variables used within your PHP code retain their values after your script executes.
register_globalsis turned off. If you need to use forms, understand and use the functions in the Drupal Form API.- Use a
printorreturnstatement in your code to output content. - Develop and test your PHP code using a separate test script and sample database before deploying on a production site.
- Consider including your custom PHP code within a site-specific module or
template.phpfile rather than embedding it directly into a post or block. - Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.
A basic example: Creating a "Welcome" block that greets visitors with a simple message.
Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:
print t('Welcome visitor! Thank you for visiting.');To display the name of a registered user, use this instead:
global $user; if ($user->uid) { print t('Welcome @name! Thank you for visiting.', array('@name' => $user->name)); } else { print t('Welcome visitor! Thank you for visiting.'); }
Drupal.org offers some example PHP snippets, or you can create your own with some PHP experience and knowledge of the Drupal system.
Quoted content can be placed between [quote] tags in order to be displayed as an indented quote. Every [quote] tag must have a corresponding [/quote] tag. For example:
[quote]This is a simple quote.[/quote]
is displayed as:This is a simple quote.Additionally, there is an optional attribute which allows quotes to specify the original author.
[quote=Mr. Drupal]This is a quote with an attribution line.[/quote]
is displayed as:This is a quote with an attribution line.Finally, multiple [quote] tags can be nested within one another. Just remember that every [quote] tag must have a corresponding [/quote] tag.
[quote]I think she says it best... [quote=Ms. Quotation]This is a quote nested within another quote.[/quote] but you can't argue with [quote=Ms. Reply]The more quotes, the merrier. Just don't get too carried away.[/quote] And I have nothing more to say.[/quote]
is displayed as:I think she says it best...This is a quote nested within another quote.but you can't argue withThe more quotes, the merrier. Just don't get too carried away.And I have nothing more to say.- If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
- Youtube:
- foro y comentarios:
- Las líneas y los párrafos se reconocen automáticamente. Las etiquetas <br /> para el salto de línea y <p> y </p> para abrir y cerrar el párrafo se insertan automáticamente. Si los párrafos no se reconocen, simplemente añada unas cuantas líneas vacías.
- The content of this field will be saved to a file and included on the original page in an iFrame.
- If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.





