Template:In/sandbox: Difference between revisions
Jump to navigation
Jump to search
Kestrelguy (talk | contribs) (just messin' around.) |
Kestrelguy (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><span style="color:{{{{{1}}}|col}}; background-color: #202020; font-weight:bold; padding: 2px; {{border-radius|4px}}; white-space:nowrap"><!-- | --><span style="color:{{#ifexist: {{<!-- | ||
removing braces so when we put them back in, there's only one set | |||
this is the *second* level of replacement-->{{#replace: {{))}}|<!-- {{))}} and {{((}} return }} and {{ | |||
this is the first level of replacement, which the second level searches-->{{#replace: {{((}}|{{{1}}}|}}|}}}}<!--last pair of braces closes the template we're constructing | |||
if the resulting template exists-->|{{{{#replace: {{))}}|{{#replace: {{((}}|{{{1}}}|}}|}}|col}}<!-- …just call the same replacement as before, but now with color | |||
otherwise, resort to Game color-->|{{game color|{{{1}}}}} }}<!-- space and last two braces are finally closing ifexist | |||
-->; background-color: #202020; font-weight:bold; padding: 2px; {{border-radius|4px}}; white-space:nowrap"><!-- | |||
-->({{trim| {{{text|in}}} {{{1}}} {{{suffix|}}} }})<!-- | -->({{trim| {{{text|in}}} {{{1}}} {{{suffix|}}} }})<!-- | ||
--></span><!-- | --></span><!-- |