Template:Expand/doc: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This template is used to mark articles or sections in need of expansion. | This template is used to mark articles or sections in need of expansion. | ||
This template "unsubstitutes" itself to set its date. When you put it in a page, you can use | |||
<nowiki>{{expand}}</nowiki> | <nowiki>{{subst:expand}}</nowiki> | ||
When you save it, it will magically unpack itself, and the next time you edit the page containing it, you will see | |||
{{tx|Expand|date=March 2016}} | |||
{{expand| | |||
And that will display: | |||
{{Expand|date=March 2016}} | |||
If you include the option <code>s</code>, the template will interpret this as meant for just one section rather than the whole article, and the infobox switches to "small-left" style instead of the bigger full-page one: | |||
{{Expand|s|date=March 2016}} | |||
You can use this in conjunction with the {{c|<nowiki>subst:</nowiki>}} feature: | |||
<nowiki>{{subst:expand|s}}</nowiki> |
Latest revision as of 19:44, 9 April 2016
This template is used to mark articles or sections in need of expansion.
This template "unsubstitutes" itself to set its date. When you put it in a page, you can use
{{subst:expand}}
When you save it, it will magically unpack itself, and the next time you edit the page containing it, you will see
{{Expand}}
And that will display:
Script error: No such module "Unsubst".
If you include the option s
, the template will interpret this as meant for just one section rather than the whole article, and the infobox switches to "small-left" style instead of the bigger full-page one:
Script error: No such module "Unsubst".
You can use this in conjunction with the subst:
feature:
{{subst:expand|s}}