Permanently protected template

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

From Yugipedia
Jump to: navigation, search
(go ahead and add this in a fashion allowing for testing)
(try fixing the test code to at least output functioning links)
Line 1: Line 1:
 
{{ #if: {{{test|}}}
 
{{ #if: {{{test|}}}
| {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | . | [;Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}  }} | ; | [ }} | , | ]], }} | : | ]] }}
+
| {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | . | [$Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}  }} | $ | [ }} | @ | ]], }} | : | ]] }}
 
| {{IfSemantics
 
| {{IfSemantics
 
| {{ #arraymap: {{{1}}} | / | x | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:x|3|0}}|{{padleft:x|3|0}}]] }}
 
| {{ #arraymap: {{{1}}} | / | x | [[Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} {{padleft:x|3|0}}|{{padleft:x|3|0}}]] }}
Line 10: Line 10:
  
 
:'''To get figured out later''' - <code>#arraymap</code> can probably be replaced by a "doubled" input array and some <code>#replace</code>s (still got a little bit to be worked out, and this can doubtless be refined somehow or another):
 
:'''To get figured out later''' - <code>#arraymap</code> can probably be replaced by a "doubled" input array and some <code>#replace</code>s (still got a little bit to be worked out, and this can doubtless be refined somehow or another):
:<code><nowiki>{{ #replace: {{ #replace: {{ #replace: {{ #replace: .001, .002, .003: | . | [;Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}&#32; }} | ; | [ }} | , | ]], }} | : | ]] }}</nowiki></code>
+
:<code><nowiki>{{ #replace: {{ #replace: {{ #replace: {{ #replace: .001@ .002@ .003: | . | [$Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}}&#32; }} | $ | [ }} | @ | ]], }} | : | ]] }}</nowiki></code>
  
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:30, 10 April 2011

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

To get figured out later - #arraymap can probably be replaced by a "doubled" input array and some #replaces (still got a little bit to be worked out, and this can doubtless be refined somehow or another):
{{ #replace: {{ #replace: {{ #replace: {{ #replace: .001@ .002@ .003: | . | [$Yu-Gi-Oh! {{ #if: {{{series|}}} | {{{series}}} }} - {{{type}}} }} | $ | [ }} | @ | ]], }} | : | ]] }}