Difference between revisions of "Template:Sclass/core"
Jump to navigation
Jump to search
blackwiki>Trappist the monk (categorize pages using sclass & sclass2 that link to redirect pages;) |
blackwiki>Trappist the monk m (-extraneous space;) |
||
| Line 13: | Line 13: | ||
|6 ={{#ifeq: {{{format}}} |sclass|-class {{{2}}}]] |]] {{red|'''ERROR:''' invalid option {{{3}}}}}}} | |6 ={{#ifeq: {{{format}}} |sclass|-class {{{2}}}]] |]] {{red|'''ERROR:''' invalid option {{{3}}}}}}} | ||
|]] {{red|'''ERROR:''' invalid option {{{3}}}}} | |]] {{red|'''ERROR:''' invalid option {{{3}}}}} | ||
| − | }} | -class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]] }} {{#switch:{{{format}}} | + | }} | -class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]] }}{{#switch:{{{format}}} |
|sclass = {{#ifeq:{{#invoke:Redirect|isRedirect|{{{1}}} class {{{2}}}}}|yes| | |sclass = {{#ifeq:{{#invoke:Redirect|isRedirect|{{{1}}} class {{{2}}}}}|yes| | ||
{{#if:{{#invoke:String|match|s={{#invoke:Redirect|main|{{{1}}} class {{{2}}}}} |pattern={{{1}}}%-class |plain=false |nomatch=}}|[[Category:WPSHIPS: sclass redirect]]}}}} | {{#if:{{#invoke:String|match|s={{#invoke:Redirect|main|{{{1}}} class {{{2}}}}} |pattern={{{1}}}%-class |plain=false |nomatch=}}|[[Category:WPSHIPS: sclass redirect]]}}}} | ||