Template:Wn/si/මාතෘකා ප්රවර්ගය
Appearance
|
මෙය මාතෘකා ප්රවර්ගය සඳහා වන ප්රවර්ගය වෙයි. නවතම පුවත්නවතම ලිපි සඳහා . |
සැමට දායක විය හැකි නිදහස් පුවත් මූලාශ්රය වන, විකිපුවත් වෙතින්. |
භාවිතය
[edit source]For a typical topic category, cut and paste the following sample code, and customize it as explained below.
{{Wn/si/Topic cat
|intro =
|image =
|imagecaption =
|portal = no
|offset = {{{offset|0}}}
|sisterprojects = yes
|wikibooks = {{subst:PAGENAME}}
|commons = Category:{{subst:PAGENAME}}
|wikidata =
|wikiquote = {{subst:PAGENAME}}
|wikisource = Author:{{subst:PAGENAME}}
|wiktionary = {{subst:PAGENAME}}
|wikiversity = {{subst:PAGENAME}}
|wikivoyage = {{subst:PAGENAME}}
}}
Customizations:
- Put categories below the template. People get [[:Category:Wn/si/News articles by person]], and at least one descendant of Category:Wn/si/People by occupation; countries get [[:Category:Wn/si/News articles by country]].
- Optionally, provide an
intro; it completes the descriptive sentence,- This is the category for
{{PAGENAME}},{{{intro}}}.
- This is the category for
- Optionally, provide an image, and perhaps a caption for the image; additional smaller images can also be included (see below).
- Check all the sister links, and adjust or remove them as appropriate.
- When looking for an alternative on any project, don't forget to check namespaces that aren't on the default search. (E.g., Wikisource default search only checks main and author.)
commons=linkoverrides the default Commons link,{{PAGENAME}}.commons=nosuppresses the Commons link entirely.wikipedia=linkoverrides the default Wikipedia link,{{PAGENAME}}.wikipedia=nosuppresses the Wikipedia link entirely.- If a sister doesn't have a suitable page in the English project but does in some other language, the latter may be linked by attaching the language prefix to the target; for example, if Andrés Manuel López Obrador has no page at English Wikiquote, but does have one at Spanish Wikiquote, one might specify
wikiquote=es:Andrés Manuel López Obrador.
Additional, less frequent customizations:
An additional parameter usage note can be used to specify a supplementary note on how to use the category, beyond what is implied by the introductory sentence. The note is displayed as a separate paragraph after the introductory sentence.
- An additional parameter
thecan be set to non-blank, to insert the word "the" before the topic name in the descriptive sentence. - An additional parameter
no commacan be set to non-blank, to suppress the comma between topic and non-blankintroin the descriptive sentence. - An additional parameter
pipecan be used to specify a different name for the topic in the descriptive sentence, instead of {{PAGENAME}}. - An additional parameter
targetcan be used to specify a different target for the primary link in the descriptive sentence; if used, this replaces the entire wikipedia target, including the "w:", so it can link to a page on any sister project, or to a page on Wikinews. - An additional parameter
externalcan be used to specify an external URL. (Use with discretion, please.) - An additional parameter
image sizecan be used to override the default size of the main image (default is 250px). - An additional parameter
image altcan be used to override the default alt text for the main image (default isimagewith the file extension stripped off). - Any of additional parameters
locmap,coat,emblem,logo,seal,flagcan be used to provide additional smaller images. When usingflag, consider suffixing the file name with{{!}}border. - An additional parameter
metacan be used to specify a sister link to that project. - An additional parameter
portalcan be set either tono, suppressing the portal link even if the portal exists; or to a different portal-space page name to use instead of{{PAGENAME}}(so the page checked for, and linked if it exists, isPortal:{{{portal). - An additional parameter
nolistcan be set to non-blank, to suppress the list of latest news. - Parameter
sisterprojectscan be set tono, or omitted, to omit the sister links section altogether. - An additional parameter
categorycan be used to specify what to list under Latest stories; this should be used if the category name contains any of certain special characters, such as apostrophe, that prevent {{PAGENAME}} from generating a correct article-list due to a known bug in the wiki software. - Removing parameter
offsetprevents the latest-article list from offering a scroll-down button.
අමතර අවධානයට
[edit source]| ඉහත දැක්වෙන උපදෙස්, Template:Wn/si/මාතෘකා ප්රවර්ගය/උපදෙස් වෙතින් ගෙනැවිත් ඇත. (සංස්කරණය | ඉතිහාසය) සංස්කාරක වරුන් හට මෙම සැකිල්ලේ වැලිපිල්ල (නිර්මාණය | mirror) සහ testcases (නිර්මාණය) පිටු තුළ අත්හදා බැලීම් සිදු කළ හැකිය. කරුණාකර /උපදෙස් උප පිටුව තුළට ප්රවර්ග එක් කරන්න. මෙම සැකිල්ලේ උප පිටු. |