User:Johan G/Template:Informative template with preloaded text/doc: Difference between revisions
Jump to navigation
Jump to search
(Copying parts of http://wiki.flightgear.org/index.php?title=Template:Informative_template&oldid=119156) |
m (Shorting and commenting out for debugging) |
||
Line 6: | Line 6: | ||
{{inote|Please put the <tt><nowiki><noinclude></nowiki></tt> tag right behind the intended contents of the template, as an empty line or extra spaces will alter the way the template is rendered.}} | {{inote|Please put the <tt><nowiki><noinclude></nowiki></tt> tag right behind the intended contents of the template, as an empty line or extra spaces will alter the way the template is rendered.}} | ||
{{obr}}'''User:Johan G/Template:Informative template with preloaded text'''{{!}}documentation page {{!}}''content=''{{!}}''link box=''{{cbr}} | |||
{{ | |||
= | |||
; documentation page | |||
: Name of page with documentation | |||
: Defaults to <code><nowiki>{{BASEPAGENAME}}/doc</nowiki></code> | |||
; content | |||
: Will allow wiki markup to be used instead of a separate documentation page. | |||
; link box | |||
: Will add content to the link box at the bottom | |||
<!-- | |||
<!-- | == Examples == | ||
== Technical details == | |||
== | |||
== Known issues == | == Known issues == | ||
== Related templates == | == Related templates == | ||
* {{tl|informative template}} | |||
* {{tl| | --> | ||
Revision as of 16:28, 22 June 2019
This template can be used to document a wiki template and to distinguish the documentation from the actual template.
Usage
The template is used with one variable and must be put between <noinclude></noinclude> tags.
Note Please put the <noinclude> tag right behind the intended contents of the template, as an empty line or extra spaces will alter the way the template is rendered.
{{User:Johan G/Template:Informative template with preloaded text|documentation page |content=|link box=}}
- documentation page
- Name of page with documentation
- Defaults to
{{BASEPAGENAME}}/doc
- content
- Will allow wiki markup to be used instead of a separate documentation page.
- link box
- Will add content to the link box at the bottom