Difference between revisions of "Template:Sclass/core"

From blackwiki
Jump to navigation Jump to search
blackwiki>The Earwig
m (Protected "Template:Sclass/core": Highly visible template: nearly 20,000 mainspace transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
m (20 revisions imported)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>[[{{#switch:{{{format}}}
 
<includeonly>[[{{#switch:{{{format}}}
|sclass = {{{1}}} class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}''{{{1}}}''
+
|sclass={{{1}}}-class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}''{{{1}}}''
|sclass2 = {{{1}}} class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}{{{1}}}
+
|sclass2- ={{{1}}}-class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}{{{1}}}
|sclass- = {{#if:1 | {{{1}}} }}-class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}''{{#if:1 | {{{1}}} }}''
+
}}<!--
|sclass2- = {{#if:1 | {{{1}}} }}-class {{{2}}} {{#if:{{{5|}}}|({{{5}}})}}{{!}}{{#if:1 | {{{1}}} }}
+
-->{{#switch:{{{3|}}}
}}{{#if: {{{3|}}} | {{#switch:{{{3|3}}}
+
|=-class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]]
 
|0 =-class]]
 
|0 =-class]]
|1 =-class&nbsp;{{{2}}}]]
+
|1 =-class&#x20;{{{2}}}]]
 
|2 =-class]] {{{2}}}
 
|2 =-class]] {{{2}}}
 
|3 =-class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]]
 
|3 =-class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]]
|4 =&nbsp;class]]
+
|4 =&#x20;class]]
 
|5 =]]
 
|5 =]]
|6 ={{#ifeq: {{{format}}} |sclass|-class&nbsp;{{{2}}}]] |]] {{red|'''ERROR:''' invalid option {{{3}}}}}}}
+
|6|#default=-class&#x20;{{{2}}}]]<!-- same as 1, 3; warning + cat
|]] {{red|'''ERROR:''' invalid option {{{3}}}}}
+
-->{{#invoke:Preview warning|main|[[Template:{{{format|}}}|Template {{ucfirst:{{{format|}}}}}]], invalid format code: {{{3|}}}. Should be 1&ndash;5, or blank.}}{{main other|[[Category:WPSHIPS: sclass invalid option]]}}<!--
}} | -class]] [[{{#if:{{{4|}}}|{{{2}}} ({{{4}}}){{!}}{{{2}}}|{{{2}}}}}]] }}</includeonly><noinclude>
+
-->}}<!-- eo switch
{{documentation}}
+
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
--></includeonly><noinclude>{{documentation}}</noinclude>
</noinclude>
 

Latest revision as of 10:03, 30 September 2020

50px Template documentation[create]