සැකිල්ල:Title century
Appearance
මෙම සැකිල්ල පිටු බොහෝ ගණනක භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
Extracts a century number from a page title.
It recognises two formats:
- With a separating dash: XXth-century, e.g. "14th-century electric toasters" or "2nd-century hang-gliders"
- With a separating space: XXth century, e.g. "21st century in Doohoma" or "Aviation disasters in the 3rd century"
Note that unlike {{Title year}} and {{Title decade}}, it always takes the first century number in the title.
Usage
[සංස්කරණය]{{Title century}}
or
{{Title century|match=|nomatch=|page=}}
Examples
[සංස්කරණය]{{Title century|page=Category:17th-century hoaxes}}
→{{Title century|page=Category:21st century in Ballyporeen}}
→{{Title century|page=18 century in }}
→{{Title century|page=13th-century time-travellers to the 20th century}}
→{{Title century|page=1701–1799 quidditch season}}
→{{Title century|nomatch=NOTFOUND|page=1701–1799 quidditch season}}
→ NOTFOUND{{Title century|page=100 worst internet memes during the reign of Tutankhamen}}
→{{Title century|page=List of antidisestablishmentarian riots in Xanadu by century}}
→{{Title century|nomatch=NONSENSE|page=List of antidisestablishmentarian riots in Xanadu by century}}
→ NONSENSE
If you want to recreate the "xxth century" in the title (after 0 AD) then you can use this template to create a year to feed into {{Century name from decade or year}} :
{{Century name from decade or year|{{Title century|page=Category:20th-century hoaxes}}00}}
→ 0 වන සියවස{{Century name from decade or year|{{Title century|page=Category:21st-century hoaxes}}00|dash}}
→ 0 වන-සියවස
TemplateData
[සංස්කරණය]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Title century
Extracts a century number from the current page title. All parameters are optional.
Parameter | Description | Type | Status | |
---|---|---|---|---|
No match text | 1 nomatch | If no century number is found, output the "nomatch" value. Defaults to blank. | String | optional |
Override page title | page | Specified a page title to use other than the current page. If left blank, the template will use the title of the current page
| Page name | optional |
See also
[සංස්කරණය]- Template:Title year
- Template:Title year+1
- Template:Title year-1
- Template:Title year range
- Template:Title year2range
- Template:Title year2range+1
- Template:Title year2range-1
- Template:Title monthname
- Template:Title decade
- Template:Title century
- Template:Title number
- Template:Make YYYY–YY
- Template:Century name from title year
- Template:Century name from title decade
- Template:Century name from decade or year