Template:Size: Difference between revisions

move template code above categorisation logic
(exported all documentation and other non-code info from Template:Size to Template:Size/doc, reinstated via {{Size/doc}})
(move template code above categorisation logic)
Line 1: Line 1:
<!--Categorizing logic--><includeonly>{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}
<!--Starting template code-->{|style="margin:0; padding:0; border:none"
|[[Category:{{SizeCat|{{formatnum:{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}|R}}}}]]
[[pages::{{formatnum:{{{pages|{{{wiki pages|{{{wiki_pages|0}}}}}}}}}|R}}| ]]<!-- Semantic Property -->
|[[Category:UnknownSize]]
}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|[[Category:Old style size cats]]
}}{{#if: {{{wikiFactor|{{{wikiFactor|}}}}}}|[[Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor}}}}}}|R}}}}]]
[[wikiFactor::{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}| ]]<!-- Semantic Property -->
}}</includeonly><!--Starting template code-->
{{#set:Wiki size={{{pages|}}} |wikiFactor={{{wikiFactor|}}} }}<!--
-->{|style="margin:0; padding:0; border:none"
|-style="background-color:#EEE; border:1px solid #A0A7B4; margin:2px; display:block"
|-style="background-color:#EEE; border:1px solid #A0A7B4; margin:2px; display:block"
|style="margin:0 0 4px 4px; padding:2px" scope=row|[[:Category:Wiki Size|Wiki Size]]:
|style="margin:0 0 4px 4px; padding:2px" scope=row|[[:Category:Wiki Size|Wiki Size]]:
Line 17: Line 8:
{{!}}style="margin:4px 4px 0 0; padding:2px"{{!}}[[:Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}}}|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}}}]]{{#if: {{{wikiFactor URL|{{{wikiFactor URL|}}}}}}|&nbsp;<sup>[[wikiFactor|info]] / [{{{wikiFactor URL|{{{wikiFactor URL}}}}}} verify ...]</sup>}}
{{!}}style="margin:4px 4px 0 0; padding:2px"{{!}}[[:Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}}}|{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}}}]]{{#if: {{{wikiFactor URL|{{{wikiFactor URL|}}}}}}|&nbsp;<sup>[[wikiFactor|info]] / [{{{wikiFactor URL|{{{wikiFactor URL}}}}}} verify ...]</sup>}}
}}
}}
|}<noinclude>
|}<includeonly>
<!--Categorizing logic-->{{#set:Wiki size={{{pages|}}} |wikiFactor={{{wikiFactor|}}} }}
{{#if: {{{pages|{{{wiki pages|{{{wiki_pages|}}}}}}}}}
|[[Category:{{SizeCat|{{formatnum:{{{pages|{{{wiki pages|{{{wiki_pages}}}}}}}}}|R}}}}]]
[[pages::{{formatnum:{{{pages|{{{wiki pages|{{{wiki_pages|0}}}}}}}}}|R}}| ]]<!-- Semantic Property -->
|[[Category:UnknownSize]]
}}{{#if: {{{size|{{{wiki size|{{{wiki_size|}}}}}}}}}|[[Category:Old style size cats]]
}}{{#if: {{{wikiFactor|{{{wikiFactor|}}}}}}|[[Category:{{wikiFactorCatText|{{formatnum:{{{wikiFactor|{{{wikiFactor}}}}}}|R}}}}]]
[[wikiFactor::{{formatnum:{{{wikiFactor|{{{wikiFactor|0}}}}}}|R}}| ]]<!-- Semantic Property -->
}}</includeonly><noinclude>
----
----
{{Size/doc}}
{{Size/doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>