Template:Ambox/doc: Difference between revisions

→‎sect: Fixed.
(→‎sect: Commented out section that as of yet doesnät)
(→‎sect: Fixed.)
 
Line 102: Line 102:
* If {{para|image|none}} is specified, then no image is used and the text uses the whole message box area.
* If {{para|image|none}} is specified, then no image is used and the text uses the whole message box area.


<!--
=== sect ===
=== sect ===
Many article message templates begin with the text '''This article ...''' and it is often desirable that this wording change to '''This section ...''' if the template is used on a section instead. Other possibilities include '''This list ...''' and '''This biographical article ...'''
Many article message templates begin with the text '''This article ...''' and it is often desirable that this wording change to '''This section ...''' if the template is used on a section instead. Other possibilities include '''This list ...''' and '''This biographical article ...'''


To facilitate this functionality, pass {{para|sect|<nowiki>{{{1|}}}</nowiki>}}. This will allow editors to type '''section''' as the first unnamed parameter of the template to change the wording. For example, {{tlx|Advert|section}} produces:
To facilitate this functionality, pass {{para|sect|<nowiki>{{{1|}}}</nowiki>}}. This will allow editors to type '''section''' as the first unnamed parameter of the template to change the wording. For example, {{tlx|Draft|section}} produces:
{{Advert|section|date=April 2013}}
{{Draft|section|date=April 2013}}


If using this feature, be sure to remove the first two words ("This article") from the template's text, otherwise it will be duplicated.
If using this feature, be sure to remove the first two words ("This article") from the template's text, otherwise it will be duplicated.
-->


=== issue'' and ''fix ===
=== issue'' and ''fix ===
3,860

edits