Permanently protected template

Difference between revisions of "Template:Card table anime and manga appearances"

From Yugipedia
Jump to: navigation, search
(HTML escape code fail)
(switch this over to accepting comma-delimited input (no point in waiting, really); add tracking categories for extra and extra2 since these should probably be handled by other params in CardTable2)
Line 1: Line 1:
 
{{IfSemantics
 
{{IfSemantics
| {{ #arraymap: {{{1}}} | / | x | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:x|3|0}}|{{padleft:x|3|0}}]] }}
+
| {{
| {{ #ifexpr: {{ #len: {{{1}}} }} * 35 < 1000 | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{ #replace: {{ #replace: {{ #replace: {{ #sub: {{{1}}} | 0 | {{ #pos: {{{1}}} | // }} }} | / | @], [$Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}&#32; }} | $ | [ }} | @ | ] }}]] | {{ #replace: {{{1}}} | / | ,&#32; }} }}
+
    #arraymap: {{ #replace: {{{1}}} | / | , }} | , | $x$ | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:$x$|3|0}}|{{padleft:$x$|3|0}}]]
 +
  }}
 +
| {{
 +
    #ifexpr: {{ #len: {{{1}}} }} * 35 < 1000
 +
    | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{
 +
      #replace: {{
 +
        #replace: {{
 +
          #replace: {{
 +
            #sub: {{ #replace: {{{1}}} | / | , }}
 +
            | 0 | {{ #pos: {{ #replace: {{{1}}} | / | , }} | ,, }}
 +
          }}
 +
          | , | @], [$Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}&#32;
 +
        }}
 +
        | $ | [
 +
      }}
 +
      | @ | ]
 +
    }}]]
 +
    | {{ #replace: {{{1}}} | / | ,&#32; }}
 +
  }}
 
}}{{
 
}}{{
#if: {{{extra|}}} | , {{{extra}}}}}{{
+
  #if: {{{extra|}}} | , {{{extra}}}[[Category:Anime and manga appearances transclusions using extra|{{PAGENAME}}{{NAMESPACE}}]]
#if: {{{extra2|}}} | , {{{extra2}}}
+
}}{{
 +
  #if: {{{extra2|}}} | , {{{extra2}}}[[Category:Anime and manga appearances transclusions using extra2|{{PAGENAME}}{{NAMESPACE}}]]
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:41, 13 September 2011

[[Yu-Gi-Oh! - {{{type}}} {{{1}}}|{{{1}}}]]