Diferencia entre revisiones de «Plantilla:Temas con subpaginas»

De WikiEducator
Saltar a: navegación, buscar
(Creación de Plantilla)
 
(Using Template:TopicsWithSubpages: Traducción de la sección)
Línea 71: Línea 71:
 
<noinclude>
 
<noinclude>
 
__NOTOC__
 
__NOTOC__
== Using Template:TopicsWithSubpages ==
+
== Uso de la Plantilla:Temas_con_subpaginas ==
  
This Navigational template may be useful for complex content that has a hierarchical structure to it such as:  
+
Esta plantilla de navegación puede ser útil para contenido complejo que tenga una estructura jerárquica de la misma, como por ejemplo:
  
'''Topic 1'''<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''section 1''<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''section 2''<br />
 
'''Topic 2'''<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''section 1''<br />
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''section 2''<br />
 
  
 +
'''Tema 1'''<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''sección 1''<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''sección 2''<br />
 +
'''Tema 2'''<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''sección 1''<br />
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ''sección 2''<br />
 +
 +
Cuando se inserta en una página, podría verse algo como esto:
  
When inserted into a page it might look something like this:
 
  
 
{{Temas con subpaginas
 
{{Temas con subpaginas
 
|state  =  
 
|state  =  
 
|title  = Test of a Navigation Template with Topics and Sections
 
|title  = Test of a Navigation Template with Topics and Sections
|image  = [[Image:tutorial.png|32|]]
+
|image  = [[Imagen:tutorial.png|32|]]
 
|above  = Welcome to our new content project!
 
|above  = Welcome to our new content project!
  
Línea 100: Línea 101:
 
|section3    = [[section 1]]{{Vbar}}[[section 2]]{{Vbar}}[[section 3]]
 
|section3    = [[section 1]]{{Vbar}}[[section 2]]{{Vbar}}[[section 3]]
  
|below  = Some text that could go on the bottom. Including links to other [[Content]] or sections.
+
|below  = Some text that could go on the bottom. Including links to other [[Contenido]] or sections.
 
}}
 
}}
  
For another example of the template in action see the pages of [http://www.wikieducator.org/Using_Audacity Using Audacity].
+
Para otro ejemplo de la plantilla en acción ver las páginas de [http://www.wikieducator.org/Using_Audacity Usando Audacity] (en Inglés).
  
<span style="color:red;">(For a simpler template suitable for WikiEducator projects see: [[Template:ProjectNav]].)</span>
+
<span style="color:red;">(Para una plantilla adecuada para los proyectos de WikiEducator, véase: [[Plantilla:ProjectNav]].)</span>
  
 
== Syntax ==
 
== Syntax ==

Revisión de 19:59 26 may 2009

Plantilla:TWSbase


Uso de la Plantilla:Temas_con_subpaginas

Esta plantilla de navegación puede ser útil para contenido complejo que tenga una estructura jerárquica de la misma, como por ejemplo:


Tema 1
         sección 1
         sección 2
Tema 2
         sección 1
         sección 2

Cuando se inserta en una página, podría verse algo como esto:





Para otro ejemplo de la plantilla en acción ver las páginas de Usando Audacity (en Inglés).

(Para una plantilla adecuada para los proyectos de WikiEducator, véase: Plantilla:ProjectNav.)

Syntax

{{TopicsWithSubpages
|state =
|title =
|image =
|above =

|topic1 =
|section1 =

|topic2 =
|section2 =

|topic3 =
|section3 =

|below =
}}

Variables

The template has the following variables:

state = can be either left blank, or collapsed or plain can be entered here. Blank (ie. nothing entered) is the default and will provide the user with a way to collapse the navigation template with a show/hide link; collapsed will default the navigation template into the collapsed or closed state; and plain removes the show/hide option all together.

title = This is the title of the resource. Can be left blank.

image = You can include an image or logo to display in the template. Uses normal wiki image syntax.

above = Text to go in the header cell of the template. In the above example the text: "Test of a Navigation Template with Topics and Sections" is here.

topic1 = this would be a link to your first Topic.

section1 = this may be series of links separated by {{Vbar}} of the sections for topic 1.

topic2 = to add new topics increment the number; ie. topic2, topic3.

section2 = sections/pages for the topic2 table cell.

below = text that could go at the bottom of the navigation box.

Automated Creation of TopicWithSubpage Navigation for projects

Instead of copying and pasting all the template syntax into every page of your content, it may be easier to use this form to create a unique navigation template for your all of your content pages. You can then insert this newly created navigation template into each page of your content using a greatly simplified syntax. This also makes it far easier to modify the navigation in a single place (ie, add or subtract pages, etc.) and have changes reflected in all pages rather than having to modify the syntax in every page.

Usage

Replace the MyProjectNav text below with the name of your project, something like Template:AccountingBasicsNav and click on the Create New Navigation Template button. You will be taken to a page with further instructions.



Notas de traducción

Referencias


[[Categoría:Técnico]] [[Categoría:Plantillas de navegación|{{PAGENAME}}]]