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: table (example 3): Difference between revisions

m
FrozenPlum moved page Controlling output format/Parameter: table (example 3) to Examples/Parameter: table (example 3): Simplifying how things are structured
imported>FrozenPlum
m (FrozenPlum moved page Controlling output format/Parameter: table (example 1) to Controlling output format/Parameter: table (example 2) without leaving a redirect: Going to make a more simple first example to contrast between auto-first column and omitted first column)
imported>FrozenPlum
m (FrozenPlum moved page Controlling output format/Parameter: table (example 3) to Examples/Parameter: table (example 3): Simplifying how things are structured)
 
(3 intermediate revisions by the same user not shown)
Line 6:
==Example==
 
This willselects select pagesarticles in [[:Category:Fruit examples]] and includeuses thea valuessurrogate of the "[[Template:Fruit-Infobox" .templatevalues|template's]] "image"to format the second and "grows"third parameters,columns withof results (the pagefirst titlecolumn asis aautomatically linkgenerated inand betweenpopulated by DPL3 because the twosecond template<code>table</code> parametervalue values.doesn't Thecontain table<code>-</code> statementto setsintentionally omit this, instead it contains the tablefirst stylescolumn's totable header "wikitablePage", and "sortable" then usessets the rest of the table headers. If <code>-</code> ''was'' in the second position tofor omit<code>table</code>, the automaticfirst pagecolumn name/linkwould firstdrop columnoff (soand itthe canpage bename movedwould need to abe differentadded column),to andthe thenfirst itrow setsof the tablesurrogate headertemplate, text.it Thecould listbe outputcalled with <code><nowiki>{{DPL|count{%PAGE%}}}</nowiki></code> isand limited to 5 resultsformatted.
 
'''Note:''' Other formatting (such as turning the image ''name'' into a ''rendered'' image) cannot occur within an <code>{{DPL|include}}</code> statement, see the <code>{{DPL|tablerow}}</code> parameter.
 
<pre>
{{#dpl:
|category = Fruit examples
|include = {Fruit-Infobox}:image:[[%PAGE%|%TITLE%]]:grows.templatevalues
|table = class="wikitable sortable",-Page,Grows, Image used on page, Page, Value of "grows" parameter
|count = 52
}}
</pre>
Line 22 ⟶ 20:
 
{{#dpl:
|category = Fruit examples
|include = {Fruit-Infobox}:image:[[%PAGE%|%TITLE%]]:grows.templatevalues
|table = class="wikitable sortable",-Page,Grows, Image used on page, Page, Value of "grows" parameter
|count = 52
}}
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.