Difference between revisions of "Template:Reflist"

From The Crowdsourced Resource-Based Economy Knowledgebase
Jump to: navigation, search
(HIxdqwJFlK)
m (1 revision)
 
(5 intermediate revisions by 2 users not shown)
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|}}}
 +
    | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
 +
      | references-column-width
 +
      | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
 +
    | {{#if: {{{colwidth|}}}
 +
      | references-column-width }} }}" style="<!--
 +
-->{{#if: {{{1|}}}
 +
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
 +
      | {{column-width|{{#if:1|{{{1}}}}}}}
 +
      | {{column-count|{{#if:1|{{{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>

Latest revision as of 00:27, 15 February 2015

Script error

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Share