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...")
 
(category)
 
(One intermediate revision by one other user not shown)
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


Line 17: Line 17:
}}<noinclude></nowiki></pre>
}}<noinclude></nowiki></pre>


<noinclude>[[Category:Documentation templates]]</noinclude>
<includeonly>[[Category:Documentation templates]]</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 19:59, 24 September 2023

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>