Help:DPL/Parameters: Controlling output volume: Difference between revisions

no edit summary
m (1 revision imported)
 
No edit summary
 
Line 240: Line 240:
You will get a link to the contributor and an "asterisk bar" which indicates how many bytes in the article were changed by that user.
You will get a link to the contributor and an "asterisk bar" which indicates how many bytes in the article were changed by that user.


You will also have the built-in [[DPL format variables|variables]] %CONTRIBUTOR%, %CONTRIB% and %CONTRIBUTION% available to be used in your own {{DPL|format}}</code> statement.
You will also have the built-in [[Help:DPL format variables|variables]] %CONTRIBUTOR%, %CONTRIB% and %CONTRIBUTION% available to be used in your own {{DPL|format}}</code> statement.


===adduser===
===adduser===
Line 488: Line 488:
:::  this symbol will be replaced by "article#heading". It is up to you to create a link from this text using normal wiki syntax if you wish.
:::  this symbol will be replaced by "article#heading". It is up to you to create a link from this text using normal wiki syntax if you wish.


* To include sections (chapters) by a reference to their '''position in the text''': use a simple number with a "%" as prefix. "%0" will include the text BEFORE the first chapter, "%1" will include the first chapter, %6 the sixth and so on. Chapers are counted regardless of their level. No nesting logic is applied. "%-1" is a special value which refers to the '''last''' chapter of an article (%-2 will ''not'' work, however). "%2[30]" will include the first 30 characters of the second chapter. %SECTION% will contain the heading of the selected chapter. See [http://web.archive.org/web/20160530125613/http://semeb.com/dpldemo/index.php?title=Test_include_sections_by_number Test include sections by number].
* To include sections (chapters) by a reference to their '''position in the text''': use a simple number with a "%" as prefix. "%0" will include the text BEFORE the first chapter, "%1" will include the first chapter, %6 the sixth and so on. Chapters are counted regardless of their level. No nesting logic is applied. "%-1" is a special value which refers to the '''last''' chapter of an article (%-2 will ''not'' work, however). "%2[30]" will include the first 30 characters of the second chapter. %SECTION% will contain the heading of the selected chapter. See [http://web.archive.org/web/20160530125613/http://semeb.com/dpldemo/index.php?title=Test_include_sections_by_number Test include sections by number].


:<code>include = %1[100]</code>
:<code>include = %1[100]</code>