Template:සොයුරු ව්යාපෘති සරල ලැයිස්තුව
Uses Lua: |
පසුබිම
[edit]This template provides a simple list of links to sister WMF projects.
- An interface to this template is already included in {{ශීර්ෂකය}}, {{කර්තෘ}} and {{ද්වාර ශීර්ෂකය}}. In the respective namespaces — Main, Author and Portal — you should use those templates and you should not use this template directly.
- Where the above header templates are not used this template is to be used.
- This template uses Module:සොයුරු ව්යාපෘති සරල ලැයිස්තුව to construct the list.
භාවිතය
[edit]{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | edition = yes | portal = | related_author = | wikipedia = | commons = | commonscat = | wikiquote = | wikinews = | wiktionary = | wikibooks = | wikiversity = | wikispecies = | wikivoyage = | wikidata = | meta = }}
පරාමිති
[edit]This template uses the following parameters. All parameters are optional. If no parameters are entered, relevant links will be accessed from Wikidata; if none is found, no output will be generated.
- edition: Link to the associated talk-page when set to Template:Tt.
- portal: Link to the named portal. Multiple portals can be linked by separating portals with a forward slash, eg. Template:Tt. Maximum of ten portals can be added
- related_author: Link to the named author. Multiple authors can be linked by separating authors with a forward slash, eg. Template:Tt
- wikipedia: Link to Wikipedia (displays as article)
- commons: Link to Wikicommons (displays as media) )
- commonscat: An alternative link to Wikicommons, this links to a category instead of a gallery (displays as media category)
- wikiquote: Link to Wikiquote (displays as quotes)
- wikinews: Link to Wikinews (displays as news)
- wiktionary: Link to Wiktionary (displays as definition)
- wikibooks: Link to Wikibooks (displays as textbook)
- wikiversity: Link to Wikiversity (displays as course)
- wikispecies: Link to Wikispecies (displays as taxonomy)
- wikivoyage: Link to Wikivoyage (displays as travel guide)
- wikidata: Link to Wikidata (displays as data log). NB: Wikidata pages are referenced by an alphanumeric code.
- meta: Link to Meta (displays as meta)
- wikidataswitch: If set to anything (eg. "X"), this will enable a link to search for the page title on Wikidata (unless the page is already connected to Wikidata, which will prevent the creation of this link). This is not intended for manual use.
විකි දත්ත
[edit]If a link is not specified manually using one of the above parameters, the template will check the page's associated Wikidata item for links. If any link is not found, the claims below will be used to find a relevant item and the first one to have a matching link will be used:
For example: Stella Dallas (Prouty) has item QQ106388874 (QQ106388874), which, as is common for "edition" items, does not have its own Wikipedia link. However, it has a QP629 (QP629) claim leading to QQ7607053 (QQ7607053), which does have a Wikipedia link: w:Stella Dallas (novel). Therefore, that will be the Wikipedia link for Stella Dallas (Prouty).
උදාහරන
[edit]සරළ
[edit]The template can be used as follows to create a single interwiki link, author link or portal link:
{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | wikipedia = Test }}
{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | portal = Portals }}
{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | portal = Afghanistan/Albania/Algeria/Andorra/Angola/Antigua and Barbuda/Argentina/Armenia/Australia/Austria }}
- related portals: Afghanistan, Albania, Algeria, Andorra, Angola, Antigua and Barbuda, Argentina, Armenia, Australia, Austria.
{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | related_author = William Shakespeare/Francis Bacon }}
සම්පූර්ණ
[edit]The template can also be used to display a collection of portal and interwiki links:
{{සොයුරු ව්යාපෘති සරල ලැයිස්තුව | edition = yes | portal = Portals/General Works/World History | related_author = William Shakespeare/Francis Bacon | wikipedia = Test | commons = Test | commonscat = Test | wikiquote = Test | wikinews = Test | wiktionary = Test | wikibooks = Test | wikiversity = Test | wikispecies = Test | wikivoyage = Test | wikidata = Q692 | meta = Test }}
- information about this edition.
- related portals: Portals, General Works, World History.
- related authors: William Shakespeare, Francis Bacon.
- සොයුරු ව්යාපෘති: විකිපීඩියා ලිපිය, Commons gallery, Commons category, quotes, news, definition, textbook, course, taxonomy, travel guide, විකිදත්ත අයිතමය, Meta.
ඉහත දැක්වෙන උපදෙස්, Template:සොයුරු ව්යාපෘති සරල ලැයිස්තුව/උපදෙස් වෙතින් ගෙනැවිත් ඇත. (සංස්කරණය | ඉතිහාසය) සංස්කාරකවරුන් හට, මෙම සැකිල්ලේ sandbox (නිර්මාණය | mirror) සහ testcases (නිර්මාණය) පිටු වල අත්හදා බැලීම් කළ හැකිය. ප්රවර්ග, /උපදෙස් උප පිටුව වෙත එක් කිරීමට කාරුණික වන්න. මෙම සැකිල්ල සතු උප පිටු. |