Teratornis (talk | contribs) (try to add an optional argument to display some user-controllable text) |
(recat) |
||
(One intermediate revision by one other user not shown) | |||
Line 21: | Line 21: | ||
An alternative would be to just use '''<nowiki>{{FULLPAGENAME}}&action=edit§ion=new</nowiki>''' and let the user choose the display text and add the double brackets - but that would be more confusing. | An alternative would be to just use '''<nowiki>{{FULLPAGENAME}}&action=edit§ion=new</nowiki>''' and let the user choose the display text and add the double brackets - but that would be more confusing. | ||
[[Category: | Another option is to use the "[[Help:Magic words|magic word]]" <nowiki>__NEWSECTIONLINK__</nowiki> somewhere on the page. That adds the new section tab ("+") at the top of the page, whereas this template adds a link within the page, wherever the template is placed. Apart from that, clicking the tab or the link functions in the same way. | ||
[[Category:Formatting and function templates]]</noinclude> |
Revision as of 01:35, 15 July 2012
Usage
- {{new section}}
displays as:
This allows new sections to be added on any pages where comments are invited, not just on talk pages.
- {{new section|display text}}
displays as:
Comments
An alternative would be to just use {{FULLPAGENAME}}&action=edit§ion=new and let the user choose the display text and add the double brackets - but that would be more confusing.
Another option is to use the "magic word" __NEWSECTIONLINK__ somewhere on the page. That adds the new section tab ("+") at the top of the page, whereas this template adds a link within the page, wherever the template is placed. Apart from that, clicking the tab or the link functions in the same way.