Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Examples/Parameter: include (example 1): Difference between revisions

no edit summary
imported>FrozenPlum
(Add example, accounting (hopefully) for the scenario this would most wanted to be used in, explaining how to get rid of the page name i the output (most likely undesired) and suppress the behaviour where sections are added to the TOC (also likely an undesired behaviour). Add that default behaviour can be observed with a simple change (that they can test).)
 
imported>FrozenPlum
No edit summary
Line 6:
==Example==
 
This will list all contents of the article [[Apple]]. The <code>{{DPL|format}}</code> line uses <code><nowiki>__NOTOC__</nowiki></code> to suppress the behavior where the page headings are automatically added to the current page's table of contents. Not specifying the page name other content in <code>format</code> parameter prevents the page name from being output before the result (the default behavior). If the <code>format</code> line is removed, the default behavior can be observed.
 
<pre>
Line 24:
}}
<noinclude>
[[Category:ControllingInclude outputcontents volumefrom (examples)‎the articles in the result set‎]]
[[Category:Uses titlematch parameter]]
[[Category:Uses include parameter]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.