Content deleted Content added
m moved Template:Script doc/doc to Template:Script doc auto/doc: To make the shorter {{script doc}} name available for a version for manual use. |
Updating text due to move of this template. |
||
Line 3:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
This is the {{tl|script doc auto}} template.
It is used in the [[MediaWiki:Clearyourcache]] system message that is shown on top of .css and .js pages.
Line 13:
When this template is called on top of [[User:Davidgothberg/clock.js]] it produces this output:
{{script doc auto| page = User:Davidgothberg/clock.js }}
The above box is not transparent, instead it uses the same background colour as the green doc box.
Line 20:
<pre>
{{script doc auto| page = User:Davidgothberg/clock.js }}
</pre>
Line 27:
=== Technical details ===
Internally this template uses the {{tl|str len}} template. Since {{tlf|str len}} is heavy on the servers this template only calls it once, then it feeds the result to {{tl|script doc auto/core}} which contains most of the code for this template, that template then in turn calls {{tl|script doc auto/core2}} which renders the green doc box and the actual text message.
'''Note to admins:''' MediaWiki does not parse and convert HTML wikimarkup in system messages the same way as it does for normal pages. This means for instance that <code><br></code> is not automatically converted to <code><br /></code> and missing <code></td></code> and <code></tr></code> tags are not automatically added. Thus see to that any HTML code you use in this template is valid XHTML. That is, close all tags that you begin. However, regular wikimarkup works fine in most system messages.
For more technical details see the [[Template talk:Script doc auto|talk page]].
=== See also ===
|