Difference between revisions of "Category:Templates"

From IGEP - ISEE Wiki

Jump to: navigation, search
m
(Added build-in section transclusion instructions)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
List of available templates for using in IGEP Community articles:
+
__TOC__
__NOTOC__
 
  
=== Navigation templates ===
+
== Description ==
 +
<section begin=Description />
 +
Available templates for using in IGEP Community articles.
 +
<section end=Description />
  
Navigation boxes and indications templates:
+
== Site Map ==
 +
<section begin=Site Map />
 +
*[[:Category:Templates]]: Information about how to use the IGEP Community templates
 +
**[[Template:Navigation]]: Navigation boxes and indications templates
 +
**[[Template:Table]]: Standard tables and contents
 +
**[[Template:Message]]: Standard notifications and messages
 +
**[[Template:Content]]: Generic and standard content for using in many pages
 +
**[[Template:Links]]: Standard URL and links to external pages
 +
<section end=Site Map />
  
*[[Template:Navigation]]
 
  
 +
== Using templates ==
 +
Templates is a great MediaWiki feature that allows to use different pages to create the content of a final page.
  
=== Table templates ===
+
It consists on the creation of a 'master' page, which can include customized parameters, and other pages that include that content in their page code.
  
Standard tables and contents:
+
In this page, there is the organization of the templates in the IGEP Community Wiki.
  
*[[Template:Table]]
+
Feel free to use, edit and create templates!
**[[Template:IGEP Technology Devices]] (delete!)
 
