Examples/Parameter: include (example 2): Difference between revisions
Content added Content deleted
imported>FrozenPlum (Created page with "<noinclude>{{note|Please '''do not edit''' this page unless you're wanting to edit the manual itself, it is an example included in the manual.|error}}</noinclude><!-- This is the example preloaded for testing, press "Show Preview" to see the example working (at the bottom of the page). If you save this page, it saves as a new section at the bottom of your '''User:Username/Sandbox''' --> ==Example== This matches (and selects) an article named "Grape" and includes the co...") |
imported>FrozenPlum m (fix typo and refine this description) |
||
Line 6: | Line 6: | ||
==Example== |
==Example== |
||
This matches (and selects) an article named "Grape" and includes the content of the page section (indicated by <code>#</code>) named "about" or "About" (<code>include</code> is '''not''' case-sensitive). The table styles are provided in the first <code>{{DPL|table}}</code>argument, followed by the remaining table headers. When using <code>table</code> format, if there is more than one section |
This matches (and selects) an article named "Grape" and includes the content of the page section (indicated by <code>#</code>) named "about" or "About" (<code>include</code> is '''not''' case-sensitive). The table styles are provided in the first <code>{{DPL|table}}</code> argument, followed by the remaining table headers. When using <code>table</code> format, if there is more than one section with the same name used on the result page, each section will be listed in a separate table row. If the <code>table</code> statement is removed, the page title will only appear once, followed by each section's contents listed one after the other. |
||
<pre> |
<pre> |