Template:Documentation: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(No lang fallback instead uses the built in translation of things like "edit", no preload, no subtemplates, style in css)
Line 1: Line 1:
__NOEDITSECTION__
<div class="factorio-doc">{{#ifeq:{{{heading|{{{2|}}}}}} | false | | <div class="factorio-doc-heading">
{{Documentation/{{Fallback|Documentation|{{{lang|{{int:Lang}} }}} }}
<span class="editsection plainlinks" id="doc_editlinks">{{
|1={{{text |{{{1|}}} }}}
    #ifexist: {{FULLPAGENAME}}/doc
|2={{{heading|{{{2|}}} }}}
    | &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|{{int:view}}]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} {{int:edit}}]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} {{int:history}}]]
}}<noinclude>[[Category:Documentation templates]]</noinclude>
    | <!--/doc doesn't exist-->
      [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit}} {{int:create}}]]
    }}</span>
<span style="font-size:150%">{{#if: {{{heading|{{{2|}}}}}} | {{{heading|{{{2}}}}}} | Documentation }}</span></div> }}
{{#if: {{{text|{{{1|}}}}}} |{{{text|{{{1}}}}}}|{{{{SUBJECTPAGENAME}}/doc}}}}
 
<small class="plainlinks">[https://wiki.factorio.com/Special:AllPages?namespace=10 List of all templates]</small></div>

Revision as of 18:57, 12 September 2017

[View] [Edit] [Page history]

Documentation

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>
List of all templates