Template:Doc/Documentation

From GodWiki
< Template:Doc
Revision as of 09:57, 15 November 2019 by Djonni (talk | contribs) (Not sure why the template example was subst'ed instead of a normal template? Fixed.)
Jump to: navigation, search

Adds documentation for the template.

Parameters

Normally (when called with no parameters), creates a documentation box and transcludes the contents of a /Documentation subpage of the current page as its contents.

{{doc|pagename}} — The first unnamed parameter can be set to a pagename to transclude the contents of pagename instead of the /Documentation subpage.

|content=Documentation content 
Optional: If set, display the provided content formatted as documentation, rather than transcluding the documentation from another page. Suppresses view/edit/history/purge links.

Example

This documentation box is an example of itself.

This wikicode:

{{doc|content=This is my documentation}}

results in

📚 Documentation
This is my documentation