سانچہ:عنوان دہائی سے صدی کا نام
ظاہری ہیئت
Extracts a 4-digit decade from the current page title, and returns the name of the century in which that decade was.
Usage
[ترمیم]{{عنوان دہائی سے صدی کا نام}}
Mostly used in categorisation.
Parameters
[ترمیم]All parameters are optional
- The single word "dash" changes the output from "nth century" to "nth-century"
- A "nomatch" parameter may be used to specify text to be return if the input cannot be processed. The default behaviour is to return an empty string if there is no match
Examples
[ترمیم]{{عنوان دہائی سے صدی کا نام}}
When used on e.g. Category:2010s in Northern Ireland, returns →21st century{{عنوان دہائی سے صدی کا نام|dash}}
When used on e.g. Category:1970s in Northern Ireland, returns →20th-century{{عنوان دہائی سے صدی کا نام}}
When used on e.g. زمرہ:بیلفاسٹ, returns →{{عنوان دہائی سے صدی کا نام|nomatch=FAIL}}
When used on e.g. Category:Ballymena, returns →FAIL
Implementation
[ترمیم]This template is implemented by using {{Century name from decade or year}} around {{Title decade}}.
The same effect can be achieved by using {{دہائی یا سال کے لحاظ سے صدی|{{Title decade}}s}} ... but this wrapper makes more easily-read markup
| اوپر دی گئی دستاویز صفحہ سانچہ:عنوان دہائی سے صدی کا نام/دستاویز سے شامل کی گئی ہے۔ (ترمیم | تاریخچہ) صارفین سانچہ کے تختہ مشق (تخلیق | آئینہ) اور ثابتات (تخلیق) میں تجربات کرسکتے ہیں۔ براہ کرم /دستاویز کے ذیلی صفحہ پر زمرہ جات شامل فرمائیں۔ اس سانچہ کے ذیلی صفحات۔ |