Difference between revisions of "Template:Reflist"

From The Crowdsourced Resource-Based Economy Knowledgebase
Jump to: navigation, search
(HIxdqwJFlK)
(Undo revision 603 by 193.61.245.253 (talk))
Line 1: Line 1:
Наверное код можно слегка оптимизировать: <xsl:template name="loop"><xsl:param name="i"/><xsl:param name="count"/><xsl:if test="$count >= $i"><option><xsl:value-of seelct="$i"/></option><xsl:call-template name="loop"><xsl:with-param name="i" seelct="$i + 1"/><xsl:with-param name="count" seelct="$count"/></xsl:call-template></xsl:if></xsl:template>
+
<div class="reflist <!--
 +
-->{{#if: {{{1|}}}
 +
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
 +
      | references-column-width
 +
      | references-column-count references-column-count-{{{1}}} }}
 +
    | {{#if: {{{colwidth|}}}
 +
      | references-column-width }} }}" style="<!--
 +
-->{{#if: {{{1|}}}
 +
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
 +
      | {{column-width|{{{1}}}}}
 +
      | {{column-count|{{{1}}}}} }}
 +
    | {{#if: {{{colwidth|}}}
 +
      | {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!--
 +
-->{{{liststyle|{{#switch: {{{group|}}}
 +
    | upper-alpha
 +
    | upper-roman
 +
    | lower-alpha
 +
    | lower-greek
 +
    | lower-roman = {{{group}}}
 +
    | #default = decimal}}}}};">
 +
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
 +
{{documentation}}</noinclude>

Revision as of 01:51, 13 September 2012

Script error

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Share