Template:Size: Difference between revisions

Refactoring using standart table layout, improving code readability, no visual nor functional change
(Using two rows instead of one row and a br, cleaning up, converting table from HTML to wikistyle, added some debugging tests)
(Refactoring using standart table layout, improving code readability, no visual nor functional change)
Line 1: Line 1:
{|
<!--
|-
 
| style="background-color:#EDEDED; border-style:solid; border-width:1px; margin:4px; padding:4px;" | [[:Category:Wiki Size|Wiki Size]]: {{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[:Category:{{SizeCat|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude> pages]]|[[:Category:<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>|<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>]]}}{{#if: {{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}|<sup> [{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} see stats...]</sup>}}
Categorizing logic
--><includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|
[[Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]|[[Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]
}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|
[[Category:Old style size cats]]
}}{{#if: {{{wikiFactor|{{{wiki factor|}}}}}}|
[[Category:{{WikiFactorCatText|{{{wikiFactor|{{{wiki factor}}}}}}}}]]
}}</includeonly><!--
 
Starting template code
-->
{| style="margin:0; padding:0; border:none;"
|- style="background-color:#EDEDED; border:1px solid black; margin:2px; display:block;"
| style="margin:0 0 4px 4px; padding:2px;" scope="row" | [[:Category:Wiki Size|Wiki Size]]:
| style="margin:0 4px 4px 0; padding:2px;" | {{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[:Category:{{SizeCat|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}</includeonly><noinclude>0</noinclude> pages]]|[[:Category:<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>|<includeonly>{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}</includeonly><noinclude>0</noinclude>]]}}{{#if: {{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL|}}}}}}}}}|<sup> [{{{statistics URL|{{{wiki statistics URL|{{{wiki_statistics_URL}}}}}}}}} see stats...]</sup>}}
{{#if: {{{wikiFactor|{{{wiki factor<includeonly>|</includeonly>}}}}}}|
{{#if: {{{wikiFactor|{{{wiki factor<includeonly>|</includeonly>}}}}}}|
{{!}}-
{{!}}- style="background-color:#EDEDED; border:1px solid black; margin:2px; display:block;"
{{!}} style="background-color:#EDEDED; border-style:solid; border-width:1px; margin:4px; padding:4px;" {{!}} [[:Category:WikiFactor|wikiFactor]]: [[:Category:{{WikiFactorCatText|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>]]{{#if: {{{wikiFactor URL|{{{wiki factor URL|}}}}}}|<sup> [{{{wikiFactor URL|{{{wiki factor URL}}}}}} more info...]</sup>}}
{{!}} style="margin:4px 0 0 4px; padding:2px;" scope="row" {{!}} [[:Category:WikiFactor|wikiFactor]]:
{{!}} style="margin:4px 4px 0 0; padding:2px;" {{!}} [[:Category:{{WikiFactorCatText|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>}}|<includeonly>{{{wikiFactor|{{{wiki factor}}}}}}</includeonly><noinclude>0</noinclude>]]{{#if: {{{wikiFactor URL|{{{wiki factor URL|}}}}}}|<sup> [{{{wikiFactor URL|{{{wiki factor URL}}}}}} more info...]</sup>}}
}}
}}
|}<includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}|[[Category:{{SizeCat|{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}}}]]|[[Category:{{{size|{{{wiki size|{{{wiki_size|UnknownSize}}}}}}}}}]]}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|[[Category:old style size cats]]}}{{#if: {{{wikiFactor|{{{wiki factor|}}}}}}|[[Category:{{WikiFactorCatText|{{{wikiFactor|{{{wiki factor}}}}}}}}]]|}}</includeonly><noinclude>
|}<noinclude>
 
__NOTOC__
 
<div style="clear:both;"></div>


== Parameters ==
== Parameters ==
88

edits