GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing en.wikipedia.org — Template:Documentation - Wikipedia
This template is used to contain the documented information and instructions of a certain template, usually from a /doc subpage. It may be configured to load the content from other pages or be directly fed by text. For detailed instructions on how and when to use this template, see Wikipedia:Template documentation. This template has two parts: the big "documentation box" with the documentation inside alongside a toolbar, and the smaller "link box" that shows metadata about the documentation alongside the sandbox and testcases links. Use of this template allows templates to be protected, where necessary, while allowing anyone to edit the documentation and categories. General syntaxNormally, the template is used without parameters and is placed inside <!--Last line of your template code--><noinclude> {{Documentation}} <!-- Add categories to the /doc subpage and add interwikis to Wikidata --> </noinclude> Transcluding a different pageTo transclude a different page other than the /doc subpage, simply provide <!--Last line of your template code--><noinclude> {{Documentation|Template:Other page/doc}} </noinclude> Note that when loading the documentation from a page other than the local /doc subpage, it becomes tricky to handle the categories. Using the The documentation can also be fed directly as text, by using the <!--Last line of your template code--><noinclude> {{Documentation | content = <!-- template documentation --> }}</noinclude> When using this parameter, the toolbar will not show. Note that the /doc subpage in the link box will still show up if it exists. Also note that when Advanced syntaxCustomizing the headingThe heading in the documentation box changes depending on namespace. See the below list for the default text in each namespace:
To customize the heading, simply set the parameter Note that if the heading parameter is empty but defined (like The Customizing the link boxTo customize the link box, set To hide the link box, simply set TestingYou can simulate the output for a given page by using the Placement and tagsFurther information: Wikipedia:Template documentation § Where to place it
This code should be added at the bottom of the template code page, with no space before <!--Last line of your template code--><noinclude> {{Documentation}} <!-- Add categories to the /doc subpage and add interwikis to Wikidata --> </noinclude> To automatically insert the above text, you can also use the substitution code shortcut <!--Last line of your template code-->{{subst:doc-code}} Categories and interwikisDepending on where to the documentation is placed, it may be tricky to handle the categories and interwikis. See Wikipedia:Template documentation § Categories and interwiki links for information about adding these. Technical detailsPreload templateTemplate:Documentation/preload contains the default wikitext that appears when an editor clicks "create" to begin creating a new template documentation page. Automatic functionsIf the documentation page does not exist, the toolbar is replaced with a The preload page for the /doc This template also automatically adds {{pp-template}} to a protected template page. When this template is on a /sandbox subpage, it also adds the {{Template sandbox notice}} template. Link box featuresDepending on the namespace, the link box may have less features, or may not show up at all. The following table shows this:
Alongside that, if Subject namespaces vs. talk namespacesThis template is usually placed in the subject namespace. But in some cases this template needs to be on the Talk namespace:
When placed on talk pages, this template usually is placed near the top of the page and without The /doc, /sandbox and /testcases pages should normally be in the subject namespace, except in the namespaces that do not have the MediaWiki subpage feature enabled: Main, File, and MediaWiki. (Categories can have subpages, but documentation is created in the Category talk namespace to prevent creating empty categories. There are also a whole bunch of other technical reasons why the /doc page must be stored under the talk page for those (but only those) namespaces. This template automatically points its [create] links for the /doc, /sandbox and /testcases to the right namespace. Color scheme
Full syntax{{Documentation}} <!-- or --> {{Documentation | <!-- [path to documentation page] --> }} {{Documentation | content = }} <!-- or --> {{Documentation | <!-- [path to documentation page] --> | heading-style = | heading = | link box = }} <!-- or --> {{Documentation | <!-- [path to documentation page] --> | content = | heading-style = | heading = | link box = | page = }} See also
The above documentation is transcluded from Template:Documentation/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Add categories to the /doc subpage. Subpages of this template. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||