Difference between revisions of "Template:Cat cen nav"

From blackwiki
Jump to navigation Jump to search
imported>Fayenatic london
(Update formatting)
imported>Fayenatic london
(Update formatting , add optional plural parameter)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
|-
 
|-
 
| style="text-align: center;padding-left:5px; padding-right:5px;"|  
 
| style="text-align: center;padding-left:5px; padding-right:5px;"|  
* {{LinkCatIfExists2|{{#switch:{{{c}}}
+
{{LinkCatIfExists2|{{#switch:{{{c}}}
 
|0 = {{{m|}}}0th
 
|0 = {{{m|}}}0th
 
|1 = {{{m|}}}1st
 
|1 = {{{m|}}}1st
Line 14: Line 14:
 
|9 = {{{m|}}}9th
 
|9 = {{{m|}}}9th
 
}}-century {{{cat}}}|←}}  
 
}}-century {{{cat}}}|←}}  
* [[{{{article}}}]]s in the [[{{#switch:{{{c}}}
+
[[{{{plural|{{{article}}}s}}}]] in the [[{{#switch:{{{c}}}
 
|0 = {{{m|}}}1st
 
|0 = {{{m|}}}1st
 
|1 = {{{m|}}}2nd
 
|1 = {{{m|}}}2nd
Line 26: Line 26:
 
|9 = {{#expr:{{{m|}}} + 1}}0th
 
|9 = {{#expr:{{{m|}}} + 1}}0th
 
}}-century]]  
 
}}-century]]  
* {{LinkCatIfExists2|{{#switch:{{{c}}}
+
{{LinkCatIfExists2|{{#switch:{{{c}}}
 
|0 = {{{m|}}}2nd
 
|0 = {{{m|}}}2nd
 
|1 = {{{m|}}}3rd
 
|1 = {{{m|}}}3rd
Line 201: Line 201:
 
| sortkey =   
 
| sortkey =   
 
| article =   
 
| article =   
 +
| plural =
 
}}</pre>
 
}}</pre>
  
 +
The plural parameter is optional, and is only required if the plural is not made by adding the letter s, e.g. for software <code>plural=Software</code>
 
{{DEFAULTSORT:Category Century Navigation}}
 
{{DEFAULTSORT:Category Century Navigation}}
  
 
[[Category:Works-by-year templates]]
 
[[Category:Works-by-year templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:32, 9 November 2019

[[{{{article}}}s]] in the -century

00s {{{cat}}}
00
01
02
03
04
05
06
07
08
09
10s {{{cat}}}
10
11
12
13
14
15
16
17
18
19
20s {{{cat}}}
20
21
22
23
24
25
26
27
28
29
30s {{{cat}}}
30
31
32
33
34
35
36
37
38
39
40s {{{cat}}}
40
41
42
43
44
45
46
47
48
49
50s {{{cat}}}
50
51
52
53
54
55
56
57
58
59
60s {{{cat}}}
60
61
62
63
64
65
66
67
68
69
70s {{{cat}}}
70
71
72
73
74
75
76
77
78
79
80s {{{cat}}}
80
81
82
83
84
85
86
87
88
89
90s {{{cat}}}
90
91
92
93
94
95
96
97
98
99

Usage

{{cat cen nav
| m =  
| c =  
| cat =  
| sortkey =  
| article =  
| plural = 
}}

The plural parameter is optional, and is only required if the plural is not made by adding the letter s, e.g. for software plural=Software