Difference between revisions of "Template:Commons category"

From Self-sufficiency
Jump to: navigation, search
(Removing leading ":" in front of "Category", since shouldn't be there any more. And adding whitespace stripping of parameter 1.)
Line 1: Line 1:
 
{{commons
 
{{commons
 
| position = {{{position|}}}
 
| position = {{{position|}}}
| :Category:{{{1|{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}
+
  <!-- {{#if:x|}} strips whitespace from parameter 1,
 +
      in case it is fed like this: {{Commons category| Some cat }}. -->
 +
| Category:{{#if:x| {{{1| {{PAGENAME}} }}} }}
 +
| {{{2| {{{1| {{PAGENAME}} }}} }}}
 
}}<noinclude>
 
}}<noinclude>
  
{{pp-template|small=yes}}
+
{{pp-template}}
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 03:29, 29 December 2009