m (newscript) |
m (Added {{para|summary}}) |
||
Line 13: | Line 13: | ||
{{Para|newscript|yes}} Designed to detect input from the {{tl|NewScript}} template, and is not meant to be used manually. It generate a preload link for a script nugget, if the defined subpage does not exist yet. | {{Para|newscript|yes}} Designed to detect input from the {{tl|NewScript}} template, and is not meant to be used manually. It generate a preload link for a script nugget, if the defined subpage does not exist yet. | ||
{{para|summary|short descriptive summary}} This parameter is only available if the {{Para|section|#}} parameter is also used. It allows you to define a very short summary text to be displayed in the header of the collapsible section. | |||
== Sample == | == Sample == | ||
{{{{DraftLink|Expand}}|(LINK)}} | {{{{DraftLink|Expand}}|(LINK)}} | ||
Line 28: | Line 29: | ||
{{{{DraftLink|Expand}}|/(LINK)|(HEADER)|section=2}} | {{{{DraftLink|Expand}}|/(LINK)|(HEADER)|section=2}} | ||
---- | ---- | ||
{{{{DraftLink|Expand}}|/(LINK)|(HEADER)|section=2|newscript=yes}} | {{{{DraftLink|Expand}}|/(LINK)|(HEADER)|section=2|newscript=yes|summary=This is a subsection dedicated to HEADER}} | ||
---- | ---- | ||
<includeonly> | <includeonly> |
Revision as of 14:58, 5 July 2015
This is a documentation subpage for . It contains usage information, categories and other content that is not part of the original template page. |
{{Expand|content or link to transclude|description for header|nt=yes|section=#1-4}}
This takes two unnamed parameters in order.
|either a nugget/subpage link, or raw content=
*required if left blank will produce an error.
|description text to be used in header line=
if left blank it will use the {{SUBPAGENAME}} of the first parameter.
|nt=yes
content is raw (do not enclose in curly braces for transclusion).
|section=#
any number 1-4, if anything else is entered it defaults to 5. This replaces the header test with just the description from the 2nd parameter (or the {{SUBPAGENAME}} of the 1st parameter, and formats it as a section header. The number entered is the header level used.
|newscript=yes
Designed to detect input from the {{NewScript}} template, and is not meant to be used manually. It generate a preload link for a script nugget, if the defined subpage does not exist yet.
|summary=short descriptive summary
This parameter is only available if the |section=#
parameter is also used. It allows you to define a very short summary text to be displayed in the header of the collapsible section.