Template:Expand/doc View history

m (→‎Sample: add 2 section header examples)
m ({{para|section}})
Line 1: Line 1:
{{doc subpage}}
{{doc subpage}}
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
<!-- ADD DOCUMENTATION BELOW THIS LINE -->
{{Tlx|{{DraftLink|Expand}}|content or link to transclude|description for header|nt{{=}}yes}}
{{Tlx|{{DraftLink|Expand}}|content or link to transclude|description for header|nt{{=}}yes|section{{=}}#1-4}}
This takes two unnamed parameters in order.
This takes two unnamed parameters in order.
{{Para|either a nugget/subpage link, or raw content}} {{red|*required}} if left blank will produce an error.
{{Para|either a nugget/subpage link, or raw content}} {{red|*required}} if left blank will produce an error.


{{Para|description text to be used in header line}} if left blank it will use the {{{{DraftLink|Tl}}|SUBPAGENAME|nl}} of the first first parameter.
{{Para|description text to be used in header line}} if left blank it will use the {{Tl|SUBPAGENAME|nl}} of the first parameter.


{{Para|nt|yes}} content is raw (do not enclose in curly braces for transclusion).
{{Para|nt|yes}} content is raw (do not enclose in curly braces for transclusion).
{{Para|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 {{tl|SUBPAGENAME|nl}} of the 1st parameter, and formats it as a section header. The number entered is the header level used.


== Sample ==
== Sample ==

Revision as of 19:08, 3 July 2015

This is a documentation subpage for Template:Expand.
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.

Sample

Click Expand for details on (LINK)


Click Expand for details on /(LINK)


Click Expand for details on (HEADER)


Click Expand for details on (HEADER)

(CONTENT)


Click Expand for details on


{{ ERROR: No content was specified }}