Template:Documentation/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Used to create documentation for templates used on the Factorio Wiki. ==Usage== There are two ways to use this template. 1. Add to the bottom of your temp...")
 
No edit summary
 
Line 5: Line 5:


1. Add to the bottom of your template:
1. Add to the bottom of your template:
<pre><nowiki><noinclude>{{documentation}}<noinclude></nowiki></pre>
<pre><nowiki><noinclude>{{doc}}<noinclude></nowiki></pre>


Then click on the "Create" link to get started with your documentation.
Then click on the "Create" link to get started with your documentation.


2. Include the documentation directly in the template (not preferred method):
2. Include the documentation directly in the template (not preferred method):
<pre><nowiki><noinclude>{{documentation|text=
<pre><nowiki><noinclude>{{doc|text=
Documentation text
Documentation text



Latest revision as of 22:43, 16 May 2014

Used to create documentation for templates used on the Factorio Wiki.

Usage

There are two ways to use this template.

1. Add to the bottom of your template:

<noinclude>{{doc}}<noinclude>

Then click on the "Create" link to get started with your documentation.

2. Include the documentation directly in the template (not preferred method):

<noinclude>{{doc|text=
Documentation text

==Usage==
How to use the template, etc.
}}<noinclude>