Difference between revisions of "Template:Navigation"

From Twinsuniverse
Jump to: navigation, search
m
(recategorization)
 
(10 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
{{{title}}}</div>
 
{{{title}}}</div>
 
<div style="padding: 0.5em 1em 0.5em 1em; background-color: #f9f9f9; font-size: 95%">
 
<div style="padding: 0.5em 1em 0.5em 1em; background-color: #f9f9f9; font-size: 95%">
{| style="width: 100%; background-color: transparent; margin: 0; padding: 0; text-align: {{ #ifeq: {{{align|}}} | right | right | {{ #ifeq: {{{align|}}} | left | left | center }}}};" cellpadding="0" cellspacing="0"
+
{| style="width: 100%; background-color: transparent; margin: 0; padding: 0; text-align: center ;" cellpadding="0" cellspacing="0"
 
| {{{image}}} || {{{contents}}}
 
| {{{image}}} || {{{contents}}}
 
|}
 
|}
</div></div>
+
</div></div><noinclude>This is the basic template used for creating navigational templates. To use it, [[Help:New article|create a new template]], and copy the following text into it:
 
+
<noinclude>This is the basic template used for creating navigational templates. To use it, [[Help:New article|create a new template]], and copy the following text into it:
+
 
<pre><nowiki>{{Navigation
 
<pre><nowiki>{{Navigation
 
|title=
 
|title=
 
|image=
 
|image=
 
|contents=
 
|contents=
}}
+
}}</nowiki></pre>
 
+
<noinclude>[[Category:Navigational templates]]</noinclude></nowiki></pre>
+
  
 
Then, fill in the parameters, as follows:
 
Then, fill in the parameters, as follows:
 
* '''Title''': the title of the template. e.g. "[[Citadel Island]]".
 
* '''Title''': the title of the template. e.g. "[[Citadel Island]]".
* '''Image''': a representative image to be used at the left of the template. This should include the full code, and not only the file name. Preferably make the image small, about 90-100 pixels.
+
* '''Image''': a representative image to be used at the left of the template. This should include the full code, and not only the file name. Preferably make the image small, about 70-100 pixels.
 
* '''Contents''': Here goes the actual content of the template. List here all items relevant to the template, including those not yet written (one of the advantages of such templates is to see what's not written yet in the subject). Separate each item with a • or a dash (-).
 
* '''Contents''': Here goes the actual content of the template. List here all items relevant to the template, including those not yet written (one of the advantages of such templates is to see what's not written yet in the subject). Separate each item with a • or a dash (-).
  
Leave the category line as it is; it's used to categorize the template appropriately.
+
Eventually, categorize the template, like that: <nowiki>[[Category:Navigational templates|template name]]</nowiki>, replacing the name of the template with "template name". Don't forget to add the <nowiki><noinclude></nowiki> tag before and after the category.
[[Category:Navigational templates|*]]</noinclude>
+
 
 +
</noinclude>

Latest revision as of 19:31, 5 June 2014

This is the basic template used for creating navigational templates. To use it, create a new template, and copy the following text into it:
{{Navigation
|title=
|image=
|contents=
}}

Then, fill in the parameters, as follows:

  • Title: the title of the template. e.g. "Citadel Island".
  • Image: a representative image to be used at the left of the template. This should include the full code, and not only the file name. Preferably make the image small, about 70-100 pixels.
  • Contents: Here goes the actual content of the template. List here all items relevant to the template, including those not yet written (one of the advantages of such templates is to see what's not written yet in the subject). Separate each item with a • or a dash (-).

Eventually, categorize the template, like that: [[Category:Navigational templates|template name]], replacing the name of the template with "template name". Don't forget to add the <noinclude> tag before and after the category.