Changes

Category:Templates

2,446 bytes added, 10:38, 23 April 2012
Using templates
= Using templates =
(work Templates is an easy way of controlling and duplicating content in progressmany pages simultaneously. Coming soon!)
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.
 
{{Message/Information Message|title=|message=For more information on templates, visit http://www.mediawiki.org/wiki/Help:Templates .}}
=== How to use an existing template ===
(work #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 progresscase 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. Coming soon!)
=== How to create a new template ===
(work #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 progressyour case. Coming soon!)#If not, start a new template following this steps:##Decide which of '''category fits better''' with your template: Message, Navigation, Table, Content.=== Let ##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.
(work 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 progress. Coming soon!)the future:
----
=== TITLE ===
Visit [[Template:PAGEName Of The Page]] to edit
Copy the following text line in your article:
<nowiki>{{PAGEName Of The Page|PARAMETERSParameter1=PARAMETER1_CONTENT|Parameter2=PARAMETER2_CONTENT}}</nowiki> <nowiki>
where:
* PARAMETER NAMEPARAMETER1_CONTENT: DESCRIPTION OF PARAMETERDescription of the content that has to he inserted.* PARAMETER2_CONTENT: Description of the content that has to he inserted. </nowiki> 
----
0
edits