Difference between revisions of "Template:Reflist"

From MediaWiki
Jump to: navigation, search
(fix pre-space bug)
(HIxdqwJFlK)
Line 1: Line 1:
<div class="reflist <!--
+
Наверное код можно слегка оптимизировать: <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>
-->{{#if: {{{1|}}}
+
    | {{#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>
+

Revision as of 04:13, 4 September 2012

Наверное код можно слегка оптимизировать: <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>

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox