Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TheOpenRoad Support
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Documentation/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Technical details == === Automatic functions === If the documentation page does not exist, the toolbar is replaced with a <code>[create][purge]</code> link. The <code>[create]</code> link automatically [[mw:Manual:Creating pages with preloaded text|creates the page with preloaded text]] with the basic documentation syntax. Preload text is also used for the /sandbox and /testcases [create] links. The preload page for the /doc <code>[create]</code> link is [[Template:Documentation/preload]]. The preload pages for the /sandbox and /testcases links are [[Template:Documentation/preload-sandbox]] and [[Template:Documentation/preload-testcases]]. The preload page for the /sandbox <code>[mirror]</code> link is [[Template:Documentation/mirror]]. This template also automatically adds {{tl|pp-template}} to a protected template page. When this template is on a /sandbox subpage, it also adds the {{tl|Template sandbox notice}} template. === Link box features === Depending on the namespace, the link box may have less features, or may not show up at all. The following table shows this: {| class="wikitable" ! Namespace ! Behavior |- | Template | Full behavior |- | Module | Full behavior, with the addition of a "create documentation" link when the page does not exist |- | User | Full behavior |- | Other namespaces | Hidden, unless {{para|1}} is specified (which will show "The above documentation is transcluded from {{param|1}}") |} Alongside that, if {{para|1}} or {{para|content}} is specified, the "Add categories to the /doc subpage" text will not show. === Subject namespaces vs. talk namespaces === This template is usually placed in the [[WP:NS#Subject namespaces|subject namespace]]. But in some cases this template needs to be on the [[WP:TALKSPACE|Talk namespace]]: * In the MediaWiki namespace, since {{tag|noinclude|o}} often does not work in system messages, and since the MediaWiki namespace needs to be kept clean for performance reasons. When placed on talk pages, this template usually is placed near the top of the page and without {{tag|noinclude}} tags. The /doc, /sandbox and /testcases pages should normally be in the subject namespace, except in the namespaces that do not have the MediaWiki [[meta:Help:Link#Subpage feature|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 === {| class="wikitable" style="font-size:90%" |+ Wikipedia background colors for {{Template link|documentation}} <small>([[Help:Using colors]])</small> ! !! RGB !! HSV !! Color !! General usage !! Note |- | A | <kbd>#ECFCF4</kbd> || 150°, 6%, 99% | style="background:#ECFCF4" | | Sample || Current documentation background |- | B | <kbd>#00FF80</kbd> | style="font-size:90%;" | {{nowrap|1=Hue=150° <small>(41.7%; 106/255<small>dec</small>)</small> 100%, 100%}} | style="background:#00FF80" | | Basic hue || What we'd call ''the color'' |- | colspan="6" | |- | 1 | <kbd>#A3BFB1</kbd> || 150°, 15%, 75% | style="background:#A3BFB1" | | Header border only || |- | 2 | <kbd>#CEF2E0</kbd> || 150°, 15%, 95% | style="background:#CEF2E0" | | Main border; header background || |- | 3 | <kbd>#E6FFF2</kbd> || 150°, 10%, 100% | style="background:#E6FFF2" | | 2nd header, accent colour || |- | 4 | <kbd>#F5FFFA</kbd> || 150°, 4%, 100% | style="background:#F5FFFA" | | Main background || So saturation in A is a bit off |} {{collapse top|title=Colors for documentation navbox}} As a suggestion, here are colors for a navbox intended for documentation pages only. They follow the shading of regular blue navbox colors: <syntaxhighlight lang="wikitext"> | titlestyle = background:#ccffe5 | basestyle = background:#ddffee <!-- basestyle= sets groupstyle, abovestyle, belowstyle together --> </syntaxhighlight> For subgroups, in child navboxes: <syntaxhighlight lang="wikitext"> {{Navbox|child | groupstyle = background:#e6fff2 ... </syntaxhighlight> Example:{{Template link expanded|Periodic table templates overview}} {{collapse bottom}}
Summary:
Please note that all contributions to TheOpenRoad Support may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TheOpenRoad Support:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)