Difference between revisions of "Template:Sclass/core"
Jump to navigation
Jump to search
blackwiki>DePiep (rm all code for deprecaded Sclass/Sclass2 (now elsewhere); cleanup code; rm unwanted nbsp after class, use Preview warning; only categorise in mainspace.) |
blackwiki>DePiep |
||
| Line 14: | Line 14: | ||
-->{{#invoke:Preview warning|main|[[Template:{{{format|}}}|Template {{ucfirst:{{{format|}}}}}]], invalid format code: {{{3|}}}. Should be 1–5, or blank.}}{{main other|[[Category:WPSHIPS: sclass invalid option]]}}<!-- | -->{{#invoke:Preview warning|main|[[Template:{{{format|}}}|Template {{ucfirst:{{{format|}}}}}]], invalid format code: {{{3|}}}. Should be 1–5, or blank.}}{{main other|[[Category:WPSHIPS: sclass invalid option]]}}<!-- | ||
-->}}<!-- eo switch | -->}}<!-- eo switch | ||
| + | |||
| + | Check if unhypened link is blue: | ||
| + | -->{{main other|{{Yesno|1={{#invoke:Page|exists|{{{1}}} class {{{2}}} {{#if:{{{5|}}}|({{{5|}}})}}}}|def= | ||
| + | |yes={{Yesno|1={{#invoke:Page|exists|{{{1}}}-class {{{2}}} {{#if:{{{5|}}}|({{{5|}}})}}}}|def= | ||
| + | |yes=|no=[[Category:WPSHIPS: sclass hyphenated red link|*]]{{#invoke:Preview warning|main|The non-hyphened link name is blue. Suggest moving that to the hyphened version, to turn it into blue here. [[{{{1|}}} class {{{2|}}}{{#if:{{{5|}}}| ({{{5|}}})}}]] → [[{{{1|}}}-class {{{2|}}}{{#if:{{{5|}}}| ({{{5|}}})}}]].}}}}<!-- | ||
| + | -->}}}}<!-- eo red/blue check, ns0 | ||
--></includeonly><noinclude>{{documentation}}</noinclude> | --></includeonly><noinclude>{{documentation}}</noinclude> | ||