**[[Template:Table/IGEP Technology Devices]]
 
  
=== Message templates ===
+
{{Message/Information Message|message=If you are not familiar with templates, visit http://www.mediawiki.org/wiki/Help:Templates .}}
 
 
Standard notifications and messages:
 
 
 
*[[Template:Message]]
 
 
 
 
 
=== Content templates ===
 
 
 
Generic and standard content for using in many articles:
 
 
 
*[[Template:Content]]
 
 
 
 
 
= Using templates =
 
 
 
(work in progress. Coming soon!)
 
  
  
 
=== How to use an existing template ===
 
=== How to use an existing template ===
  
(work in progress. Coming soon!)
+
#Visit the main Templates page at [[:Category:Templates]].
 +
#Select the category of the Template you are searching for such [[Template:Message|Message]], [[Template:Navigation|Navigation]], [[Template:Table|Table]], [[Template:Content|Content]], etc.
 +
#Navigate through the summary page, where '''there is an overview of every Template''' in that category with a basic '''description''' of its content and a link to the actual Template, in case you want to edit it.
 +
#Once you have found the right template, '''stay at the summary page''' and copy the '''Usage field''' of the template.
 +
#'''Paste this line''' into the page you want that content to appear.
 +
#In case the template has '''parameters''', read the summary page to know its usage and then replace the content of the parameters with your customized text.
  
  
 
=== How to create a new template ===
 
=== How to create a new template ===
  
(work in progress. Coming soon!)
+
#Visit the main Templates page at [[:Category:Templates]].
 +
#Check of any '''existing related templates''' to make sure if there actually exists a template that could be used in your case.
 +
#If not, start a new template following this steps:
 +
##Decide which of '''category fits better''' with your template: Message, Navigation, Table, Content.
 +
##Start the new template using '''Templates:CATEGORY/ as the prefix of your Template title''' (for example: Templates:Message/<Name of your template>). This will make it easier to locate existing templates for other users when listing the existing templates by name.
 +
##Complete the title of your Template with the name. Use capitalized letters for the first letter of each word. (for example: Templates:Message/Setup Warning).
 +
##Create your article. If you wish to use parameters, you can create by using <nowiki>{{{Your_Parameter}}}</nowiki>.
 +
##When you finish your work, return to the corresponding summary page (for example at Templates:Message, if you picked the Message category) and add a new entry so that users can find your template and use it.
  
 +
Copy paste the following code to the summary page and fill it with the right content, so that other users can easily use your template in the future:
  
=== Let other users use your template! ===
+
----
  
(work in progress. Coming soon!)
+
<nowiki>
  
 
----
 
 
=== TITLE ===
 
=== TITLE ===
  
----
+
Visit [[Template:Name Of The Page]] to edit
<section begin=NAME />
 
  
 
<section end=NAME />
 
----
 
  
 
'''Description''':
 
'''Description''':
Line 69: Line 69:
 
Copy the following text line in your article:
 
Copy the following text line in your article:
  
  <nowiki>{{#lst:PAGE|SECTION}}</nowiki>
+
  <nowiki>{{Name Of The Page|Parameter1=PARAMETER1_CONTENT|Parameter2=PARAMETER2_CONTENT}}</nowiki>
  
 +
where:
  
=== TITLE ===
+
* PARAMETER1_CONTENT: Description of the content that has to he inserted.
 +
* PARAMETER2_CONTENT: Description of the content that has to he inserted.
  
Visit [[Template:PAGE]] to edit
+
----
  
 +
=== How to insert a sections from other articles ===
  
'''Description''':
+
<nowiki>{{#lsth:pagename|sectionX}}</nowiki>
  
DESCRIPTION.
+
* For more information visit http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion
 
 
'''Usage''':
 
 
 
Copy the following text line in your article:
 
 
 
<nowiki>{{PAGE|PARAMETERS}}</nowiki>
 
 
 
where:
 
  
* PARAMETER NAME: DESCRIPTION OF PARAMETER
+
=== How to create and insert custom sections from other articles ===
  
 +
In the original article, you must insert these tags:
  
 +
<nowiki>
 +
< section begin=SECTION_NAME />
 +
< section end=SECTION_NAME />
 +
</nowiki>
  
 +
In the article you want to insert the original content, add:
  
 +
<nowiki>
 +
{{#lst:ORIGINAL_ARTICLE_NAME|SECTION_NAME}}
 +
</nowiki>
  
 
[[Category:Work in progress]]
 
[[Category:Work in progress]]
 
[[Category:IGEP Community]]
 
[[Category:IGEP Community]]

Latest revision as of 10:29, 3 September 2013

Description

Available templates for using in IGEP Community articles.


Site Map


Using templates

Templates is a great MediaWiki feature that allows to use different pages to create the content of a final page.

It consists on the creation of a 'master' page, which can include customized parameters, and other pages that include that content in their page code.

In this page, there is the organization of the templates in the IGEP Community Wiki.

Feel free to use, edit and create templates!

Information.jpg If you are not familiar with templates, visit http://www.mediawiki.org/wiki/Help:Templates .


How to use an existing template

  1. Visit the main Templates page at Category:Templates.
  2. Select the category of the Template you are searching for such Message, Navigation, Table, Content, etc.
  3. Navigate through the summary page, where there is an overview of every Template in that category with a basic description of its content and a link to the actual Template, in case you want to edit it.
  4. Once you have found the right template, stay at the summary page and copy the Usage field of the template.
  5. Paste this line into the page you want that content to appear.
  6. In case the template has parameters, read the summary page to know its usage and then replace the content of the parameters with your customized text.


How to create a new template

  1. Visit the main Templates page at Category:Templates.
  2. Check of any existing related templates to make sure if there actually exists a template that could be used in your case.
  3. If not, start a new template following this steps:
    1. Decide which of category fits better with your template: Message, Navigation, Table, Content.
    2. Start the new template using Templates:CATEGORY/ as the prefix of your Template title (for example: Templates:Message/<Name of your template>). This will make it easier to locate existing templates for other users when listing the existing templates by name.
    3. Complete the title of your Template with the name. Use capitalized letters for the first letter of each word. (for example: Templates:Message/Setup Warning).
    4. Create your article. If you wish to use parameters, you can create by using {{{Your_Parameter}}}.
    5. When you finish your work, return to the corresponding summary page (for example at Templates:Message, if you picked the Message category) and add a new entry so that users can find your template and use it.

Copy paste the following code to the summary page and fill it with the right content, so that other users can easily use your template in the future:



=== TITLE ===

Visit [[Template:Name Of The Page]] to edit


'''Description''':

DESCRIPTION.

'''Usage''':

Copy the following text line in your article:

 <nowiki>{{Name Of The Page|Parameter1=PARAMETER1_CONTENT|Parameter2=PARAMETER2_CONTENT}}

where:

  • PARAMETER1_CONTENT: Description of the content that has to he inserted.
  • PARAMETER2_CONTENT: Description of the content that has to he inserted.

How to insert a sections from other articles

{{#lsth:pagename|sectionX}}

How to create and insert custom sections from other articles

In the original article, you must insert these tags:

< section begin=SECTION_NAME />
< section end=SECTION_NAME />
 

In the article you want to insert the original content, add:

{{#lst:ORIGINAL_ARTICLE_NAME|SECTION_NAME}}
 

Pages in category "Templates"

The following 5 pages are in this category, out of 5 total.