Examples/Parameter: secseparators (example 2): Difference between revisions
Content added Content deleted
imported>FrozenPlum m (Consistency fix) |
imported>FrozenPlum m (code format parameter names and link to sections) |
||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
This will list articles in Category:Fruit examples using listseparators to define a table with three columns and put a link to the article in the first column |
This will list articles in [[:Category:Fruit examples]] using <code>{{DPL|listseparators}}</code> to define a table with three columns, and put a link to the article in the first column. The <code>{{DPL|includepage}}</code> parameter specifies a template used on each page, along with the "grows" parameter value for each row, and the "notes" page section value for pages that have that section name. |
||
Assuming that the chapter on "Notes" contains a long text, it can be truncated (e.g., to 40 characters), specifying the text for the truncation after the number to truncate (<code><nowiki>[40 more...]</nowiki></code>. A link which refers directly to those chapters will be generated automatically if needed. Be aware that truncating with <code><nowiki>[ ]</nowiki></code> can break text formatted with wikitext or tags such as <code><nowiki><nowiki></nowiki></code>. |
Assuming that the chapter on "Notes" contains a long text, it can be truncated (e.g., shortened to 40 characters), specifying the text for the truncation after the number to truncate (<code><nowiki>[40 more...]</nowiki></code>. A link which refers directly to those chapters will be generated automatically if needed. Be aware that truncating with <code><nowiki>[ ]</nowiki></code> can break text formatted with wikitext or tags such as <code><nowiki><nowiki></nowiki></code>. |
||
<pre> |
<pre> |
||
Line 29: | Line 29: | ||
|count=5 |
|count=5 |
||
}} |
}} |
||
<noinclude> |
<noinclude> |
||
[[Category:Setting the basic output mode]] |
[[Category:Setting the basic output mode]] |