Wikipedia kcgwiki https://kcg.wikipedia.org/wiki/A%CC%B1tsak_Wat_Wu MediaWiki 1.39.0-wmf.25 first-letter Media Wat khwo A‌̱lyiat A‌̱tyunta̱m A‌̱lyiat a‌̱tyunta‌̱m Wukipedia A‌̱lyiat Wukipedia Fail A‌̱lyiat fail MediaWiki A‌̱lyiat MediaWiki Ta‌̱mpi‌̱let A‌̱lyiat ta‌̱mpi‌̱let Beang A‌̱lyiat beang Sa A‌̱lyiat nsa TimedText TimedText talk Module Module talk Gadget Gadget talk Gadget definition Gadget definition talk Wukipedia:A̱na̱nwuai sot-á̱niet 4 1199 16067 15907 2022-08-18T20:42:36Z Kambai Akau 15 The second "-a" in "Wukipedia" makes it a question. The "-a" is attached to the last word in some cases, like this for e.g., but could still be correct as "...Wukipedia a?", rather than "...Wukipediaa?" wikitext text/x-wiki __NOTOC__ __NEWSECTIONLINK__ {{Ka̱la̱nda}} [[Fail:Wiki puzzle gold.png|64px|Wiki puzzle|right]] '''Ma̱aba̱n/tyebaa ang ma̱ng bai A̱na̱nwuai sot-á̱niet ka!''' Wat huni tyai nta̱m nang zi̱ nyia̱ a̱ni ma̱ng nkhang tazwa Wukipedia nTyap hu. A yet a̱niet a̱fai wa mi̱ Wukipediaa? Da̱ nwuan ''[[w:en:Wikipedia:Contributing to Wikipedia|vak mbeang nkyang di̱ wat Wukipedia]]'' (di̱n Shong) mat kuzang kyang ku myim a lyen a̱ni a ka ntsa jhyuk hu. Mi̱ di̱ yong huni, '''[[Wat_khwo:Statistics|a̱yaati̱kut {{NUMBEROFARTICLES}}]]''' bya shyia̱ wuki huni. <br clear="all"></br> ---- * '''kcg:''' Ka̱nang a cat a shyia̱ tyiang a̱toot shi [[m:bot|tswambishyi]] ji a lyip di̱ wat huni. Wuki huni nyian ta̱m ma̱ng [[m:bot policy|standard bot policy]] huhwa, a̱wot ku tyei [[m:bot policy#Global_bots|tswámbishyi swanta]] dyem bah, da̱ a̱kwonu a̱kya, ku ni̱ nnwuak [[m:bot policy#Automatic_approval|ntangka̱i tswámbishyi ghyáng a̱ka̱wat nyian nta̱m ma̱sa̱t kiki]]. Tswámbishyi jhyang ji̱ tak kyangcat mba hu a̱tatak, a̱wot ji̱ [[m:Steward requests/Bot status|cat shyia̱ a̱wat]] mbwak a̱khwo-wuki ka̱ a̱ghyang a̱niet byia̱ a̱fa a̱feang tazwa nhu bah. * '''en:''' Requests for the [[m:bot|bot]] flag should be made on this page. This wiki uses the [[m:bot policy|standard bot policy]], and allows [[m:bot policy#Global_bots|global bots]] and [[m:bot policy#Automatic_approval|automatic approval of certain types of bots]]. Other bots should apply below, and then [[m:Steward requests/Bot status|request access]] from a steward if there is no objection. ==Cat cuk a̱kwak a̱son/Administratorship request== Voting is over. Kambai Akau has been elected administrator. You can request admin permissions in Meta. --[[A‌̱tyunta̱m:LisafBia6531|LisafBia6531]] ([[A‌̱lyiat a‌̱tyunta‌̱m:LisafBia6531|a̱lyiat]]) 10:39, 13 Zwat A̱natat 2022 (WAT) ---- ===[[User:Kambai Akau|Kambai Akau]]=== : '''kcg: Cat Cuk A̱kwak A̱son''': N byiat nzi̱t a̱mgba̱m a̱mali kani. Á̱ ngyei nung Kambai A̱ka̱u. N ku tsa nta̱m njhyuk nkyang mi̱ Wukipedia nShong ma̱ a̱lyia̱ 2016. A̱wot di̱n jen a̱ja, Wukipedia nTyap hu ka̱n shyia̱ bah. N si̱ ba̱ tak kyang cat nung hu a̱zaghyi Sot A̱lyem Wukimedia ji ma̱ a̱tuk mam 3 Zwat Swak ma̱ng Sweang 2020 mat ji̱ ghwon Tyap ji ji̱ shyia̱ Wukipedia a̱pyia̱ nji hu, a̱wot dundung ma̱ng á̱kpa̱ndang ta̱m nung ba - [[User:Zbobai|Zwandien Bobai]] ma̱ng [[User:Steve Kally|Stephen Kalad Jonathan]], a̱tyubeang sot nzi̱t wu - [[User:Amire80|Amir Aharoni]], ma̱ng á̱nietjhyuk ba̱ ntung bai a̱ma̱lyim a̱ni nang n si̱ mi̱n ngyei lyulyoot mba hu a̱nyanyin a̱ni, zi̱ si̱ nyia̱ ta̱m ba̱t ku si̱ tat nzi̱t shyia̱ Wukipedia nzi̱t hu - Wukipedia nTyap hu. Mi̱ di̱ shim nyin hu, n cat n shyia̱ a̱wat yet a̱kwak a̱son mi̱ Wukipedia nTyap hu. Ka̱ a shim ku a shim bah ku a cat yong tsi̱tsak, tak cat ang hu ma̱ng jat ang ji a̱tafa lyuut cat shim huni ma̱sa̱kut. N gwai ba̱t. : '''en: Administratorship Request''': Greetings to us all in this house. My name is Kambai Akau. I began editing on the English Wikipedia in 2016. But as of then, there was no Tyap Wikipedia. I then forwarded my request to the Wikimedia Language Committee to allow Tyap get its own Wikipedia on 3 December 2020, which together with my colleagues - [[User:Zbobai|Zwandien Bobai]] and [[User:Steve Kally|Stephen Kalad Jonathan]], our community helper - [[User:Amire80|Amir Aharoni]], and editors who came afterwards whom I cannot name one by one, all worked to attain the status of gaining our own Wikipedia - the Tyap Wikipedia. With your agreement, I want to be an administrator in the Tyap Wikipedia. If you consent or don't consent or wish to remain neutral, please indicate your decision with your reason below this request. Thank you indeed. [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 23:17, 4 Zwat A̱taa 2022 (WAT) ==== (+) Li̱n a̱ma/Support ==== I support Levi Kambai's aspiration for the adminship. He has done enough in the Tyap Wikipedia team and community. His love for the development of Tyap Language is laudable. Therefore, I endorse his candidacy. [[A‌̱tyunta̱m:Zbobai|Zbobai]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Zbobai|a̱lyiat]]) 22:18, 5 Zwat A̱taa 2022 (WAT) *Support --[[A‌̱tyunta̱m:Adehertogh|Adehertogh]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Adehertogh|a̱lyiat]]) 09:53, 11 Zwat A̱taa 2022 (WAT) *:N gwai! (Thanks!) [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 23:19, 16 Zwat A̱natat 2022 (WAT) *Support [[A‌̱tyunta̱m:LisafBia6531|LisafBia6531]] ([[A‌̱lyiat a‌̱tyunta‌̱m:LisafBia6531|a̱lyiat]]) 22:36, 13 Zwat A̱taa 2022 (WAT) *:N gwai! (Thanks!) [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 23:19, 16 Zwat A̱natat 2022 (WAT) * I strongly support Levi to be the the admin of this community. [[A‌̱tyunta̱m:Steve Kally|Steve Kally]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Steve Kally|a̱lyiat]]) 18:48, 29 Zwat A̱taa 2022 (WAT) *:N gwai! (Thanks!) [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 23:19, 16 Zwat A̱natat 2022 (WAT) ==== (-) Nyia̱ fi̱p/Oppose ==== ==== (0) Yong tsi̱tsak/Neutral ==== == Bot policy proposal == {{int:hello}} To facilitate [[m:Special:MyLanguage/Stewards|steward]] granting of bot access, I suggest implementing the [[m:Special:MyLanguage/Bot policy|standard bot policy]] on this wiki. In particular, this policy allows stewards to automatically flag known interlanguage linking bots (if this page says that is acceptable). The policy also enables [[m:Bot policy#Global_bots|global bots]] on this wiki (if this page says that is acceptable), which are trusted bots that will be given bot access on every wiki that allows global bots. This policy makes bot access requesting much easier for local users, operators, and stewards. To implement it we only need to create a redirect to this page (or to the dedicated page the community uses to handle bot approvals) from [[Project:Bot policy]], and add a line at the top noting that it is used here. Please read the text at [[m:Bot policy]] before commenting. If you object, please say so; I hope to implement it soon if there is no objection, since it is particularly written to streamline bot requests on wikis with little or no community interested in bot access requests. {{int:thank-you}} --[[A‌̱tyunta̱m:MarcoAurelio|MarcoAurelio]] ([[A‌̱lyiat a‌̱tyunta‌̱m:MarcoAurelio|a̱lyiat]]) 11:23, 14 Zwat A̱taa 2022 (WAT) :Greetings [[A‌̱tyunta̱m:MarcoAurelio|MarcoAurelio]]. On my part, and I believe, the rest of the translators in the Tyap wiki, there is no objection. Please go ahead, and thanks! [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 12:29, 17 Zwat A̱taa 2022 (WAT) ::Hello @[[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]]. I went ahead and implemented it by [[Special:Diff/14621|redirecting]] [[Project:Bot policy]] to this page. I'll add a note on top of this page as well indicating that this project uses the Meta global bot policy. If in the future you want to discuss bot requests in a different page, feel free to update [[Project:Bot policy]] pointing it to the relevant bot request page. Best regards, --[[A‌̱tyunta̱m:MarcoAurelio|MarcoAurelio]] ([[A‌̱lyiat a‌̱tyunta‌̱m:MarcoAurelio|a̱lyiat]]) 11:05, 29 Zwat A̱taa 2022 (WAT) :::[[A‌̱tyunta̱m:MarcoAurelio|MarcoAurelio]] -- Okay, no problems. Regards, [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 14:18, 29 Zwat A̱taa 2022 (WAT) == Adminship Request (LisafBia6531) == Hello, I'm LisafBia6531, requesting a temporary admin to further assist with the operation of this wiki. I hope you will accept my request. Thanks. [[A‌̱tyunta̱m:LisafBia6531|LisafBia6531]] ([[A‌̱lyiat a‌̱tyunta‌̱m:LisafBia6531|a̱lyiat]]) 11:04, 12 Zwat A̱ni̱nai 2022 (WAT) ==== (+) Li̱n a̱ma/Support ==== '''Support''' -- I support [[A‌̱tyunta̱m:LisafBia6531|LisafBia6531]]'s adminship bid. He is doing a lot for this wiki already. [[A‌̱tyunta̱m:Kambai Akau|Kambai Akau]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Kambai Akau|a̱lyiat]]) 11:37, 12 Zwat A̱ni̱nai 2022 (WAT) ==== (-) Nyia̱ fi̱p/Oppose ==== '''Oppose''' Apparently, you do not know the local language, which would make the stuff to be complicated. Also, the local language seems incompatible with your native language, Turkish. --[[A‌̱tyunta̱m:Victor Trevor|Victor Trevor]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Victor Trevor|a̱lyiat]]) 13:51, 12 Zwat A̱ni̱nai 2022 (WAT) : [[User:Victor Trevor|Victor Trevor]], I guess no one knows the language but [[User:Kambai Akau|Kambai Akau.]] [[A‌̱tyunta̱m:LisafBia6531|LisafBia6531]] ([[A‌̱lyiat a‌̱tyunta‌̱m:LisafBia6531|a̱lyiat]]) 13:53, 12 Zwat A̱ni̱nai 2022 (WAT) ::I appreciate Kambai Akau for taking responsibility. It is great for a new project that there is an administrator who knows the local language. But, the answer [about your adminship] is still no. Thanks for your contributions. --[[A‌̱tyunta̱m:Victor Trevor|Victor Trevor]] ([[A‌̱lyiat a‌̱tyunta‌̱m:Victor Trevor|a̱lyiat]]) 14:02, 12 Zwat A̱ni̱nai 2022 (WAT) ==== (0) Yong tsi̱tsak/Neutral ==== k9dp3d0z7qtcrc1fob6ph7mnxyqejzu Module:Sandbox/doc 828 1538 16031 14957 2022-08-18T15:52:40Z Kambai Akau 15 /* Scribunto testing area */ wikitext text/x-wiki {{module other|{{ombox|type=notice|image=[[File:Template-protection-shackle.svg|40x40px|link=|alt=Protected]]|text=Edits to this page are restricted to [[Wikipedia:template editor|template editor]]s because it is frequently edited by mistake. If you want to test a module, see the instructions below; do not edit this page itself.}}}} {{not a sandbox}} == Scribunto testing area == This is not an actual [[WP:Lua|Lua]] module. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace. Please name your experimental modules in the following format to help keep things tidy: Module:Sandbox/<var>A̱lyoot A̱tyunta̱m Ang Ka</var> <inputbox> type=create preload=Module:Sandbox/new editintro=Template:New module editintro prefix=Module:Sandbox/ placeholder=Tyia̱ a̱lyoot-a̱tyunta̱m ang ka a̱ji button label=Create new sandbox module </inputbox> If you need more Module sandboxes, create subpages of the sandbox thus created. You can use [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Sandbox%2F&namespace=828&stripprefix=1 Special:PrefixIndex/Module:Sandbox] to list modules in this area. <!-- DO NOT EDIT THIS PAGE AS A TEST! IT IS DOCUMENTATION. Thanks. --> j3u3xkbrapzkcih1qnk7owvemf6yclp 16032 16031 2022-08-18T19:03:09Z Kambai Akau 15 wikitext text/x-wiki {{module other|{{ombox|type=notice|image=[[File:Template-protection-shackle.svg|40x40px|link=|alt=Protected]]|text=Á̱̇ nvwuong njhyuk mi̱ wat huni mbwak á̱niet ba̱ nwai yet [[Wikipedia:template editor|á̱nietjhyuk ta̱mpi̱let]] a̱ni da̱nian mi̱ di̱ jen ma̱ a̱di̱di̱t á̱ ni̱ jhyuk nhu di̱ ghyuap. If you want to test a module, see the instructions below; do not edit this page itself.}}}} {{not a sandbox}} == Scribunto testing area == This is not an actual [[WP:Lua|Lua]] module. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace. Please name your experimental modules in the following format to help keep things tidy: Module:Sandbox/<var>A̱lyoot A̱tyunta̱m Ang Ka</var> <inputbox> type=create preload=Module:Sandbox/new editintro=Template:New module editintro prefix=Module:Sandbox/ placeholder=Tyia̱ a̱lyoot-a̱tyunta̱m ang ka a̱ji button label=Create new sandbox module </inputbox> If you need more Module sandboxes, create subpages of the sandbox thus created. You can use [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Sandbox%2F&namespace=828&stripprefix=1 Special:PrefixIndex/Module:Sandbox] to list modules in this area. <!-- DO NOT EDIT THIS PAGE AS A TEST! IT IS DOCUMENTATION. Thanks. --> qlup52o7nma7iikt4kvx27wemgwiope 16033 16032 2022-08-18T19:05:25Z Kambai Akau 15 wikitext text/x-wiki {{module other|{{ombox|type=notice|image=[[File:Template-protection-shackle.svg|40x40px|link=|alt=Protected]]|text=Á̱ nvwuong njhyuk mi̱ wat huni mbwak á̱niet ba̱ nwai yet [[Wikipedia:template editor|á̱nietjhyuk ta̱mpi̱let]] a̱ni da̱nian mi̱ di̱ jen ma̱ a̱di̱di̱t á̱ ni̱ jhyuk nhu ma̱ng ghyuap. Ka̱nang a cat a mak ''module'' a̱ghyang, nwuan nka̱nda̱n na a̱tatak; yok jhyuk wat huni bah.}}}} {{not a sandbox}} == Scribunto testing area == This is not an actual [[WP:Lua|Lua]] module. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace. Please name your experimental modules in the following format to help keep things tidy: Module:Sandbox/<var>A̱lyoot A̱tyunta̱m Ang Ka</var> <inputbox> type=create preload=Module:Sandbox/new editintro=Template:New module editintro prefix=Module:Sandbox/ placeholder=Tyia̱ a̱lyoot-a̱tyunta̱m ang ka a̱ji button label=Create new sandbox module </inputbox> If you need more Module sandboxes, create subpages of the sandbox thus created. You can use [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Sandbox%2F&namespace=828&stripprefix=1 Special:PrefixIndex/Module:Sandbox] to list modules in this area. <!-- DO NOT EDIT THIS PAGE AS A TEST! IT IS DOCUMENTATION. Thanks. --> od9v9be0bv9tfd30hy2x4ond7z52d8m 16034 16033 2022-08-18T19:09:14Z Kambai Akau 15 /* A̱vwuo mak Scribunto */ wikitext text/x-wiki {{module other|{{ombox|type=notice|image=[[File:Template-protection-shackle.svg|40x40px|link=|alt=Protected]]|text=Á̱ nvwuong njhyuk mi̱ wat huni mbwak á̱niet ba̱ nwai yet [[Wikipedia:template editor|á̱nietjhyuk ta̱mpi̱let]] a̱ni da̱nian mi̱ di̱ jen ma̱ a̱di̱di̱t á̱ ni̱ jhyuk nhu ma̱ng ghyuap. Ka̱nang a cat a mak ''module'' a̱ghyang, nwuan nka̱nda̱n na a̱tatak; yok jhyuk wat huni bah.}}}} {{not a sandbox}} == A̱vwuo mak ''Scribunto'' == Si̱ huni yet a̱tsak ''module'' [[WP:Lua|Lua]] wa bah. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace. Please name your experimental modules in the following format to help keep things tidy: Module:Sandbox/<var>A̱lyoot A̱tyunta̱m Ang Ka</var> <inputbox> type=create preload=Module:Sandbox/new editintro=Template:New module editintro prefix=Module:Sandbox/ placeholder=Tyia̱ a̱lyoot-a̱tyunta̱m ang ka a̱ji button label=Create new sandbox module </inputbox> If you need more Module sandboxes, create subpages of the sandbox thus created. You can use [//en.wikipedia.org/w/index.php?title=Special%3APrefixIndex&prefix=Sandbox%2F&namespace=828&stripprefix=1 Special:PrefixIndex/Module:Sandbox] to list modules in this area. <!-- DO NOT EDIT THIS PAGE AS A TEST! IT IS DOCUMENTATION. Thanks. --> 4oo2pj8kasx3xq6sac52a8jzvhreptl Ta‌̱mpi‌̱let:Sister-inline 10 1553 16024 14973 2022-08-18T15:06:08Z Kambai Akau 15 wikitext text/x-wiki [[File:{{#switch:{{lc:{{{project|}}}}} | commons|commonscat = Commons-logo.svg | meta|metawiki|m = Wikimedia Community Logo.svg | wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg | wikidata|data = Wikidata-logo.svg | cookbook = Wikibooks-logo-en-noslogan.svg | wikijunior = Wikibooks-logo-en-noslogan.svg | wikiquote|quote|wqt|q = Wikiquote-logo.svg | wikipedia|wp|w = Wikipedia-logo-v2.svg | wikisource|wikisource2|source|source2|ws|ws2|s|s2 = Wikisource-logo.svg | wiktionary|wkt|wdy|d = Wiktionary-logo-en-v2.svg | wikinews|news|wnw|n = Wikinews-logo.svg | wikispecies|species = Wikispecies-logo.svg | wikiversity|wvy|v = Wikiversity logo 2017.svg | wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg | mediawiki|mw = Mediawiki.png | outreachwiki|outreach = Wikimedia Outreach.png | incubator = Incubator-notext.svg | #default = Wikimedia-logo.svg }}|16x16px|class=noviewer|alt=]] {{#if:{{{short|}}}|{{{links|}}}|{{#if:{{{list|}}}|{{#switch:{{lc:{{{project|}}}}} | commons = Nyinyiit shei nkhang a̱meang shyia̱ Wikimedia Commons | commonscat = Si̱sa a̱meang shyia̱ Wikimedia Commons | meta|metawiki|m = | wikibooks|wbk|wb|b = Lyuut shyia̱ Wikibooks | wikidata|data = | cookbook = Cookbooks at Wikibooks | wikijunior = Wikijunior at Wikibooks | wikiquote|quote|wqt|q = Quotations on Wikiquote | wikipedia|wp|w = | wikisource|wikisource2|source|source2|ws|ws2|s|s2 = Texts on Wikisource | wiktionary|wkt|wdy|d = Definitions and translations at Wiktionary | wikinews|news|wnw|n = | wikispecies|species = Data related to Wikispecies | wikiversity|wvy|v = Learning materials from Wikiversity | wikivoyage|voyage|voy = Travel information on Wikivoyage | mediawiki|mw = | outreachwiki|outreach = | incubator = | #default = }}: {{{list}}}|{{#switch:{{lc:{{{project|}}}}} | commons = Media related to {{{links|}}} at Wikimedia Commons | commonscat = Media related to {{{links|}}} at Wikimedia Commons | meta|metawiki|m = | wikibooks|wbk|wb|b = {{{links|}}} at Wikibooks{{{extratext|}}} | wikidata|data = | cookbook = {{{links|}}} at the Wikibooks Cookbook subproject{{{extratext|}}} | wikijunior = {{{links|}}} at the Wikibooks Wikijunior subproject{{{extratext|}}} | wikiquote|quote|wqt|q = Quotations related to {{{links|}}} at Wikiquote | wikipedia|wp|w = | wikisource|source|ws|s = Works related to {{{links|}}} at Wikisource | wikisource2|source2|ws2|s2 = The full text of {{{links|}}} at Wikisource | wiktionary|wkt|wdy|d = The dictionary definition of {{{links|}}} at Wiktionary | wikinews|news|wnw|n = | wikispecies|species = Data related to {{{links|}}} at Wikispecies | wikiversity|wvy|v = Learning materials related to {{{links|}}} at Wikiversity | wikivoyage|voyage|voy = {{{links|}}} travel guide from Wikivoyage | mediawiki|mw = | outreachwiki|outreach = | incubator = | #default = }}{{{extratext|}}}}} }}<noinclude> {{documentation}} </noinclude> k8rzrsti7rlpcsoy2rcyqabkchoc5gq Ta‌̱mpi‌̱let:Sister-inline/doc 10 1554 16025 14974 2022-08-18T15:07:59Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{High-use}} This is a meta-template used for creating interwiki links to other [[WP:sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use [[WP:Wikidata|Wikidata]] to add them to the sidebar. This is a companion template to {{tl|nta̱m a̱meang}} to be used where a floating side box causes layout problems on short articles. == Usage == This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> *'''{{para|project}}''' The sister project to link to. Used to select the displayed logo and the text. *'''{{para|links}}''' A single interwiki link to the article at the sister project. Displays with text such as "Media related to <code><nowiki>{{{links}}}</nowiki></code> at Wikimedia Commons" *'''{{para|list}}''' Alternatively, a list of multiple links to articles at sister projects. Displays with text such as "Related media at Wikimedia Commons: <code><nowiki>{{{list}}}</nowiki></code>" '''Example:''' <pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} </pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} Adding <code>|short=yes</code> will omit the following explanatory text; this can be useful for adding short links to [[WP:NAVBOX|navigational boxes]], for instance. This permits the link's text to differ from the link's address in namespace. '''Example:''' <pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} </pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} == TemplateData == {{TemplateDataHeader}} <templatedata> { "description": "This is a meta-template used for creating interwiki links to other sister projects of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use Wikidata to add them to the sidebar.\n\nThis is a companion template to {{tl|sister project}} to be used where a floating side box causes layout problems on short articles.", "paramOrder": [ "project", "list", "links", "short", "extratext" ], "params": { "links": { "label": "Link(s)", "description": "Code that renders one or more sister project link. You need command of Wikimarkup. Multiple links can be separated with comma plus space. This parameter is ignored if \"List of links\" parameter is included.", "type": "unbalanced-wikitext" }, "list": { "label": "List of links", "description": "Code that renders a list of links. You need command of Wikimarkup. Overrides \"Link(s)\" parameter.", "type": "unbalanced-wikitext" }, "project": { "label": "Project name", "description": "The sister project to link to. This parameter is used to customize text and logo and has otherwise no other impact. Acceptable values are: commons, commonscat, meta, (metawiki, m), wikibooks, (wbk, wb, b), wikidata, (data), cookbook, wikiquote, (quote, wqt, q), wikipedia, (wp, w), wikisource, (wikisource2, source, source2, ws, ws2, s, s2), wiktionary, (wkt, wdy, d), wikinews, (news, wnw, n), wikispecies, (species), wikiversity, (wvy, v), wikivoyage, (voyage, voy), mediawiki, (mw), outreachwiki, (outreach), incubator", "type": "string" }, "short": { "label": "Short?", "description": "Setting this parameter to \"yes\" omits rendering text labels and causes the content of \"List of links\" parameter to be inserted.", "type": "boolean", "autovalue": "yes", "suggested": true }, "extratext": { "label": "Extra text", "description": "Trailing text appended to the end of everything rendered.", "type": "string" } } } </templatedata> == See also == * {{tl|Sister project}} * {{tl|Interlanguage link}} * [[Help:Interlanguage links]] * [[Help:Interwikimedia links]] * [[Wikipedia:Wikimedia sister projects]] * [[Wikipedia:Babel]] – Userpage language proficiency banners * [[Wikipedia:Translation]] <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] [[Category:Exclude in print|{{PAGENAME}}]] }}</includeonly> 537ep3warxi0a4wqcqrb6czmt32dmb2 16026 16025 2022-08-18T15:08:24Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{High-use}} This is a meta-template used for creating interwiki links to other [[WP:sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use [[WP:Wikidata|Wikidata]] to add them to the sidebar. This is a companion template to {{tl|ta̱m a̱meang}} to be used where a floating side box causes layout problems on short articles. == Usage == This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> *'''{{para|project}}''' The sister project to link to. Used to select the displayed logo and the text. *'''{{para|links}}''' A single interwiki link to the article at the sister project. Displays with text such as "Media related to <code><nowiki>{{{links}}}</nowiki></code> at Wikimedia Commons" *'''{{para|list}}''' Alternatively, a list of multiple links to articles at sister projects. Displays with text such as "Related media at Wikimedia Commons: <code><nowiki>{{{list}}}</nowiki></code>" '''Example:''' <pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} </pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} Adding <code>|short=yes</code> will omit the following explanatory text; this can be useful for adding short links to [[WP:NAVBOX|navigational boxes]], for instance. This permits the link's text to differ from the link's address in namespace. '''Example:''' <pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} </pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} == TemplateData == {{TemplateDataHeader}} <templatedata> { "description": "This is a meta-template used for creating interwiki links to other sister projects of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use Wikidata to add them to the sidebar.\n\nThis is a companion template to {{tl|sister project}} to be used where a floating side box causes layout problems on short articles.", "paramOrder": [ "project", "list", "links", "short", "extratext" ], "params": { "links": { "label": "Link(s)", "description": "Code that renders one or more sister project link. You need command of Wikimarkup. Multiple links can be separated with comma plus space. This parameter is ignored if \"List of links\" parameter is included.", "type": "unbalanced-wikitext" }, "list": { "label": "List of links", "description": "Code that renders a list of links. You need command of Wikimarkup. Overrides \"Link(s)\" parameter.", "type": "unbalanced-wikitext" }, "project": { "label": "Project name", "description": "The sister project to link to. This parameter is used to customize text and logo and has otherwise no other impact. Acceptable values are: commons, commonscat, meta, (metawiki, m), wikibooks, (wbk, wb, b), wikidata, (data), cookbook, wikiquote, (quote, wqt, q), wikipedia, (wp, w), wikisource, (wikisource2, source, source2, ws, ws2, s, s2), wiktionary, (wkt, wdy, d), wikinews, (news, wnw, n), wikispecies, (species), wikiversity, (wvy, v), wikivoyage, (voyage, voy), mediawiki, (mw), outreachwiki, (outreach), incubator", "type": "string" }, "short": { "label": "Short?", "description": "Setting this parameter to \"yes\" omits rendering text labels and causes the content of \"List of links\" parameter to be inserted.", "type": "boolean", "autovalue": "yes", "suggested": true }, "extratext": { "label": "Extra text", "description": "Trailing text appended to the end of everything rendered.", "type": "string" } } } </templatedata> == See also == * {{tl|Sister project}} * {{tl|Interlanguage link}} * [[Help:Interlanguage links]] * [[Help:Interwikimedia links]] * [[Wikipedia:Wikimedia sister projects]] * [[Wikipedia:Babel]] – Userpage language proficiency banners * [[Wikipedia:Translation]] <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] [[Category:Exclude in print|{{PAGENAME}}]] }}</includeonly> qssq7qe64xfpomwvijsyqjjsu7pescd 16027 16026 2022-08-18T15:09:29Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{High-use}} This is a meta-template used for creating interwiki links to other [[WP:sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use [[WP:Wikidata|Wikidata]] to add them to the sidebar. This is a companion template to {{tl|ta̱m a̱meang}} to be used where a floating side box causes layout problems on short articles. == Usage == This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> *'''{{para|project}}''' The sister project to link to. Used to select the displayed logo and the text. *'''{{para|links}}''' A single interwiki link to the article at the sister project. Displays with text such as "Media related to <code><nowiki>{{{links}}}</nowiki></code> at Wikimedia Commons" *'''{{para|list}}''' Alternatively, a list of multiple links to articles at sister projects. Displays with text such as "Related media at Wikimedia Commons: <code><nowiki>{{{list}}}</nowiki></code>" '''Example:''' <pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} </pre> {{sister-inline |project=commons |links=[[commons:Dog|Dogs]] }} Adding <code>|short=yes</code> will omit the following explanatory text; this can be useful for adding short links to [[WP:NAVBOX|navigational boxes]], for instance. This permits the link's text to differ from the link's address in namespace. '''Example:''' <pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} </pre> {{sister-inline |project=v |links=[[v:Category:Wikiversity quizzes placed on Wikipedia|Quizzes on Wikipedia articles can be found at Wikiversity]] |short=yes }} == TemplateData == {{TemplateDataHeader}} <templatedata> { "description": "This is a meta-template used for creating interwiki links to other sister projects of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use Wikidata to add them to the sidebar.\n\nThis is a companion template to {{tl|sister project}} to be used where a floating side box causes layout problems on short articles.", "paramOrder": [ "project", "list", "links", "short", "extratext" ], "params": { "links": { "label": "Link(s)", "description": "Code that renders one or more sister project link. You need command of Wikimarkup. Multiple links can be separated with comma plus space. This parameter is ignored if \"List of links\" parameter is included.", "type": "unbalanced-wikitext" }, "list": { "label": "List of links", "description": "Code that renders a list of links. You need command of Wikimarkup. Overrides \"Link(s)\" parameter.", "type": "unbalanced-wikitext" }, "project": { "label": "Project name", "description": "The sister project to link to. This parameter is used to customize text and logo and has otherwise no other impact. Acceptable values are: commons, commonscat, meta, (metawiki, m), wikibooks, (wbk, wb, b), wikidata, (data), cookbook, wikiquote, (quote, wqt, q), wikipedia, (wp, w), wikisource, (wikisource2, source, source2, ws, ws2, s, s2), wiktionary, (wkt, wdy, d), wikinews, (news, wnw, n), wikispecies, (species), wikiversity, (wvy, v), wikivoyage, (voyage, voy), mediawiki, (mw), outreachwiki, (outreach), incubator", "type": "string" }, "short": { "label": "Short?", "description": "Setting this parameter to \"yes\" omits rendering text labels and causes the content of \"List of links\" parameter to be inserted.", "type": "boolean", "autovalue": "yes", "suggested": true }, "extratext": { "label": "Extra text", "description": "Trailing text appended to the end of everything rendered.", "type": "string" } } } </templatedata> == See also == * {{tl|Ta̱m a̱meang}} * {{tl|Interlanguage link}} * [[Help:Interlanguage links]] * [[Help:Interwikimedia links]] * [[Wikipedia:Wikimedia sister projects]] * [[Wikipedia:Babel]] – Userpage language proficiency banners * [[Wikipedia:Translation]] <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] [[Category:Exclude in print|{{PAGENAME}}]] }}</includeonly> cu3px20958qz012f6ks04k7n77nxirc Ta‌̱mpi‌̱let:Ta̱m a̱meang 10 1557 15995 14977 2022-08-18T13:30:01Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project]] nat [[Ta‌̱mpi‌̱let:Ta̱m a̱meang]]: Di̱n Tyap wikitext text/x-wiki {{Side box | metadata=no | position = {{{position|}}} | image = {{#switch: {{{image|}}} | none = <!-- "image=none", do nothing --> | = <!-- No image fed, select an image --> [[File:{{#switch: {{lc: {{{project|}}} }} | commons = Commons-logo.svg | meta|metawiki|m = Wikimedia Community Logo.svg | wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg | wikidata|data = Wikidata-logo.svg | wikiquote|quote|wqt|q = Wikiquote-logo.svg | wikipedia|wp|w = Wikipedia-logo-v2.svg | wikisource|source|ws|s = Wikisource-logo.svg | wiktionary|wkt|wdy|d = Wiktionary-logo-en-v2.svg | wikinews|news|wnw|n = Wikinews-logo.svg | wikispecies|species = Wikispecies-logo.svg | wikiversity|wvy|v = Wikiversity logo 2017.svg | wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg | mediawiki|mw = MediaWiki-2020-icon.svg | outreachwiki|outreach = Wikimedia Outreach.png | incubator = Incubator-notext.svg | #default = Wikimedia-logo.svg }}|40x40px|class=noviewer|alt=|link= ]] | #default = {{{image|}}} }} | textclass = {{{textclass|plainlist}}} | textstyle = {{{textstyle|}}} | text = {{{text}}} | below = {{{below|}}} | imageright = {{{imageright|}}} | class = plainlinks sistersitebox }}<noinclude>{{Documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> 8xj4znh9zge3vfvmy1745bkgpe5h4v4 Ta‌̱mpi‌̱let:Side box/doc 10 1559 16008 14979 2022-08-18T13:52:14Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> {{High-use|946171}} {{Lua|Module:Side box}} {{Template shortcut |Sidebox}} <div style="clear:right;margin-top:1.0em;"> {{Side box |metadata=No | above = '''''above''''' content appears here, in a separate row above the main text area | image = {{smaller|('''''image''''')}} | text = '''''text''''' content, the box's main content, appears here | imageright = {{longitem|style=font-size:90%|1=('''''image<br/>right'''''{{hair space}})}} | below = '''''below''''' content appears here, in a separate row below the main text area }} {{Parameter names example|_template=Side box |above |image |text |imageright |below }} This template is a meta-template that can be used to create nicely-styled floating content boxes (see example directly opposite). </div> ===Parameters=== {| class="wikitable" ! Parameter !! Description |- | metadata || Set as {{para|metadata|no}} to suppress the [[Meta element|HTML "metadata" class]]. |- | position || Set as {{para|position|left}} to position the box on the left-hand rather than right-hand side of the page and remove the float. |- | class || [[CSS]] [[HTML attribute|class]]es to apply to the box. |- | style || [[CSS styles]] to apply to the box. |- | abovestyle || CSS styles to apply to the "above" cell (see next parameter) only. |- | above || Content to appear in a separate row above the main cell (and spanning the entire width of the box). |- | image || A full image tag (or other content); if this is not present or set as {{code|none}}, no image is displayed. |- | textclass || CSS classes to apply to the text cells only. (default: 'plainlist') |- | textstyle || CSS styles to apply to the text cells only. |- | text || Text to display in the box. |- | imageright || A full image tag (or other content) to display in a separate table cell on the box's righthand side. |- | below || Content to appear in a separate row underneath the main cell (and spanning the entire width of the box). |} ===Bu nwuan=== * {{tl|sidebar}} * {{tl|Mbox}} * {{tl|Box-r}} <includeonly>{{Sandbox other| | <!--CATEGORIES BELOW THIS LINE, PLEASE:--> [[Category:Box templates]] [[Category:Wikipedia metatemplates]] }}</includeonly> igmlhu78aza9oua3wgj2sx5bc5bwzzd Module:Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css 828 1570 15983 14990 2022-08-18T13:02:31Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links/styles.css]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap sanitized-css text/css /* {{pp-template}} */ .sister-box .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box .side-box-abovebelow > b { display: block; } .sister-box .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box .side-box-text > ul > li { min-height: 31px; } .sister-logo { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } 3kna8siudt7ouh1ijx49ic5mrves5p5 16064 15983 2022-08-18T20:24:46Z Kambai Akau 15 Kambai Akau shyei wat hu [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css]] nat [[Module:Sister project links/styles.css]] di̱ mi̱n ghwon a̱shainvak: revert sanitized-css text/css /* {{pp-template}} */ .sister-box .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box .side-box-abovebelow > b { display: block; } .sister-box .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box .side-box-text > ul > li { min-height: 31px; } .sister-logo { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } 3kna8siudt7ouh1ijx49ic5mrves5p5 16065 16064 2022-08-18T20:26:22Z Kambai Akau 15 Kambai Akau shyei wat hu [[Module:Sister project links/styles.css]] nat [[Module:Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css]] di̱ mi̱n ghwon a̱shainvak: Di̱n Tyap sanitized-css text/css /* {{pp-template}} */ .sister-box .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box .side-box-abovebelow > b { display: block; } .sister-box .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box .side-box-text > ul > li { min-height: 31px; } .sister-logo { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } 3kna8siudt7ouh1ijx49ic5mrves5p5 Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang 10 2047 15966 15940 2022-08-18T12:58:18Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang]]: Di̱n Tyap wikitext text/x-wiki {{#invoke:Sister project links|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> qptb31d57gh9z8mukaakg8u2oqhhtkh 15984 15966 2022-08-18T13:05:15Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang]] wikitext text/x-wiki {{#invoke:Sister project links|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> qptb31d57gh9z8mukaakg8u2oqhhtkh 15990 15984 2022-08-18T13:21:08Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyanng|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> 9orevrhirjfmbz3hleyb74tw9n0syqt 15991 15990 2022-08-18T13:21:19Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> gle4x22slw6hned12z2ba02hxathp6f 16060 15991 2022-08-18T20:13:31Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang jhyang ma̱ng a̱kang a̱gi̱gak|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> f5rbu3qgt6ph4vxhqx6o0d6001wwrp7 16061 16060 2022-08-18T20:15:08Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kang a̱gi̱gak|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> 030u2nwp4sikvz5eh4d87kvnyopd3e9 16062 16061 2022-08-18T20:16:13Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kace a̱gi̱gak|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|cookbook|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> r6twn4johg6tv6wnug1pkoxa2ezo9f9 Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/doc 10 2048 15968 15942 2022-08-18T12:58:18Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/doc]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/doc]]: Di̱n Tyap wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:Sister project links|Module:Commons link}} {{Sister project links{{\sandbox}}}} The {{tl|Sister project links}} template provides links corresponding pages on various [[Wikipedia:Wikimedia sister projects|Wikimedia sister projects]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|Sister project links|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{Sister project links <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{Sister project links |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 7tr00ngbuvxu3z1om2d5cffgl65m56y 15986 15968 2022-08-18T13:11:42Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:Sister project links|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|Sister project links|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{Sister project links <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{Sister project links |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> teo9fm2ck6gmz620lhz1dyfrui3m517 15987 15986 2022-08-18T13:13:37Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|Sister project links|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{Sister project links <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{Sister project links |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 57h6ondz8oke6ori0x4dri5fqybdepx 15988 15987 2022-08-18T13:16:45Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|Sister A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{Sister project links <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{Sister project links |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> kqy6zg2lm9q8fz339eyfc25q5gjc0e3 15989 15988 2022-08-18T13:17:12Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{Sister project links <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{Sister project links |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> ccyrayp4k6rsw49dta3tmxzrypr8hhb 15994 15989 2022-08-18T13:28:24Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Sister project]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 009xui1cksuvhxcc7797c99676viiy6 16016 15994 2022-08-18T14:18:37Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Images used== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 084h0ko53mm73pw6rijg98dnyik7xqw 16028 16016 2022-08-18T15:35:22Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== This template potentially displays the following images:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> q9ksw4zpofeagel8ym0oncqv85q5svq 16029 16028 2022-08-18T15:38:21Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== Ta̱mpi̱let hu maai ntyai nghwughwu nani:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==See also== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 476c914cfjzpznmz2joien8shf6t5zw 16030 16029 2022-08-18T15:38:50Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== Ta̱mpi̱let hu maai ntyai nghwughwu nani:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==Bu nwuan== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> 78s8auqtlwjinom9i2pij8j1q6v0381 16036 16030 2022-08-18T19:14:00Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Tracking categories=== *{{clc|Pages using Sister project links with unknown parameters}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== Ta̱mpi̱let hu bye ntyai nghwughwu nani:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==Bu nwuan== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> rex12vku0robo3c68pn4kzm8qf9ys4w 16044 16036 2022-08-18T19:48:28Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Si̱sak tracking=== *{{clc|Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kace a̱gi̱gak}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== Ta̱mpi̱let hu bye ntyai nghwughwu nani:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==Bu nwuan== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> jffv2ia8tg35hwiomfdzhhqw45bulrq 16045 16044 2022-08-18T19:53:56Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} {{Lua|Module:A̱ka̱fwuop nta̱m a̱meang jhyang|Module:Commons link}} {{Sister project links{{\sandbox}}}} Ta̱mpi̱let {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} hu ni̱ jhyet a̱ka̱fwuop ngwat na̱ myim a̱ni di̱ [[Wikipedia:Wikimedia sister projects|nta̱m a̱meang Wukimedia ma̱ a̱di̱di̱t jhyang]]. The following pages are sought, in order: * An explicit page chosen by an editor (if provided) * A sitelink in Wikidata (if exists) * A search page on the sister project Sending a reader to a search page can be an unpleasant experience, if there is no corresponding page for that subject. Editors have a choice between two methods to prevent this negative experience: * Manually check each project for a relevant page, if missing, then set argument to "no" (e.g., {{para|wikt|n}}) * Use "automatic mode", which only displays a sister project by default if sitelink exists (e.g., {{para|auto|yes}}) Note that {{tl|Sister project auto}} is equivalent to {{tlx|A̱ka̱fwuop nta̱m a̱meang jhyang|<nowiki>auto=yes</nowiki>}}. ==Parameters== <pre style="overflow:auto;"> {{A̱ka̱fwuop nta̱m a̱meang jhyang <!-- Configuration parameters. Do not leave empty; populate, or remove --> |1= |auto= |collapsible= |display= |position= |style= <!-- Projects that default to "yes" when auto=no --> |b= |c= |n= |q= |s= |v= |wikt= <!-- Projects that default to "no" when auto=no --> |d= |m= |mw= |species= |species_author= |voy= |author= <!-- force search for author name in wikisource --> |commonscat= <!-- force link to commons category --> |cookbook= <!-- force link to cookbook at wikibooks --> }} All parameters: {{A̱ka̱fwuop nta̱m a̱meang jhyang |1= |author= |auto= |b= |c= |collapsible= |commonscat= |cookbook= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }} </pre> ===Default display=== For any project parameter, there are four acceptable values: * "yes" means find a reasonable link for the sister project (wikidata, or default back to search) * "no" means exclude this sister project: no link * a string means link to the page with whose name is that string * blank or missing means use the default ** If {{para|auto|yes}}, default is either use wikidata (if present), or drop the link ** If {{para|auto|no}}, if project is in the "yes" list above, either use wikidata or search. Otherwise drop the link. ===Si̱sa kai nnia̱=== *{{clc|Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kace a̱gi̱gak}} ==TemplateData== {{TemplateDataHeader}} <templatedata> { "description": "Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].", "params": { "1": { "label": "Search Parameter", "type": "string", "required": false, "description": "Use if the ''search parameter'' differs from the pagename." }, "auto": { "label": "Use wikidata to fill defaults", "type": "string", "required": false, "description": "If auto=\"yes\", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter." }, "collapsible": { "label": "Collapsible?", "description": "Set to \"yes\" to make the template collapsible. Set to \"collapsed\" to make the template collapsible and initially collapsed.", "type": "string" }, "display": { "label": "Display name", "type": "string", "required": false, "description": "Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'." }, "author": { "label": "Wikisource author?", "type": "string", "required": false, "description": "Use for articles about authors to force the Wikisource links to include the \"Author:\" prefix. Can be set to \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "commonscat": { "label": "Commons category?", "type": "string", "required": false, "description": "Specifies whether a link to a category on Wikimedia Commons is shown. Can be \"yes\" or \"no\". The default is \"No\".", "default": "No" }, "cookbook": { "label": "Cookbook", "type": "string", "required": false, "description": "If yes, link to Cookbook at wikibooks. If string, use that string as article title in Cookbooks.", "default": "Yes" }, "wikt": { "label": "Wiktionary link", "type": "string", "required": false, "description": "Wiktionary link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "c": { "label": "Commons link", "type": "string", "required": false, "description": "Commons link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "aliases": [ "commons" ], "default": "Yes" }, "n": { "label": "Wikinews link", "type": "string", "required": false, "description": "Wikinews link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "q": { "label": "Wikiquote link", "type": "string", "required": false, "description": "Wikiquote link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "s": { "label": "Wikisource link", "type": "string", "required": false, "description": "Wikisource link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "b": { "label": "Wikibooks link", "type": "string", "required": false, "description": "Wikibooks link to show. Acceptable values are a page name, \"yes\" and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "voy": { "label": "Wikivoyage link", "type": "string", "required": false, "description": "Wikivoyage link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "v": { "label": "Wikiversity link", "type": "string", "required": false, "description": "Wikiversity link to show. Acceptable values are a page name, \"yes\", and \"no\". The default is \"Yes\" (find page automatically).", "default": "Yes" }, "d": { "label": "Wikidata link", "type": "string", "required": false, "description": "Wikidata link to show. Acceptable values are a QID, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species": { "label": "Wikispecies taxon link", "type": "string", "required": false, "description": "Wikispecies link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "species_author": { "label": "Wikispecies author link", "type": "string", "required": false, "description": "Wikispecies author link to show. Acceptable values are a page name, \"yes\"(find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "m": { "label": "Meta link", "type": "string", "required": false, "description": "Meta link to show. Acceptable values are a page name, \"yes\" (find page automatically), and \"no\". The default is \"No\".", "default": "No" }, "mw": { "label": "MediaWiki link", "type": "string", "required": false, "description": "MediaWiki link to show. Acceptable values are a page name, \"yes\" (find page automatically) and \"no\". The default is \"No\".", "default": "No" }, "position": { "label": "Position", "description": "Specifies whether the box floats to the left or right. The only acceptable value is \"left\" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)", "type": "string" }, "style": { "label": "CSS style", "description": "Optional CSS style specifications. Use with caution. (And don't use for evil!)", "type": "string" } }, "paramOrder": [ "1", "auto", "collapsible", "display", "wikt", "c", "commonscat", "n", "q", "s", "author", "b", "cookbook", "voy", "v", "d", "species", "species_author", "m", "mw", "position", "style" ] } </templatedata> ==Tracking categories== * {{clc|Pages using Sister project links with unknown parameters}} * {{clc|Pages using Sister project links with default search}} * {{clc|Pages using Sister project links with hidden wikidata}} * {{clc|Pages using Sister project links with wikidata namespace mismatch}} * {{clc|Pages using Sister project links with wikidata mismatch}} * {{clc|Pages with empty sister project links}} ==Nghwughwu nang á̱ nyia̱ ta̱m ma̱ng á̱na== Ta̱mpi̱let hu bye ntyai nghwughwu nani:<br/> :[[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wikt</code><br/> :[[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>c</code> or <code>commons</code><br/> :[[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>n</code><br/> :[[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>q</code><br/> :[[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>s</code><br/> :[[File:Wikibooks-logo.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo.svg|Wikibooks logo]] <code>b</code><br/> :[[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>voy</code><br/> :[[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>v</code><br/> :[[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>d</code><br/> :[[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>species</code> or <code>species_author</code><br/> :[[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>m</code><br/> :[[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mw</code> ==Bu nwuan== * [[Template:Commons]] * [[Template:Cross-wiki user]] * [[Template:Ta̱m a̱meang]] * [[Template:Sister bar]] – a horizontal version * [[Template:Subject bar]] – a horizontal version that includes optional portals * [[Help:Interwiki linking]] * [[Wikipedia:Template index/Sister projects]] * [[Wikipedia:Wikimedia sister projects]] <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Interwiki link templates| ]] }}</includeonly> pr3kzlm8xz4l2kiu239we1m693khy5y Module:A̱ka̱fwuop nta̱m a̱meang jhyang 828 2049 15978 15943 2022-08-18T13:02:30Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap Scribunto text/plain require('Module:No globals') -- Module to create sister project link box local getArgs = require('Module:Arguments').getArgs local commonsLink = require('Module:Commons link') local sideBox = require('Module:Side box')._main local generateWarning = require('Module:If preview')._warning local p = {} local logo = { wikt="Wiktionary-logo-v2.svg", c="Commons-logo.svg", n="Wikinews-logo.svg", q="Wikiquote-logo.svg", s="Wikisource-logo.svg", b="Wikibooks-logo.svg", voy="Wikivoyage-Logo-v3-icon.svg", v="Wikiversity logo 2017.svg", d="Wikidata-logo.svg", species="Wikispecies-logo.svg", m="Wikimedia Community Logo.svg", mw="MediaWiki-2020-icon.svg"} local prefixList = {'wikt', 'c', 'n', 'q', 's', 'b', 'voy', 'v', 'd', 'species', 'species_author', 'm', 'mw'} local sisterName = { wikt="Wiktionary", c="Commons", n="Wikinews", q="Wikiquote", s="Wikisource", b="Wikibooks", voy="Wikivoyage", v="Wikiversity", d="Wikidata", species="Wikispecies", m="Meta-Wiki", mw="MediaWiki"} local sisterInfo = { wikt="Definitions", c="Media", n="News", q="Quotations", s="Texts", b="Textbooks", voy="Travel guides", v="Resources", d="Data", species="Taxa", species_author="Authorship", m="Discussions", mw="Documentation" } local defaultSisters = { wikt=true, c=true, n=true, q=true, s=true, b=true, voy='auto', v=true, d=false, species='auto', species_author=false, m=false, mw=false } local sisterDb = { wikt="enwiktionary", n="enwikinews", q="enwikiquote", s="enwikisource", b="enwikibooks", voy="enwikivoyage", v="enwikiversity", species="specieswiki"} local trackingType = { wdMismatch="Pages using Sister project links with wikidata mismatch", wdNamespace="Pages using Sister project links with wikidata namespace mismatch", wdHidden="Pages using Sister project links with hidden wikidata", defaultSearch="Pages using Sister project links with default search"} local inSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) -- Function to add "-sand" to classes when called from sandbox local function sandbox(s) return inSandbox and s.."-sand" or s end -- Function to canonicalize string -- search for variants of "yes", and "no", and transform -- them into a standard form (like [[Template:YesNo]]) -- Argument: -- s --- input string -- Result: -- {x,y} list of length 2 -- x = nil if s is canonicalized, otherwise has trimmed s -- y = canonical form of s (true if "yes" or other, false if "no", nil if blank) local function canonicalize(s) if s == nil then return {nil, nil} end -- if s is table/list, then assume already canonicalized and return unchanged if tostring(type(s)) == "table" then return s end s = mw.text.trim(tostring(s)) if s == "" then return {nil, nil} end local lowerS = s:lower() -- Check for various forms of "yes" if lowerS == 'yes' or lowerS == 'y' or lowerS == 't' or lowerS == '1' or lowerS == 'true' or lowerS == 'on' then return {nil, true} end -- Check for various forms of "no" if lowerS == 'no' or lowerS == 'n' or lowerS == 'f' or lowerS == '0' or lowerS == 'false' or lowerS == 'off'then return {nil, false} end -- Neither yes nor no recognized, leave string trimmed return {s, true} end -- Merge two or more canonicalized argument lists -- Arguments: -- argList = list of canonicalized arguments -- noAll = if true, return no when all argList is no. -- otherwise, return blank when all argList is blank local function mergeArgs(argList,noAll) local test = nil -- default, return blank if all blank if noAll then test = false -- return no if all no end local allSame = true -- Search through string for first non-no or non-blank for _, arg in ipairs(argList) do if arg[2] then return arg -- found non-no and non-blank, return it end -- test to see if argList is all blank / no allSame = allSame and (arg[2] == test) end -- if all blank / no, return blank / no if allSame then return {nil, test} -- all match no/blank, return it end -- otherwise, return no / blank if noAll then return {nil, nil} end return {nil, false} end -- Function to get sitelink for a wiki -- Arguments: -- wiki = db name of wiki to lookup -- qid = QID of entity to search for, current page entity by default local function getSitelink(wiki,qid) -- return nil if some sort of lookup failure return qid and mw.wikibase.getSitelink(qid,wiki) end -- Function to get sitelink for a wiki -- Arguments: -- prefix = prefix string for wiki to lookup -- qid = QID of entity to search for, current page entity by default local function fetchWikidata(prefix,qid) local sisterDbName = sisterDb[prefix] return sisterDbName and getSitelink(sisterDbName,qid) end -- Function to generate the sister link itself -- Arguments: -- args = argument table for function -- args[1] = page to fetch -- args.default = link when blank -- args.auto = new auto mode (don't fall back to search) -- args.sitelink = wikidata sitelink (if available) -- args.qid = QID of entity -- args.search = fallback string to search for -- args.sisterPrefix = wikitext prefix for sister site -- args.information = type of info sister site contains -- tracking = tracking table local function genSisterLink(args, tracking) if args[1][2] == false or (not args.default and args[1][2] == nil) then return nil --- either editor specified "no", or "blank" (and default=no), then skip this sister end local sitelink = args.sitelink or fetchWikidata(args.sisterPrefix,args.qid) if args.auto and not sitelink and args[1][2] == nil then return nil --- in auto mode, if link is blank and no sitelink, then skip end -- fallback order of sister link: first specified page, then wikidata, then search local link = args[1][1] or sitelink or (args.search and "Special:"..args.search) if not link then return nil --- no link found, just skip end if tracking then -- update state for tracking categories if args[1][1] and sitelink then -- transform supplied page name to be in wiki-format local page = mw.ustring.gsub(args[1][1],"_"," ") page = mw.ustring.sub(page,1,1):upper()..mw.ustring.sub(page,2) local pageNS = mw.ustring.match(page,"^([^:]+):") local sitelinkNS = mw.ustring.match(sitelink,"^([^:]+):") if page == sitelink then tracking.wdHidden = args.sisterPrefix elseif pageNS ~= sitelinkNS then tracking.wdNamespace = args.sisterPrefix else tracking.wdMismatch = args.sisterPrefix end -- if no page link, nor a wikidata entry, and search is on, then warn elseif not (args[1][2] or sitelink) and args.search then tracking.defaultSearch = args.sisterPrefix end end return {prefix=args.sisterPrefix, link=link, information=args.information} end -- Function to handle special case of commons link local function commonsLinks(args, commonsPage) -- use [[Module:Commons link]] to determine best commons link local cLink = (not args.commonscat) and commonsLink._hasGallery(args.qid) or commonsLink._hasCategory(args.qid) if commonsPage[1] and not mw.ustring.match(commonsPage[1]:lower(),"^category:") then commonsPage[1] = (args.commonscat and "Category:" or "")..commonsPage[1] end local commonsSearch = "Search/"..(args.commonscat and "Category:" or "")..args[1] return {link=cLink, search=commonsSearch} end -- Function to handle special case for "author" and "cookbook" local function handleSubtype(args) local ns = args.ns local ns_len = mw.ustring.len(ns) local result = {} result.sitelink = fetchWikidata(args.prefix, args.qid) local subtype = false if args.page then if mw.ustring.sub(args.page,1,ns_len) == ns then subtype = true elseif args.subtype then result.page = ns..args.page subtype = true end elseif result.sitelink then subtype = mw.ustring.sub(result.sitelink,1,ns_len) == ns elseif args.subtype then result.search = "Search/"..ns..args.default subtype = true end if subtype then result.info = args.info end return result end -- Function to create a sister link, by prefix -- Arguments: -- prefix = sister prefix (e.g., "c" for commons) -- args = arguments for this sister (see p._sisterLink above) -- tracking = tracking table local function sisterLink(prefix, args, tracking) -- determine arguments to genSisterLink according to prefix if prefix == 'species_author' and not args.species[1] and args.species[2] and not args.species_author[1] and args.species_author[2] then return nil end local default = defaultSisters[prefix] if default == 'auto' then default = args.auto end -- Handle exceptions by prefix local search = ((prefix == 'd' and "ItemByTitle/enwiki/") or "Search/")..args[1] local sitelink = prefix == 'd' and args.qid local page = args[prefix] local info = sisterInfo[prefix] -- special case handling of author and cookbook local subtype = nil if prefix == 's' then subtype = handleSubtype({prefix='s',qid=args.qid,subtype=args.author,page=page[1], ns='Author:',info=nil,default=args[1]}) elseif prefix == 'b' then subtype = handleSubtype({prefix='b',qid=args.qid,subtype=args.cookbook,page=page[1], ns='Cookbook:',info='Recipes',default=args[1]}) end if subtype then page[1] = subtype.page or page[1] search = subtype.search or search sitelink = subtype.sitelink or sitelink info = subtype.info or info end if prefix == 'voy' and not args.bar and not page[1] and page[2] ~= nil then info = "Travel information" end info = args.information or info if prefix == 'c' then local commons = commonsLinks(args, page) search = commons.search sitelink = commons.link end prefix = (prefix == 'species_author' and 'species') or prefix return genSisterLink({ page, auto=args.auto, qid=args.qid, sitelink=sitelink, default=default, sisterPrefix = prefix, search=search, information=info}, tracking) end local function templatestyles_page(is_bar) local sandbox = inSandbox and 'sandbox/' or '' if is_bar then return mw.ustring.format( 'Module:Sister project links/bar/%sstyles.css', sandbox ) end return mw.ustring.format( 'Module:Sister project links/%sstyles.css', sandbox ) end -- Function to create html containers for sister project link list -- Arguments: -- args = table of arguments -- args.position: if 'left', position links to left -- args.collapsible: if non-empty, make box collapsible. If 'collapse', start box hidden -- args.style: CSS style string appended to end of default CSS -- args.display: boldface name to display local function createSisterBox(sisterList, args) local list = mw.html.create('ul') for i, link in ipairs(sisterList) do local li = list:tag('li') -- html element for 27px-high logo local logoSpan = li:tag('span') logoSpan:addClass(sandbox("sister-logo")) logoSpan:wikitext("[[File:"..logo[link.prefix].."|27x27px|middle|link=|alt=]]") -- html element for link local linkspan = li:tag('span') linkspan:addClass(sandbox("sister-link")) local linkText = "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] linkspan:wikitext(linkText) end list:allDone() return sideBox({ role = 'navigation', labelledby = 'sister-projects', class = sandbox("sister-box") .. ' sistersitebox plainlinks', position = args.position, style = args.style, abovestyle = args.collapsible and 'clear: both' or nil, above = mw.ustring.format( "'''%s''' at Wikipedia's [[Wikipedia:Wikimedia sister projects|<span id=\"sister-projects\">sister projects</span>]]", args.display or args[1] ), text = tostring(list), collapsible = args.collapsible, templatestyles = templatestyles_page() }) end local function createSisterBar(sisterList,args) local nav = mw.html.create( 'div' ) nav:addClass( 'noprint') nav:addClass( 'metadata') nav:addClass( sandbox('sister-bar')) nav:attr( 'role', 'navigation' ) nav:attr( 'aria-label' , 'sister-projects' ) local header = nav:tag('div') header:addClass(sandbox('sister-bar-header')) local pagename = header:tag('b') pagename:wikitext(args.display or args[1]) local headerText = " at Wikipedia's [[Wikipedia:Wikimedia sister projects|" headerText = headerText..'<span id="sister-projects" style="white-space:nowrap;">sister projects</span>]]:' header:wikitext(headerText) if #sisterList == 1 then header:wikitext("[[Category:Pages with single-entry sister bar]]") end local container = nav:tag('div') container:addClass(sandbox('sister-bar-content')) for _, link in ipairs(sisterList) do local item = container:tag('div') item:addClass(sandbox('sister-bar-item')) local logoSpan = item:tag('span') logoSpan:addClass(sandbox('sister-bar-logo')) logoSpan:wikitext("[[File:"..logo[link.prefix].."|21x19px|link=|alt=]]") local linkSpan = item:tag('span') linkSpan:addClass(sandbox('sister-bar-link')) linkSpan:wikitext("<b>[["..link.prefix..":"..link.link.."|"..link.information .."]]</b> from "..sisterName[link.prefix]) end return nav end function p._main(args) local titleObject = mw.title.getCurrentTitle() -- find qid, either supplied with args, from search string, or from current page args.qid = args.qid or mw.wikibase.getEntityIdForTitle(args[1] or "") or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() -- search string defaults to PAGENAME args[1] = args[1] or mw.wikibase.getSitelink(args.qid or "") or titleObject.text -- handle redundant "commons"/"c" prefix args.c = args.c or args.commons -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author","bar","tracking","sandbox"}) do args[k] = canonicalize(args[k])[2] end -- Initialize tracking categories if main namespace local tracking = (args.tracking or titleObject.namespace == 0) and {} local sisterList = {} local prefix -- Loop through all sister projects, generate possible links for _, prefix in ipairs(prefixList) do local link = sisterLink(prefix, args, tracking) if link then table.insert(sisterList, link) end end local box = mw.html.create() if args.bar and #sisterList > 0 then box:wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = templatestyles_page(true) } }) box:node(createSisterBar(sisterList,args)) elseif #sisterList == 1 then -- Use single sister box instead of multi-sister box local sister = sisterList[1] local link = "[["..sister.prefix..":"..sister.link.."|<b><i>"..(args.display or args[1]).."</i></b>]]" box:wikitext(sideBox({ role = 'navigation', position=args.position, image="[[File:"..logo[sister.prefix].."|40x40px|class=noviewer|alt=|link=]]", metadata='no', class='plainlinks sistersitebox', text=sisterName[sister.prefix].." has "..mw.ustring.lower(sister.information).." related to "..link, templatestyles = templatestyles_page() })) elseif #sisterList > 0 then -- else use sister box if non-empty box:wikitext(createSisterBox(sisterList,args)) end if #sisterList == 0 and args.auto then box:wikitext(generateWarning({"No sister project links found in Wikidata. Try auto=0"})) end -- Append tracking categories to container div -- Alpha ordering is by sister prefix if tracking then for k, v in pairs(tracking) do box:wikitext("[[Category:"..trackingType[k].."|"..v.."]]") end if #sisterList == 0 then box:wikitext("[[Category:Pages with empty sister project links]]") end end return tostring(box) end -- Main entry point for generating sister project links box function p.main(frame) local args = getArgs(frame,{frameOnly=false,parentOnly=false,parentFirst=false}) return p._main(args) end -- Lua entry point for generate one sister link function p._sisterlink(args) local prefix = args.prefix -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author"}) do args[k] = canonicalize(args[k])[2] end args[1] = args[1] or mw.title.getCurrentTitle().text args.qid = args.qid or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() local link = sisterLink(prefix, args,nil) if not link then return "" end return "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] end -- Template entry point for generating one sister link function p.link(frame) local args = getArgs(frame) return p._sisterlink(args) end return p hr47rmsc19vyv0rhnmw7tfp4ew0puvb Module:A̱ka̱fwuop nta̱m a̱meang jhyang/doc 828 2050 15980 15944 2022-08-18T13:02:31Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links/doc]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/doc]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap wikitext text/x-wiki {{high use|12000}} {{Lua|Module:Arguments|Module:Commons link|Module:Side box|Module:If preview}} {{uses TemplateStyles|Module:Sister project links/styles.css|Module:Sister project links/bar/styles.css}} Implements {{tl|Sister project links}} See {{tl|Sister project links/testcases}} for test cases for box, {{tl|Sister bar/testcases}} for bar. '''Note''': in order to make the test cases work, the Sandbox CSS classes have "-sand" appended to their names. If you wish to update the CSS, copy the contents of each class from [[Module:Sister project links/sandbox/styles.css]] to [[Module:Sister project links/styles.css]], but do '''not''' alter the class names, nor just copy-paste the entire CSS file. For the current difference in CSS between Sandbox and Main, see [https://en.wikipedia.org/wiki/Special:ComparePages?page1=Module%3ASister+project+links%2Fstyles.css&rev1=&page2=Module%3ASister+project+links%2Fsandbox%2Fstyles.css&rev2=&action=&diffonly=&unhide= here]. 1wfd4qkx8ihrtqxhlbp0nmvpk0w3r49 16063 15980 2022-08-18T20:21:19Z Kambai Akau 15 wikitext text/x-wiki {{high use|12000}} {{Lua|Module:Arguments|Module:Commons link|Module:Side box|Module:If preview}} {{uses TemplateStyles|Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css|Module:A̱ka̱fwuop nta̱m a̱meang jhyang/bar/styles.css}} Implements {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang}} See {{tl|A̱ka̱fwuop nta̱m a̱meang jhyang/testcases}} for test cases for box, {{tl|Sister bar/testcases}} for bar. '''Note''': in order to make the test cases work, the Sandbox CSS classes have "-sand" appended to their names. If you wish to update the CSS, copy the contents of each class from [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox/styles.css]] to [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css]], but do '''not''' alter the class names, nor just copy-paste the entire CSS file. For the current difference in CSS between Sandbox and Main, see [https://en.wikipedia.org/wiki/Special:ComparePages?page1=Module%3ASister+project+links%2Fstyles.css&rev1=&page2=Module%3ASister+project+links%2Fsandbox%2Fstyles.css&rev2=&action=&diffonly=&unhide= here]. adqj80ecxs3s7do8osttxetmacl9i0u Module:A̱ka̱fwuop nta̱m a̱meang jhyang/bar/styles.css 828 2051 15979 15945 2022-08-18T13:02:31Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links/bar/styles.css]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/bar/styles.css]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap sanitized-css text/css /* {{pp|small=y}} */ .sister-bar { display:flex; justify-content: center; align-items: baseline; font-size: 88%; background-color: #fdfdfd; border: 1px solid #a2a9b1; clear: both; margin: 1em 0 0; padding: 0 2em; } .sister-bar-header { margin: 0 1em 0 0.5em; padding: 0.2em 0; flex:0 0 auto; min-height: 24px; line-height: 22px; } .sister-bar-content { display:flex; flex-flow: row wrap; flex:0 1 auto; align-items: baseline; padding: 0.2em 0; column-gap: 1em; } .sister-bar-item { display:flex; align-items: baseline; margin:0.15em 0; min-height:24px; text-align:left; } .sister-bar-logo { width: 22px; line-height: 22px; margin:0 0.2em; text-align: right; } .sister-bar-link { margin:0 0.2em; text-align: left; } @media screen and (max-width:960px) { .sister-bar { flex-flow: column wrap; margin: 1em auto 0; } .sister-bar-header { flex:0 1; } .sister-bar-content { flex:1; border-top: 1px solid #a2a9b1; } .sister-bar-item { flex:0 0 20em; min-width: 20em; } } .navbox + link + .sister-bar, .navbox + style + .sister-bar, .portal-bar + link + .sister-bar, .portal-bar + style + .sister-bar, .sister-bar + .navbox-styles + .navbox, .sister-bar + .navbox-styles + .portal-bar { margin-top: -1px; } e2uzts4hp4xug97l0hy3lrw03idta7m Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/testcases 10 2052 15970 15946 2022-08-18T12:58:19Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/testcases]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/testcases]]: Di̱n Tyap wikitext text/x-wiki {{Testcases notice |toc=on}} '''Note:''' Sandbox CSS classes have different names than the Main CSS Classes, due to technical limitations in {{tl|test case}}. The sandbox and main will display correctly, but will be flagged as different due to these different names. You will have to manually inspect each test case for correctness. 45w60rd022blbjgie4sxbfkc57zw82r Module:Template test case/config 828 2060 15955 2022-08-18T11:59:41Z Kambai Akau 15 Created page with "------------------------------------------------------------------------------- -- Module:Template test case/config -- This module holds configuration data for [[Module:Template test case]]. ------------------------------------------------------------------------------- return { ------------------------------------------------------------------------------- -- Options ------------------------------------------------------------------------------- --..." Scribunto text/plain ------------------------------------------------------------------------------- -- Module:Template test case/config -- This module holds configuration data for [[Module:Template test case]]. ------------------------------------------------------------------------------- return { ------------------------------------------------------------------------------- -- Options ------------------------------------------------------------------------------- -- The magic word used in place of the template name when making nowiki -- invocations. templateNameMagicWord = '__TEMPLATENAME__', -- The subpage that sandboxes are typically stored on. Used when loading -- wrapper template config and when guessing the sandbox template name. sandboxSubpage = 'sandbox', ------------------------------------------------------------------------------- -- Messages ------------------------------------------------------------------------------- msg = { -- The default header for test cases rendered in columns. ['columns-header'] = 'Side by side comparison', -- The error message to use if a templaten option is missing. -- $1 - the number of the missing template option. ['missing-template-option-error'] = "one or more options ending in '$1' " .. "were detected, but no 'template$1' option was found", -- The error message to use if a nowiki invocation is used but the template -- name magic word is not found. -- $1 - the value of the template name magic word ['nowiki-magic-word-error'] = "the template invocation must include '$1' in " .. "place of the template name", }, ------------------------------------------------------------------------------- -- Wrapper template config. -- The wrapper template config is a table with wrapper template names as keys, -- and subtables containing two fields: -- func - the function name to be used with that template. This must be a -- function exported by the main module. This is optional: the default -- value is "table". -- args - a table of default arguments to be used with that template. This is -- is optional. ------------------------------------------------------------------------------- wrappers = { ['Template:Test case'] = {}, ['Template:Testcase table'] = { args = {_format = 'columns'} }, ['Template:Testcase rows'] = { args = {_format = 'rows'} }, ['Template:Test case nowiki'] = { func = 'nowiki' }, ['Template:Nowiki template demo'] = { func = 'nowiki', args = {showheader = false, showtemplate2 = false} }, ['Template:Collapsible test case'] = { args = {_collapsible = true} }, ['Template:Collapsible 2 test case'] = { args = {_collapsible = true, _wantdiff = true} }, ['Template:Inline test case'] = { args = {_format = 'inline', _showcode = true} }, }, ------------------------------------------------------------------------------- -- End config ------------------------------------------------------------------------------- } qnnl7yi4y14i5if0gn8xikibzp6hb6x Module:Template test case/config/doc 828 2061 15956 2022-08-18T12:00:19Z Kambai Akau 15 Created page with "This module provides configuration data for [[Module:Template test case]]. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> }}</includeonly>" wikitext text/x-wiki This module provides configuration data for [[Module:Template test case]]. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> }}</includeonly> cq8fisqg7pp9na0lcthl5nyj9ygv02p Module:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox/styles.css 828 2062 15957 2022-08-18T12:02:33Z Kambai Akau 15 Created page with ".sister-box-sand .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box-sand .side-box-abovebelow > b { display: block; } .sister-box-sand .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box-sand .side-box-text > ul > li { min-height: 31px; } .sister-logo-sand { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-..." sanitized-css text/css .sister-box-sand .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box-sand .side-box-abovebelow > b { display: block; } .sister-box-sand .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box-sand .side-box-text > ul > li { min-height: 31px; } .sister-logo-sand { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link-sand { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } kr5vvggh4w0325bwup5tfrzkqhugoui 15982 15957 2022-08-18T13:02:31Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links/sandbox/styles.css]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox/styles.css]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap sanitized-css text/css .sister-box-sand .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box-sand .side-box-abovebelow > b { display: block; } .sister-box-sand .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box-sand .side-box-text > ul > li { min-height: 31px; } .sister-logo-sand { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link-sand { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } kr5vvggh4w0325bwup5tfrzkqhugoui Ta‌̱mpi‌̱let:High use 10 2063 15958 2022-08-18T12:04:10Z Kambai Akau 15 Created page with "{{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude>" wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> pqp5tan0gkp2stociv4f3zgylzoarl5 Ta‌̱mpi‌̱let:High use/doc 10 2064 15959 2022-08-18T12:05:10Z Kambai Akau 15 Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} {{lua|Module:High-use}} This is the {{tlx|high-use}} message box. It is meant to be put at the top of the documentation subpage for templates transcluded onto more than 2,000 pages. For templates transcluded onto more than 100,000 pages, or if the first parameter is set to <code>risk</code>, then a strong..." wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} {{lua|Module:High-use}} This is the {{tlx|high-use}} message box. It is meant to be put at the top of the documentation subpage for templates transcluded onto more than 2,000 pages. For templates transcluded onto more than 100,000 pages, or if the first parameter is set to <code>risk</code>, then a stronger wording is given. '''Note''': It is normal that some of the links in the message box are red. 4ne3ayrun0wil0jkxt9v54m1cvavzsh 15960 15959 2022-08-18T12:10:48Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} {{lua|Module:High-use}} This is the {{tlx|high-use}} message box. It is meant to be put at the top of the documentation subpage for templates transcluded onto more than 2,000 pages. For templates transcluded onto more than 100,000 pages, or if the first parameter is set to <code>risk</code>, then a stronger wording is given. '''Note''': It is normal that some of the links in the message box are red. == Usage == {{tlx |High-use}} {{tlx |High-use |2=2=''discussion page, or use + notation'' |3=info=''additional text'' }} '''all parameters''' <pre style="overflow:auto;"> {{High-use |1= |2= |info= |demo= |form= |expiry= }} </pre> The template can be used as is, and will automatically use bot-updated transclusion counts from [[Special:PrefixIndex/Module:Transclusion_count/data/|subpages of Module:Transclusion_count/data/]], when available. It can also take some parameters: * <code>1=''number of transclusions''</code>: ''(deprecated)'' The first parameter is either a static number of times the template has been transcluded, or the word "risk" (without quotes) to display "a very large number of" instead of the actual value. This value will be ignored, if transclusion data is available for the current page (generally, for templates with more than 2,000 transclusions). * <code>2=''discussion page, or use + notation''</code>: The second parameter is overloaded. It will cause the number of transclusions to display as "#,###+" instead of "approximately #,###" when set equal to "yes" (without quotes). When used in this manner, values will be rounded down, instead of rounded to the nearest number with the appropriate number of significant figures. When set to any other non-blank value, it will replace the link to the template's talk page to the value of the parameter (for example, <code>2=WP:VPT</code> will insert a link to [[WP:VPT]]), * {{para|info|&lt;{{var|extra information}}>}}: When set to non-blank, will insert &lt;{{var|extra information}}> into the template text. * {{para|demo|&lt;{{var|Template_name}}>}}: Will use the transclusion count for the template at <code><nowiki>[[Template:</nowiki>&lt;{{var|Template_name}}>]]</code> instead of detecting what template it is being used on. Capitalization must exactly match the value used in [[Special:PrefixIndex/Module:Transclusion_count/data/]]. * {{para|form}}: When set to "<code>editnotice</code>", will display the message using {{tl|editnotice}} instead of {{tl|ombox}}. * {{para|expiry}}: Sets the {{para|expiry}} parameter for {{tl|editnotice}}. * {{para|no-percent|yes}}: suppresses automatic 'percent of all pages' annotation; 'percent of all pages' annotation is automatically added when template is used in more than 1% of all pages (currently <code><nowiki>{{NUMBEROFPAGES}}</nowiki></code> is {{NUMBEROFPAGES}} pages so 1% is {{formatnum:{{#expr:trunc ({{formatnum:{{NUMBEROFPAGES}}|R}}/100)}}}} pages) == Examples == The full code for a /doc page top usually looks like this: <pre> {{documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{high-use}} </pre> === Standard form === {{nowiki template demo|code=<nowiki>{{high-use}}</nowiki>}} {{nowiki template demo|code=<nowiki>{{high-use | |Wikipedia talk:High-risk templates }}</nowiki>}} === Rounding and + notation === {{nowiki template demo|code=<nowiki>{{high-use |49,500 |demo=A template that does not exist }}</nowiki>}} {{nowiki template demo|code=<nowiki>{{high-use |49,500+ |demo=A template that does not exist }}</nowiki>}} === Editnotice form === {{nowiki template demo|code=<nowiki>{{high-use |form=editnotice }}</nowiki>}} === High risk === {{nowiki template demo|code=<nowiki>{{high-use |demo=Yesno }}</nowiki>}} {{nowiki template demo|code=<nowiki>{{high-use |demo=Yesno |no-percent=yes}}</nowiki>}} {{nowiki template demo|code=<nowiki>{{high-use |risk |demo=High-use }}</nowiki>}} {{nowiki template demo|code=<nowiki>{{high-use |risk |Wikipedia talk:High-risk templates |info=This is a very large number! |demo=Yesno}}</nowiki>}} == Technical details == The [[Template:High-use/sandbox|/sandbox]] and [[Template:High-use/testcases|/testcases]] links are the standard names for such subpages. If those pages are created, then the green /doc box for the template will detect them and link to them in its heading. For instance, see the top of this documentation. [[User:Ahechtbot|Ahechtbot]] compiles usage statistics for all templates with 2,000 or more transclusions, using [[User:Ahechtbot/transclusioncount.py]], and writes them to subpages of [[Module:Transclusion count/data]] (see [[Wikipedia:Bots/Requests for approval/Ahechtbot 6]]). These pages are usually updated every Sunday, but since running the query is resource intensive, it may be delayed or skipped if Wikipedia server usage is high. '''Important''': If a transclusion count is available in [[Module:Transclusion count/data]], any manually input values will be ignored by this template. == Supporting templates and modules == * {{tl|ombox}} which uses {{m2|Message box|ombox}} * {{tl|editnotice}} which uses {{m2|Message box|fmbox}} * {{m2|high-use|main}} * {{m2|transclusion count|fetch}} ==Redirects== {{columns-list|colwidth=15em| *{{tl|heavilytranscluded}} *{{tl|high risk}} *{{tl|high-risk}} *{{tl|high use}} *{{tl|risky template}} }} == See also == * {{tl|Intricate template}} – for templates that are complex, using less obvious techniques * {{tl|pp-template}} – protection template that usually is put on high-risk templates * {{tl|Used in system}} – for templates used in the Wikipedia user interface * [[Wikipedia:High-risk templates]] * [[Wikipedia:Template sandbox and test cases]] == Template counters == * [[toollabs:templatecount/]] – easy to use, returns current (real time) transclusion count for a template * <span class="plainlinks">[{{fullurl:Special:MostLinkedTemplates|limit=500}} Special:MostLinkedTemplates]</span> – special page search for most transcluded templates * [[Special:PrefixIndex/Module:Transclusion_count/data/]] – template count data used by this template that is broken down by first letter of template and rounded to two or three significant figures, and updated weekly * [[Wikipedia:Database reports/Templates transcluded on the most pages]] – lists the 1000 most transcluded templates, not updated since November 2018 <!-- * [[tools:~dispenser/cgi-bin/embeddedincount.py]] – Seems to lack human interface, probably meant for programs to call. (not working anymore) --> <includeonly>{{sandbox other|| <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> [[Category:Documentation header templates]] }}</includeonly> 0356yrwbvlaevacqsuprqug4qg4a81t Ta‌̱mpi‌̱let:High use/sandbox 10 2065 15961 2022-08-18T12:16:09Z Kambai Akau 15 Created page with "{{#invoke:High-use/sandbox|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|fetch={{{fetch|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude>" wikitext text/x-wiki {{#invoke:High-use/sandbox|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|fetch={{{fetch|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> kty35ra9j2xqtdnwe2nisabj2ls28mz Ta‌̱mpi‌̱let:High use/testcases 10 2066 15962 2022-08-18T12:21:10Z Kambai Akau 15 Created page with "{{template test cases notice}} ==Empty== {{test case| _showcode = yes }}Kalie Lyman ==12345== {{test case| _showcode = yes |12345466777}} ==4768470 all-pages== {{test case| _showcode = yes |4768470|all-pages = yes}} ==4768470+ all-pages== {{test case| _showcode = yes |4768470+|all-pages = yes}} ==Small number== {{test case| _showcode = yes |demo = High-use}} ==Large number== {{test case| _showcode = yes |demo = Yesno}} ==Not found== {{test case| _showcode = yes |1..." wikitext text/x-wiki {{template test cases notice}} ==Empty== {{test case| _showcode = yes }}Kalie Lyman ==12345== {{test case| _showcode = yes |12345466777}} ==4768470 all-pages== {{test case| _showcode = yes |4768470|all-pages = yes}} ==4768470+ all-pages== {{test case| _showcode = yes |4768470+|all-pages = yes}} ==Small number== {{test case| _showcode = yes |demo = High-use}} ==Large number== {{test case| _showcode = yes |demo = Yesno}} ==Not found== {{test case| _showcode = yes |1234|demo = TemplateThatDoesNotExist}} ==Edit notice== {{test case| _showcode = yes |28883|form=editnotice}} ==Module vs Template== {{test case| _showcode = yes |demo = Age}} {{test case| _showcode = yes |demo = Module:Age}} ==Info parameter== {{test case| _showcode = yes |info=It is used on a really important page.|demo = Yesno}} {{test case| _showcode = yes |info=It is used on a really important page.|demo = Infobox outbreak}} ==fetch = no== {{test case| _showcode = yes |fetch=no|demo = Yesno}} {{test case| _showcode = yes |1=1234|fetch=no|demo = Yesno}} {{test case| _showcode = yes |fetch=no|demo = Infobox outbreak}} {{test case| _showcode = yes |1=1234|fetch=no|demo = Infobox outbreak}} 35ty2cftm1nwtct2du6p7gf5r94vn54 Module:Template invocation 828 2067 15963 2022-08-18T12:24:27Z Kambai Akau 15 Created page with "-- This module provides functions for making MediaWiki template invocations. local checkType = require('libraryUtil').checkType local p = {} ------------------------------------------------------------------------ -- Name: p.name -- Purpose: Find a template invocation name from a page name or a -- mw.title object. -- Description: This function detects whether a string or a mw.title -- object has been passed in, and uses t..." Scribunto text/plain -- This module provides functions for making MediaWiki template invocations. local checkType = require('libraryUtil').checkType local p = {} ------------------------------------------------------------------------ -- Name: p.name -- Purpose: Find a template invocation name from a page name or a -- mw.title object. -- Description: This function detects whether a string or a mw.title -- object has been passed in, and uses that to find a -- template name as it is used in template invocations. -- Parameters: title - full page name or mw.title object for the -- template (string or mw.title object) -- Returns: String ------------------------------------------------------------------------ function p.name(title) if type(title) == 'string' then title = mw.title.new(title) if not title then error("invalid title in parameter #1 of function 'name'", 2) end elseif type(title) ~= 'table' or type(title.getContent) ~= 'function' then error("parameter #1 of function 'name' must be a string or a mw.title object", 2) end if title.namespace == 10 then return title.text elseif title.namespace == 0 then return ':' .. title.prefixedText else return title.prefixedText end end ------------------------------------------------------------------------ -- Name: p.invocation -- Purpose: Construct a MediaWiki template invocation. -- Description: This function makes a template invocation from the -- name and the arguments given. Note that it isn't -- perfect: we have no way of knowing what whitespace was -- in the original invocation, the named parameters will be -- alphabetically sorted, and any parameters with duplicate keys -- will be removed. -- Parameters: name - the template name, formatted as it will appear -- in the invocation. (string) -- args - a table of template arguments. (table) -- format - formatting options. (string, optional) -- Set to "nowiki" to escape, curly braces, pipes and -- equals signs with their HTML entities. The default -- is unescaped. -- Returns: String ------------------------------------------------------------------------ function p.invocation(name, args, format) checkType('invocation', 1, name, 'string') checkType('invocation', 2, args, 'table') checkType('invocation', 3, format, 'string', true) -- Validate the args table and make a copy to work from. We need to -- make a copy of the table rather than just using the original, as -- some of the values may be erased when building the invocation. local invArgs = {} for k, v in pairs(args) do local typek = type(k) local typev = type(v) if typek ~= 'string' and typek ~= 'number' or typev ~= 'string' and typev ~= 'number' then error("invalid arguments table in parameter #2 of " .. "'invocation' (keys and values must be strings or numbers)", 2) end invArgs[k] = v end -- Get the separators to use. local seps = { openb = '{{', closeb = '}}', pipe = '|', equals = '=' } if format == 'nowiki' then for k, v in pairs(seps) do seps[k] = mw.text.nowiki(v) end end -- Build the invocation body with numbered args first, then named. local ret = {} ret[#ret + 1] = seps.openb ret[#ret + 1] = name for k, v in ipairs(invArgs) do if type(v) == 'string' and v:find('=', 1, true) then -- Likely something like 1=foo=bar which needs to be displayed as a named arg. else ret[#ret + 1] = seps.pipe ret[#ret + 1] = v invArgs[k] = nil -- Erase the key so that we don't add the value twice end end local keys = {} -- sort parameter list; better than arbitrary order for k, _ in pairs(invArgs) do keys[#keys + 1] = k end table.sort(keys, function (a, b) -- Sort with keys of type number first, then string. if type(a) == type(b) then return a < b elseif type(a) == 'number' then return true end end) for _, v in ipairs(keys) do -- Add named args based on sorted parameter list ret[#ret + 1] = seps.pipe ret[#ret + 1] = tostring(v) ret[#ret + 1] = seps.equals ret[#ret + 1] = invArgs[v] end ret[#ret + 1] = seps.closeb return table.concat(ret) end return p 0mchuzsxvb5yfnycusogh7a63eybbyl Module:Template invocation/doc 828 2068 15964 2022-08-18T12:25:28Z Kambai Akau 15 Created page with "This is a meta-module for producing MediaWiki template invocations. == Usage == First load the module: <syntaxhighlight lang="lua"> local mTemplateInvocation = require('Module:Template invocation') </syntaxhighlight> Then you can use the individual functions as documented below. === Name === <syntaxhighlight lang="lua"> mTemplateInvocation.name(title) </syntaxhighlight> This function produces the name to be used in a template invocation. For pages in the template..." wikitext text/x-wiki This is a meta-module for producing MediaWiki template invocations. == Usage == First load the module: <syntaxhighlight lang="lua"> local mTemplateInvocation = require('Module:Template invocation') </syntaxhighlight> Then you can use the individual functions as documented below. === Name === <syntaxhighlight lang="lua"> mTemplateInvocation.name(title) </syntaxhighlight> This function produces the name to be used in a template invocation. For pages in the template namespace it returns the page name with no namespace prefix, for pages in the main namespace it returns the full page name prefixed with ":", and for other pages it returns the full page name. <var>title</var> can be a string or a [[mw:Extension:Scribunto/Lua reference manual#Title objects|mw.title object]]. === Invocation === <syntaxhighlight lang="lua"> mTemplateInvocation.invocation(name, args, format) </syntaxhighlight> This function creates a MediaWiki [[Help:Template|template]] invocation. Parameters: * '''name''' - the name of the template (string, required). This should be exactly as it will appear in the invocation, e.g. for [[Template:Example]] use "Example". To generate the template name from a page name you can use the [[#Name|name]] function. * '''args''' - the arguments to use in the invocation (table, required). Table keys and values must be either strings or numbers. * '''format''' - the format of the invocation (string, optional). The default is a normal invocation with unescaped curly braces, pipes, and equals signs. If this parameter is the string "nowiki", then the curly braces, pipes and equals signs are replaced with the appropriate [[HTML entities]]. '''Example''' The code {{code|1=mTemplateInvocation.invocation('foo', {'bar', 'baz', abc = 'def'})|2=lua}} would produce <code><nowiki>{{foo|bar|baz|abc=def}}</nowiki></code>. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> }}</includeonly> 0pmk33rdtfo09ckwjrsvgmtt9avmg36 Module:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox 828 2069 15965 2022-08-18T12:28:42Z Kambai Akau 15 Created page with "require('Module:No globals') -- Module to create sister project link box local getArgs = require('Module:Arguments').getArgs local commonsLink = require('Module:Commons link') local sideBox = require('Module:Side box')._main local generateWarning = require('Module:If preview')._warning local p = {} local logo = { wikt="Wiktionary-logo-v2.svg", c="Commons-logo.svg", n="Wikinews-logo.svg", q="Wikiquote-logo.svg", s="Wikisource-logo.svg", b="Wikibooks-logo.svg", vo..." Scribunto text/plain require('Module:No globals') -- Module to create sister project link box local getArgs = require('Module:Arguments').getArgs local commonsLink = require('Module:Commons link') local sideBox = require('Module:Side box')._main local generateWarning = require('Module:If preview')._warning local p = {} local logo = { wikt="Wiktionary-logo-v2.svg", c="Commons-logo.svg", n="Wikinews-logo.svg", q="Wikiquote-logo.svg", s="Wikisource-logo.svg", b="Wikibooks-logo.svg", voy="Wikivoyage-Logo-v3-icon.svg", v="Wikiversity logo 2017.svg", d="Wikidata-logo.svg", species="Wikispecies-logo.svg", m="Wikimedia Community Logo.svg", mw="MediaWiki-2020-icon.svg"} local prefixList = {'wikt', 'c', 'n', 'q', 's', 'b', 'voy', 'v', 'd', 'species', 'species_author', 'm', 'mw'} local sisterName = { wikt="Wiktionary", c="Commons", n="Wikinews", q="Wikiquote", s="Wikisource", b="Wikibooks", voy="Wikivoyage", v="Wikiversity", d="Wikidata", species="Wikispecies", m="Meta-Wiki", mw="MediaWiki"} local sisterInfo = { wikt="Definitions", c="Media", n="News", q="Quotations", s="Texts", b="Textbooks", voy="Travel guides", v="Resources", d="Data", species="Taxa", species_author="Authorship", m="Discussions", mw="Documentation" } local defaultSisters = { wikt=true, c=true, n=true, q=true, s=true, b=true, voy='auto', v=true, d=false, species='auto', species_author=false, m=false, mw=false } local sisterDb = { wikt="enwiktionary", n="enwikinews", q="enwikiquote", s="enwikisource", b="enwikibooks", voy="enwikivoyage", v="enwikiversity", species="specieswiki"} local trackingType = { wdMismatch="Pages using Sister project links with wikidata mismatch", wdNamespace="Pages using Sister project links with wikidata namespace mismatch", wdHidden="Pages using Sister project links with hidden wikidata", defaultSearch="Pages using Sister project links with default search"} local inSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) -- Function to add "-sand" to classes when called from sandbox local function sandbox(s) return inSandbox and s.."-sand" or s end -- Function to canonicalize string -- search for variants of "yes", and "no", and transform -- them into a standard form (like [[Template:YesNo]]) -- Argument: -- s --- input string -- Result: -- {x,y} list of length 2 -- x = nil if s is canonicalized, otherwise has trimmed s -- y = canonical form of s (true if "yes" or other, false if "no", nil if blank) local function canonicalize(s) if s == nil then return {nil, nil} end -- if s is table/list, then assume already canonicalized and return unchanged if tostring(type(s)) == "table" then return s end s = mw.text.trim(tostring(s)) if s == "" then return {nil, nil} end local lowerS = s:lower() -- Check for various forms of "yes" if lowerS == 'yes' or lowerS == 'y' or lowerS == 't' or lowerS == '1' or lowerS == 'true' or lowerS == 'on' then return {nil, true} end -- Check for various forms of "no" if lowerS == 'no' or lowerS == 'n' or lowerS == 'f' or lowerS == '0' or lowerS == 'false' or lowerS == 'off'then return {nil, false} end -- Neither yes nor no recognized, leave string trimmed return {s, true} end -- Merge two or more canonicalized argument lists -- Arguments: -- argList = list of canonicalized arguments -- noAll = if true, return no when all argList is no. -- otherwise, return blank when all argList is blank local function mergeArgs(argList,noAll) local test = nil -- default, return blank if all blank if noAll then test = false -- return no if all no end local allSame = true -- Search through string for first non-no or non-blank for _, arg in ipairs(argList) do if arg[2] then return arg -- found non-no and non-blank, return it end -- test to see if argList is all blank / no allSame = allSame and (arg[2] == test) end -- if all blank / no, return blank / no if allSame then return {nil, test} -- all match no/blank, return it end -- otherwise, return no / blank if noAll then return {nil, nil} end return {nil, false} end -- Function to get sitelink for a wiki -- Arguments: -- wiki = db name of wiki to lookup -- qid = QID of entity to search for, current page entity by default local function getSitelink(wiki,qid) -- return nil if some sort of lookup failure return qid and mw.wikibase.getSitelink(qid,wiki) end -- Function to get sitelink for a wiki -- Arguments: -- prefix = prefix string for wiki to lookup -- qid = QID of entity to search for, current page entity by default local function fetchWikidata(prefix,qid) local sisterDbName = sisterDb[prefix] return sisterDbName and getSitelink(sisterDbName,qid) end -- Function to generate the sister link itself -- Arguments: -- args = argument table for function -- args[1] = page to fetch -- args.default = link when blank -- args.auto = new auto mode (don't fall back to search) -- args.sitelink = wikidata sitelink (if available) -- args.qid = QID of entity -- args.search = fallback string to search for -- args.sisterPrefix = wikitext prefix for sister site -- args.information = type of info sister site contains -- tracking = tracking table local function genSisterLink(args, tracking) if args[1][2] == false or (not args.default and args[1][2] == nil) then return nil --- either editor specified "no", or "blank" (and default=no), then skip this sister end local sitelink = args.sitelink or fetchWikidata(args.sisterPrefix,args.qid) if args.auto and not sitelink and args[1][2] == nil then return nil --- in auto mode, if link is blank and no sitelink, then skip end -- fallback order of sister link: first specified page, then wikidata, then search local link = args[1][1] or sitelink or (args.search and "Special:"..args.search) if not link then return nil --- no link found, just skip end if tracking then -- update state for tracking categories if args[1][1] and sitelink then -- transform supplied page name to be in wiki-format local page = mw.ustring.gsub(args[1][1],"_"," ") page = mw.ustring.sub(page,1,1):upper()..mw.ustring.sub(page,2) local pageNS = mw.ustring.match(page,"^([^:]+):") local sitelinkNS = mw.ustring.match(sitelink,"^([^:]+):") if page == sitelink then tracking.wdHidden = args.sisterPrefix elseif pageNS ~= sitelinkNS then tracking.wdNamespace = args.sisterPrefix else tracking.wdMismatch = args.sisterPrefix end -- if no page link, nor a wikidata entry, and search is on, then warn elseif not (args[1][2] or sitelink) and args.search then tracking.defaultSearch = args.sisterPrefix end end return {prefix=args.sisterPrefix, link=link, information=args.information} end -- Function to handle special case of commons link local function commonsLinks(args, commonsPage) -- use [[Module:Commons link]] to determine best commons link local cLink = (not args.commonscat) and commonsLink._hasGallery(args.qid) or commonsLink._hasCategory(args.qid) if commonsPage[1] and not mw.ustring.match(commonsPage[1]:lower(),"^category:") then commonsPage[1] = (args.commonscat and "Category:" or "")..commonsPage[1] end local commonsSearch = "Search/"..(args.commonscat and "Category:" or "")..args[1] return {link=cLink, search=commonsSearch} end -- Function to handle special case for "author" and "cookbook" local function handleSubtype(args) local ns = args.ns local ns_len = mw.ustring.len(ns) local result = {} result.sitelink = fetchWikidata(args.prefix, args.qid) local subtype = false if args.page then if mw.ustring.sub(args.page,1,ns_len) == ns then subtype = true elseif args.subtype then result.page = ns..args.page subtype = true end elseif result.sitelink then subtype = mw.ustring.sub(result.sitelink,1,ns_len) == ns elseif args.subtype then result.search = "Search/"..ns..args.default subtype = true end if subtype then result.info = args.info end return result end -- Function to create a sister link, by prefix -- Arguments: -- prefix = sister prefix (e.g., "c" for commons) -- args = arguments for this sister (see p._sisterLink above) -- tracking = tracking table local function sisterLink(prefix, args, tracking) -- determine arguments to genSisterLink according to prefix if prefix == 'species_author' and not args.species[1] and args.species[2] and not args.species_author[1] and args.species_author[2] then return nil end local default = defaultSisters[prefix] if default == 'auto' then default = args.auto end -- Handle exceptions by prefix local search = ((prefix == 'd' and "ItemByTitle/enwiki/") or "Search/")..args[1] local sitelink = prefix == 'd' and args.qid local page = args[prefix] local info = sisterInfo[prefix] -- special case handling of author and cookbook local subtype = nil if prefix == 's' then subtype = handleSubtype({prefix='s',qid=args.qid,subtype=args.author,page=page[1], ns='Author:',info=nil,default=args[1]}) elseif prefix == 'b' then subtype = handleSubtype({prefix='b',qid=args.qid,subtype=args.cookbook,page=page[1], ns='Cookbook:',info='Recipes',default=args[1]}) end if subtype then page[1] = subtype.page or page[1] search = subtype.search or search sitelink = subtype.sitelink or sitelink info = subtype.info or info end if prefix == 'voy' and not args.bar and not page[1] and page[2] ~= nil then info = "Travel information" end info = args.information or info if prefix == 'c' then local commons = commonsLinks(args, page) search = commons.search sitelink = commons.link end prefix = (prefix == 'species_author' and 'species') or prefix return genSisterLink({ page, auto=args.auto, qid=args.qid, sitelink=sitelink, default=default, sisterPrefix = prefix, search=search, information=info}, tracking) end local function templatestyles_page(is_bar) local sandbox = inSandbox and 'sandbox/' or '' if is_bar then return mw.ustring.format( 'Module:Sister project links/bar/%sstyles.css', sandbox ) end return mw.ustring.format( 'Module:Sister project links/%sstyles.css', sandbox ) end -- Function to create html containers for sister project link list -- Arguments: -- args = table of arguments -- args.position: if 'left', position links to left -- args.collapsible: if non-empty, make box collapsible. If 'collapse', start box hidden -- args.style: CSS style string appended to end of default CSS -- args.display: boldface name to display local function createSisterBox(sisterList, args) local list = mw.html.create('ul') for i, link in ipairs(sisterList) do local li = list:tag('li') -- html element for 27px-high logo local logoSpan = li:tag('span') logoSpan:addClass(sandbox("sister-logo")) logoSpan:wikitext("[[File:"..logo[link.prefix].."|27x27px|middle|link=|alt=]]") -- html element for link local linkspan = li:tag('span') linkspan:addClass(sandbox("sister-link")) local linkText = "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] linkspan:wikitext(linkText) end list:allDone() return sideBox({ role = 'navigation', labelledby = 'sister-projects', class = sandbox("sister-box") .. ' sistersitebox plainlinks', position = args.position, style = args.style, abovestyle = args.collapsible and 'clear: both' or nil, above = mw.ustring.format( "'''%s''' at Wikipedia's [[Wikipedia:Wikimedia sister projects|<span id=\"sister-projects\">sister projects</span>]]", args.display or args[1] ), text = tostring(list), collapsible = args.collapsible, templatestyles = templatestyles_page() }) end local function createSisterBar(sisterList,args) local nav = mw.html.create( 'div' ) nav:addClass( 'noprint') nav:addClass( 'metadata') nav:addClass( sandbox('sister-bar')) nav:attr( 'role', 'navigation' ) nav:attr( 'aria-label' , 'sister-projects' ) local header = nav:tag('div') header:addClass(sandbox('sister-bar-header')) local pagename = header:tag('b') pagename:wikitext(args.display or args[1]) local headerText = " at Wikipedia's [[Wikipedia:Wikimedia sister projects|" headerText = headerText..'<span id="sister-projects" style="white-space:nowrap;">sister projects</span>]]:' header:wikitext(headerText) if #sisterList == 1 then header:wikitext("[[Category:Pages with single-entry sister bar]]") end local container = nav:tag('div') container:addClass(sandbox('sister-bar-content')) for _, link in ipairs(sisterList) do local item = container:tag('div') item:addClass(sandbox('sister-bar-item')) local logoSpan = item:tag('span') logoSpan:addClass(sandbox('sister-bar-logo')) logoSpan:wikitext("[[File:"..logo[link.prefix].."|21x19px|link=|alt=]]") local linkSpan = item:tag('span') linkSpan:addClass(sandbox('sister-bar-link')) linkSpan:wikitext("<b>[["..link.prefix..":"..link.link.."|"..link.information .."]]</b> from "..sisterName[link.prefix]) end return nav end function p._main(args) local titleObject = mw.title.getCurrentTitle() -- find qid, either supplied with args, from search string, or from current page args.qid = args.qid or mw.wikibase.getEntityIdForTitle(args[1] or "") or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() -- search string defaults to PAGENAME args[1] = args[1] or mw.wikibase.getSitelink(args.qid or "") or titleObject.text -- handle redundant "commons"/"c" prefix args.c = args.c or args.commons -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author","bar","tracking","sandbox"}) do args[k] = canonicalize(args[k])[2] end -- Initialize tracking categories if main namespace local tracking = (args.tracking or titleObject.namespace == 0) and {} local sisterList = {} local prefix -- Loop through all sister projects, generate possible links for _, prefix in ipairs(prefixList) do local link = sisterLink(prefix, args, tracking) if link then table.insert(sisterList, link) end end local box = mw.html.create() if args.bar and #sisterList > 0 then box:wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = templatestyles_page(true) } }) box:node(createSisterBar(sisterList,args)) elseif #sisterList == 1 then -- Use single sister box instead of multi-sister box local sister = sisterList[1] local link = "[["..sister.prefix..":"..sister.link.."|<b><i>"..(args.display or args[1]).."</i></b>]]" box:wikitext(sideBox({ role = 'navigation', position=args.position, image="[[File:"..logo[sister.prefix].."|40x40px|class=noviewer|alt=|link=]]", metadata='no', class='plainlinks sistersitebox', text=sisterName[sister.prefix].." has "..mw.ustring.lower(sister.information).." related to "..link, templatestyles = templatestyles_page() })) elseif #sisterList > 0 then -- else use sister box if non-empty box:wikitext(createSisterBox(sisterList,args)) end if #sisterList == 0 and args.auto then box:wikitext(generateWarning({"No sister project links found in Wikidata. Try auto=0"})) end -- Append tracking categories to container div -- Alpha ordering is by sister prefix if tracking then for k, v in pairs(tracking) do box:wikitext("[[Category:"..trackingType[k].."|"..v.."]]") end if #sisterList == 0 then box:wikitext("[[Category:Pages with empty sister project links]]") end end return tostring(box) end -- Main entry point for generating sister project links box function p.main(frame) local args = getArgs(frame,{frameOnly=false,parentOnly=false,parentFirst=false}) return p._main(args) end -- Lua entry point for generate one sister link function p._sisterlink(args) local prefix = args.prefix -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author"}) do args[k] = canonicalize(args[k])[2] end args[1] = args[1] or mw.title.getCurrentTitle().text args.qid = args.qid or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() local link = sisterLink(prefix, args,nil) if not link then return "" end return "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] end -- Template entry point for generating one sister link function p.link(frame) local args = getArgs(frame) return p._sisterlink(args) end return p hr47rmsc19vyv0rhnmw7tfp4ew0puvb 15981 15965 2022-08-18T13:02:31Z Kambai Akau 15 Kambai Akau shyei peji [[Module:Sister project links/sandbox]] nat [[Module:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox]] di̱ mi̱n wot a̱shaivak: Di̱n Tyap Scribunto text/plain require('Module:No globals') -- Module to create sister project link box local getArgs = require('Module:Arguments').getArgs local commonsLink = require('Module:Commons link') local sideBox = require('Module:Side box')._main local generateWarning = require('Module:If preview')._warning local p = {} local logo = { wikt="Wiktionary-logo-v2.svg", c="Commons-logo.svg", n="Wikinews-logo.svg", q="Wikiquote-logo.svg", s="Wikisource-logo.svg", b="Wikibooks-logo.svg", voy="Wikivoyage-Logo-v3-icon.svg", v="Wikiversity logo 2017.svg", d="Wikidata-logo.svg", species="Wikispecies-logo.svg", m="Wikimedia Community Logo.svg", mw="MediaWiki-2020-icon.svg"} local prefixList = {'wikt', 'c', 'n', 'q', 's', 'b', 'voy', 'v', 'd', 'species', 'species_author', 'm', 'mw'} local sisterName = { wikt="Wiktionary", c="Commons", n="Wikinews", q="Wikiquote", s="Wikisource", b="Wikibooks", voy="Wikivoyage", v="Wikiversity", d="Wikidata", species="Wikispecies", m="Meta-Wiki", mw="MediaWiki"} local sisterInfo = { wikt="Definitions", c="Media", n="News", q="Quotations", s="Texts", b="Textbooks", voy="Travel guides", v="Resources", d="Data", species="Taxa", species_author="Authorship", m="Discussions", mw="Documentation" } local defaultSisters = { wikt=true, c=true, n=true, q=true, s=true, b=true, voy='auto', v=true, d=false, species='auto', species_author=false, m=false, mw=false } local sisterDb = { wikt="enwiktionary", n="enwikinews", q="enwikiquote", s="enwikisource", b="enwikibooks", voy="enwikivoyage", v="enwikiversity", species="specieswiki"} local trackingType = { wdMismatch="Pages using Sister project links with wikidata mismatch", wdNamespace="Pages using Sister project links with wikidata namespace mismatch", wdHidden="Pages using Sister project links with hidden wikidata", defaultSearch="Pages using Sister project links with default search"} local inSandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) -- Function to add "-sand" to classes when called from sandbox local function sandbox(s) return inSandbox and s.."-sand" or s end -- Function to canonicalize string -- search for variants of "yes", and "no", and transform -- them into a standard form (like [[Template:YesNo]]) -- Argument: -- s --- input string -- Result: -- {x,y} list of length 2 -- x = nil if s is canonicalized, otherwise has trimmed s -- y = canonical form of s (true if "yes" or other, false if "no", nil if blank) local function canonicalize(s) if s == nil then return {nil, nil} end -- if s is table/list, then assume already canonicalized and return unchanged if tostring(type(s)) == "table" then return s end s = mw.text.trim(tostring(s)) if s == "" then return {nil, nil} end local lowerS = s:lower() -- Check for various forms of "yes" if lowerS == 'yes' or lowerS == 'y' or lowerS == 't' or lowerS == '1' or lowerS == 'true' or lowerS == 'on' then return {nil, true} end -- Check for various forms of "no" if lowerS == 'no' or lowerS == 'n' or lowerS == 'f' or lowerS == '0' or lowerS == 'false' or lowerS == 'off'then return {nil, false} end -- Neither yes nor no recognized, leave string trimmed return {s, true} end -- Merge two or more canonicalized argument lists -- Arguments: -- argList = list of canonicalized arguments -- noAll = if true, return no when all argList is no. -- otherwise, return blank when all argList is blank local function mergeArgs(argList,noAll) local test = nil -- default, return blank if all blank if noAll then test = false -- return no if all no end local allSame = true -- Search through string for first non-no or non-blank for _, arg in ipairs(argList) do if arg[2] then return arg -- found non-no and non-blank, return it end -- test to see if argList is all blank / no allSame = allSame and (arg[2] == test) end -- if all blank / no, return blank / no if allSame then return {nil, test} -- all match no/blank, return it end -- otherwise, return no / blank if noAll then return {nil, nil} end return {nil, false} end -- Function to get sitelink for a wiki -- Arguments: -- wiki = db name of wiki to lookup -- qid = QID of entity to search for, current page entity by default local function getSitelink(wiki,qid) -- return nil if some sort of lookup failure return qid and mw.wikibase.getSitelink(qid,wiki) end -- Function to get sitelink for a wiki -- Arguments: -- prefix = prefix string for wiki to lookup -- qid = QID of entity to search for, current page entity by default local function fetchWikidata(prefix,qid) local sisterDbName = sisterDb[prefix] return sisterDbName and getSitelink(sisterDbName,qid) end -- Function to generate the sister link itself -- Arguments: -- args = argument table for function -- args[1] = page to fetch -- args.default = link when blank -- args.auto = new auto mode (don't fall back to search) -- args.sitelink = wikidata sitelink (if available) -- args.qid = QID of entity -- args.search = fallback string to search for -- args.sisterPrefix = wikitext prefix for sister site -- args.information = type of info sister site contains -- tracking = tracking table local function genSisterLink(args, tracking) if args[1][2] == false or (not args.default and args[1][2] == nil) then return nil --- either editor specified "no", or "blank" (and default=no), then skip this sister end local sitelink = args.sitelink or fetchWikidata(args.sisterPrefix,args.qid) if args.auto and not sitelink and args[1][2] == nil then return nil --- in auto mode, if link is blank and no sitelink, then skip end -- fallback order of sister link: first specified page, then wikidata, then search local link = args[1][1] or sitelink or (args.search and "Special:"..args.search) if not link then return nil --- no link found, just skip end if tracking then -- update state for tracking categories if args[1][1] and sitelink then -- transform supplied page name to be in wiki-format local page = mw.ustring.gsub(args[1][1],"_"," ") page = mw.ustring.sub(page,1,1):upper()..mw.ustring.sub(page,2) local pageNS = mw.ustring.match(page,"^([^:]+):") local sitelinkNS = mw.ustring.match(sitelink,"^([^:]+):") if page == sitelink then tracking.wdHidden = args.sisterPrefix elseif pageNS ~= sitelinkNS then tracking.wdNamespace = args.sisterPrefix else tracking.wdMismatch = args.sisterPrefix end -- if no page link, nor a wikidata entry, and search is on, then warn elseif not (args[1][2] or sitelink) and args.search then tracking.defaultSearch = args.sisterPrefix end end return {prefix=args.sisterPrefix, link=link, information=args.information} end -- Function to handle special case of commons link local function commonsLinks(args, commonsPage) -- use [[Module:Commons link]] to determine best commons link local cLink = (not args.commonscat) and commonsLink._hasGallery(args.qid) or commonsLink._hasCategory(args.qid) if commonsPage[1] and not mw.ustring.match(commonsPage[1]:lower(),"^category:") then commonsPage[1] = (args.commonscat and "Category:" or "")..commonsPage[1] end local commonsSearch = "Search/"..(args.commonscat and "Category:" or "")..args[1] return {link=cLink, search=commonsSearch} end -- Function to handle special case for "author" and "cookbook" local function handleSubtype(args) local ns = args.ns local ns_len = mw.ustring.len(ns) local result = {} result.sitelink = fetchWikidata(args.prefix, args.qid) local subtype = false if args.page then if mw.ustring.sub(args.page,1,ns_len) == ns then subtype = true elseif args.subtype then result.page = ns..args.page subtype = true end elseif result.sitelink then subtype = mw.ustring.sub(result.sitelink,1,ns_len) == ns elseif args.subtype then result.search = "Search/"..ns..args.default subtype = true end if subtype then result.info = args.info end return result end -- Function to create a sister link, by prefix -- Arguments: -- prefix = sister prefix (e.g., "c" for commons) -- args = arguments for this sister (see p._sisterLink above) -- tracking = tracking table local function sisterLink(prefix, args, tracking) -- determine arguments to genSisterLink according to prefix if prefix == 'species_author' and not args.species[1] and args.species[2] and not args.species_author[1] and args.species_author[2] then return nil end local default = defaultSisters[prefix] if default == 'auto' then default = args.auto end -- Handle exceptions by prefix local search = ((prefix == 'd' and "ItemByTitle/enwiki/") or "Search/")..args[1] local sitelink = prefix == 'd' and args.qid local page = args[prefix] local info = sisterInfo[prefix] -- special case handling of author and cookbook local subtype = nil if prefix == 's' then subtype = handleSubtype({prefix='s',qid=args.qid,subtype=args.author,page=page[1], ns='Author:',info=nil,default=args[1]}) elseif prefix == 'b' then subtype = handleSubtype({prefix='b',qid=args.qid,subtype=args.cookbook,page=page[1], ns='Cookbook:',info='Recipes',default=args[1]}) end if subtype then page[1] = subtype.page or page[1] search = subtype.search or search sitelink = subtype.sitelink or sitelink info = subtype.info or info end if prefix == 'voy' and not args.bar and not page[1] and page[2] ~= nil then info = "Travel information" end info = args.information or info if prefix == 'c' then local commons = commonsLinks(args, page) search = commons.search sitelink = commons.link end prefix = (prefix == 'species_author' and 'species') or prefix return genSisterLink({ page, auto=args.auto, qid=args.qid, sitelink=sitelink, default=default, sisterPrefix = prefix, search=search, information=info}, tracking) end local function templatestyles_page(is_bar) local sandbox = inSandbox and 'sandbox/' or '' if is_bar then return mw.ustring.format( 'Module:Sister project links/bar/%sstyles.css', sandbox ) end return mw.ustring.format( 'Module:Sister project links/%sstyles.css', sandbox ) end -- Function to create html containers for sister project link list -- Arguments: -- args = table of arguments -- args.position: if 'left', position links to left -- args.collapsible: if non-empty, make box collapsible. If 'collapse', start box hidden -- args.style: CSS style string appended to end of default CSS -- args.display: boldface name to display local function createSisterBox(sisterList, args) local list = mw.html.create('ul') for i, link in ipairs(sisterList) do local li = list:tag('li') -- html element for 27px-high logo local logoSpan = li:tag('span') logoSpan:addClass(sandbox("sister-logo")) logoSpan:wikitext("[[File:"..logo[link.prefix].."|27x27px|middle|link=|alt=]]") -- html element for link local linkspan = li:tag('span') linkspan:addClass(sandbox("sister-link")) local linkText = "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] linkspan:wikitext(linkText) end list:allDone() return sideBox({ role = 'navigation', labelledby = 'sister-projects', class = sandbox("sister-box") .. ' sistersitebox plainlinks', position = args.position, style = args.style, abovestyle = args.collapsible and 'clear: both' or nil, above = mw.ustring.format( "'''%s''' at Wikipedia's [[Wikipedia:Wikimedia sister projects|<span id=\"sister-projects\">sister projects</span>]]", args.display or args[1] ), text = tostring(list), collapsible = args.collapsible, templatestyles = templatestyles_page() }) end local function createSisterBar(sisterList,args) local nav = mw.html.create( 'div' ) nav:addClass( 'noprint') nav:addClass( 'metadata') nav:addClass( sandbox('sister-bar')) nav:attr( 'role', 'navigation' ) nav:attr( 'aria-label' , 'sister-projects' ) local header = nav:tag('div') header:addClass(sandbox('sister-bar-header')) local pagename = header:tag('b') pagename:wikitext(args.display or args[1]) local headerText = " at Wikipedia's [[Wikipedia:Wikimedia sister projects|" headerText = headerText..'<span id="sister-projects" style="white-space:nowrap;">sister projects</span>]]:' header:wikitext(headerText) if #sisterList == 1 then header:wikitext("[[Category:Pages with single-entry sister bar]]") end local container = nav:tag('div') container:addClass(sandbox('sister-bar-content')) for _, link in ipairs(sisterList) do local item = container:tag('div') item:addClass(sandbox('sister-bar-item')) local logoSpan = item:tag('span') logoSpan:addClass(sandbox('sister-bar-logo')) logoSpan:wikitext("[[File:"..logo[link.prefix].."|21x19px|link=|alt=]]") local linkSpan = item:tag('span') linkSpan:addClass(sandbox('sister-bar-link')) linkSpan:wikitext("<b>[["..link.prefix..":"..link.link.."|"..link.information .."]]</b> from "..sisterName[link.prefix]) end return nav end function p._main(args) local titleObject = mw.title.getCurrentTitle() -- find qid, either supplied with args, from search string, or from current page args.qid = args.qid or mw.wikibase.getEntityIdForTitle(args[1] or "") or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() -- search string defaults to PAGENAME args[1] = args[1] or mw.wikibase.getSitelink(args.qid or "") or titleObject.text -- handle redundant "commons"/"c" prefix args.c = args.c or args.commons -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author","bar","tracking","sandbox"}) do args[k] = canonicalize(args[k])[2] end -- Initialize tracking categories if main namespace local tracking = (args.tracking or titleObject.namespace == 0) and {} local sisterList = {} local prefix -- Loop through all sister projects, generate possible links for _, prefix in ipairs(prefixList) do local link = sisterLink(prefix, args, tracking) if link then table.insert(sisterList, link) end end local box = mw.html.create() if args.bar and #sisterList > 0 then box:wikitext(mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = templatestyles_page(true) } }) box:node(createSisterBar(sisterList,args)) elseif #sisterList == 1 then -- Use single sister box instead of multi-sister box local sister = sisterList[1] local link = "[["..sister.prefix..":"..sister.link.."|<b><i>"..(args.display or args[1]).."</i></b>]]" box:wikitext(sideBox({ role = 'navigation', position=args.position, image="[[File:"..logo[sister.prefix].."|40x40px|class=noviewer|alt=|link=]]", metadata='no', class='plainlinks sistersitebox', text=sisterName[sister.prefix].." has "..mw.ustring.lower(sister.information).." related to "..link, templatestyles = templatestyles_page() })) elseif #sisterList > 0 then -- else use sister box if non-empty box:wikitext(createSisterBox(sisterList,args)) end if #sisterList == 0 and args.auto then box:wikitext(generateWarning({"No sister project links found in Wikidata. Try auto=0"})) end -- Append tracking categories to container div -- Alpha ordering is by sister prefix if tracking then for k, v in pairs(tracking) do box:wikitext("[[Category:"..trackingType[k].."|"..v.."]]") end if #sisterList == 0 then box:wikitext("[[Category:Pages with empty sister project links]]") end end return tostring(box) end -- Main entry point for generating sister project links box function p.main(frame) local args = getArgs(frame,{frameOnly=false,parentOnly=false,parentFirst=false}) return p._main(args) end -- Lua entry point for generate one sister link function p._sisterlink(args) local prefix = args.prefix -- Canonicalize all sister links (handle yes/no/empty) for _, k in ipairs(prefixList) do args[k] = canonicalize(args[k]) end -- Canonicalize cookbook args.cookbook = canonicalize(args.cookbook) args.b = mergeArgs({args.b,args.cookbook}) args.cookbook = args.cookbook[2] -- Canonicalize general parameters for _,k in pairs({"auto","commonscat","author"}) do args[k] = canonicalize(args[k])[2] end args[1] = args[1] or mw.title.getCurrentTitle().text args.qid = args.qid or mw.wikibase.getEntityIdForCurrentPage() args.qid = args.qid and args.qid:upper() local link = sisterLink(prefix, args,nil) if not link then return "" end return "[["..link.prefix..":"..link.link.."|"..link.information .."]] from "..sisterName[link.prefix] end -- Template entry point for generating one sister link function p.link(frame) local args = getArgs(frame) return p._sisterlink(args) end return p hr47rmsc19vyv0rhnmw7tfp4ew0puvb Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/doc 10 2071 15969 2022-08-18T12:58:18Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/doc]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/doc]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/doc]] 9n96fkob559wfaoug7bxrp6ruvc1g5d 15974 15969 2022-08-18T12:58:32Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/doc]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/doc]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/doc]] 9n96fkob559wfaoug7bxrp6ruvc1g5d Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/testcases 10 2072 15971 2022-08-18T12:58:19Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/testcases]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/testcases]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/testcases]] a4iaz0x9qq6b1yj9ho11jokkwfwtk93 15976 15971 2022-08-18T12:58:32Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/testcases]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/testcases]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang/testcases]] a4iaz0x9qq6b1yj9ho11jokkwfwtk93 Ta‌̱mpi‌̱let:Sister project links 10 2073 15973 2022-08-18T12:58:32Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang]] 2h64xjqp0z1xqkkjnaqxw3uf7j2gh3i Ta‌̱mpi‌̱let:Sister project links/doc 10 2074 15975 2022-08-18T12:58:32Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/doc]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/doc]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/doc]] fini0xg5s7x1in5avdhcsx96kl2zg7p Ta‌̱mpi‌̱let:Sister project links/testcases 10 2075 15977 2022-08-18T12:58:32Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project links/testcases]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/testcases]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/testcases]] hp0jopg64h2k2dsavwko5ep92vfhkde Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang 10 2076 15985 2022-08-18T13:05:15Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m jhyang]] nat [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang]] wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang]] 2h64xjqp0z1xqkkjnaqxw3uf7j2gh3i Ta‌̱mpi‌̱let:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox 10 2077 15992 2022-08-18T13:23:21Z Kambai Akau 15 Created page with "{{#invoke:Sister project links/sandbox|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude>" wikitext text/x-wiki {{#invoke:Sister project links/sandbox|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> li0ot2v5tro356vymjdehhszpxqcxa0 15993 15992 2022-08-18T13:25:01Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Sister project links with unknown parameters|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> f52xb37a6pcylfm602or2qi5glu8iqi 16043 15993 2022-08-18T19:46:18Z Kambai Akau 15 wikitext text/x-wiki {{#invoke:A̱ka̱fwuop nta̱m a̱meang jhyang/sandbox|main}}{{main other|{{#invoke:Check for unknown parameters|check|unknown=[[Category:Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kace a̱gi̱gak|_VALUE_]]|preview=unknown parameter "_VALUE_"|1|author|auto|b|c|collapsible|commons|commonscat|d|display|m|mw|n|position|q|qid|s|species|species_author|style|v|voy|wikt}}}}<noinclude> {{Documentation}} </noinclude> 989flzcu4z9gkaupsslsyyblv9w72kv Ta‌̱mpi‌̱let:Sister project 10 2078 15996 2022-08-18T13:30:01Z Kambai Akau 15 Kambai Akau shyei peji [[Ta‌̱mpi‌̱let:Sister project]] nat [[Ta‌̱mpi‌̱let:Ta̱m a̱meang]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:Ta̱m a̱meang]] 48xgso5thfj0imiikt05dtekljcfkdw Ta‌̱mpi‌̱let:Ta̱m a̱meang/doc 10 2079 15997 2022-08-18T13:33:05Z Kambai Akau 15 Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{High-risk}} {{Lua|Module:Side box}} This is a meta-template used for creating interwiki links to other [[Wikipedia:Wikimedia sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use interwiki links to add them to the sidebar. == Usage == *{{para|text}} &ndash; text of the message *{{para|proje..." wikitext text/x-wiki {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{High-risk}} {{Lua|Module:Side box}} This is a meta-template used for creating interwiki links to other [[Wikipedia:Wikimedia sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use interwiki links to add them to the sidebar. == Usage == *{{para|text}} &ndash; text of the message *{{para|project}} &ndash; the sister project to link to. Used to select which project logo is displayed. *{{para|below}} &ndash; optional text to display in a full-width row below the main content. Use sparingly *{{para|position}} &ndash; set to <kbd>left</kbd> for a left-floating box or, ideally, pass through with {{nowrap|<kbd><nowiki>|position={{{position|}}}</nowiki></kbd>}} to let this be set on a per-page basis. '''Example''' <syntaxhighlight lang="moin"> {{Sister project |project=commons |text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} </syntaxhighlight> {{Sister project |project=commons |text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} ===Location=== This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> ==Template data== {{TemplateDataHeader}} <templatedata>{ "description": "Creates a small box with a links to an article on a sister project of wikipedia.", "params": { "project": { "label": "Project", "description": "The project to link to e.g. commons, meta, wikibooks, wikidata, wikiquote, wikipedia, wikisource, wiktionary, wikinews, wikispecies, wikiversity, wikivoyage, mediawiki, outreachwiki, or incubator. The default displays the Wikimedia logo.", "type": "string", "required": true }, "text": { "label": "Text", "description": "Text of the message e.g. [[Wikimedia Commons]] has media related to: '''''[[Commons:Alcatraz]]'''''", "type": "string", "required": true }, "below": { "label": "Below", "description": "Optional text to display in a full-width row below the main content. Use sparingly.", "type": "string", "required": false }, "position": { "label": "Position", "description": "Position to display the box: 'left' floats the box to the left rather than the default, which is on the right.", "type": "string", "required": false } }}</templatedata> ==Images used== This template potentially displays the following images. * [[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>commons</code> * [[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>meta</code>, <code>metawiki</code>, or <code>m</code> * [[File:Wikibooks-logo-en-noslogan.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo-en-noslogan.svg|Wikibooks logo]] <code>wikibooks</code>, <code>wbk</code>, <code>wb</code>, or <code>b</code> * [[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>wikidata</code> or <code>data</code> * [[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>wikiquote</code>, <code>quote</code>, <code>wqt</code>, or <code>q</code> * [[File:Wikipedia-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wikipedia-logo-v2.svg|Wikipedia logo]] <code>wikipedia</code>, <code>wp</code>, or <code>w</code> * [[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>wikisource</code>, <code>source</code>, <code>ws</code>, or <code>s</code> * [[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wiktionary</code>, <code>wkt</code>, <code>wdy</code>, or <code>d</code> * [[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>wikinews</code>, <code>news</code>, <code>wnw</code>, or <code>n</code> * [[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>wikispecies</code> or <code>species</code> * [[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>wikiversity</code>, <code>wvy</code>, or <code>v</code> * [[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>wikivoyage</code>, <code>voyage</code>, or <code>voy</code> * [[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mediawiki</code> or <code>mw</code> * [[File:Wikimedia Outreach.png|27x27px|link=|alt=]] [[:File:Wikimedia Outreach.png|Wikimedia Outreach logo]] <code>outreachwiki</code> or <code>outreach</code> * [[File:Incubator-notext.svg|27x27px|link=|alt=]] [[:File:Incubator-notext.svg|Wikimedia Incubator logo]] <code>incubator</code> * [[File:Wikimedia-logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia-logo.svg|Wikimedia logo]] default == See also == * {{tl|Sister-inline}}, compatible template for inline use with preceding bullets or indentation * {{tl|Sister project links}} * {{tl|Side box}}, the meta-template used for floated side boxes like {{tl|sister project}} * {{tl|Subject bar}}, a comprehensive horizontal template <includeonly>{{Sandbox other|| [[Category:Interwiki link templates| ]] }}</includeonly> 81gfhcducurbis00cxweibkm4l9c8a5 16013 15997 2022-08-18T14:13:04Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{High-risk}} {{Lua|Module:Side box}} This is a meta-template used for creating interwiki links to other [[Wikipedia:Wikimedia sister projects|sister projects]] of Wikipedia. Note that links to other ''language'' Wikipedias should ''not'' use links in this form, instead use interwiki links to add them to the sidebar. == Usage == *{{para|text}} &ndash; text of the message *{{para|project}} &ndash; the sister project to link to. Used to select which project logo is displayed. *{{para|below}} &ndash; optional text to display in a full-width row below the main content. Use sparingly *{{para|position}} &ndash; set to <kbd>left</kbd> for a left-floating box or, ideally, pass through with {{nowrap|<kbd><nowiki>|position={{{position|}}}</nowiki></kbd>}} to let this be set on a per-page basis. '''Example''' <syntaxhighlight lang="moin"> {{Sister project |project=commons |text=[[Wikimedia Commons]] has media related to: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} </syntaxhighlight> {{Sister project |project=commons |text=[[Wikimedia Commons]] byia̱ nyinyiit shei nkhang a̱meang ma̱ng: '''''[[Commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]''''' }} ===Location=== This template should normally be placed at the top of the ''External links'' section at the end of an article, if the article has a section for [[WP:EL|external links]]. If no such section exists, then please place it at the top of the last section in <nowiki>the article</nowiki>. On [[WP:DAB|disambiguation pages]], this template should be listed above other text, but below any cleanup templates, images, infoboxes or navboxes.<!-- Per WP:ACCESS, cleanup templates, images, infoboxes, and navboxes are always<nowiki> first</nowiki>. --> ==Template data== {{TemplateDataHeader}} <templatedata>{ "description": "Creates a small box with a links to an article on a sister project of wikipedia.", "params": { "project": { "label": "Project", "description": "The project to link to e.g. commons, meta, wikibooks, wikidata, wikiquote, wikipedia, wikisource, wiktionary, wikinews, wikispecies, wikiversity, wikivoyage, mediawiki, outreachwiki, or incubator. The default displays the Wikimedia logo.", "type": "string", "required": true }, "text": { "label": "Text", "description": "Text of the message e.g. [[Wikimedia Commons]] has media related to: '''''[[Commons:Alcatraz]]'''''", "type": "string", "required": true }, "below": { "label": "Below", "description": "Optional text to display in a full-width row below the main content. Use sparingly.", "type": "string", "required": false }, "position": { "label": "Position", "description": "Position to display the box: 'left' floats the box to the left rather than the default, which is on the right.", "type": "string", "required": false } }}</templatedata> ==Images used== This template potentially displays the following images. * [[File:Commons-logo.svg|27x27px|link=|alt=]] [[:File:Commons-logo.svg|Wikimedia Commons logo]] <code>commons</code> * [[File:Wikimedia Community Logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia Community Logo.svg|Meta-Wiki logo]] <code>meta</code>, <code>metawiki</code>, or <code>m</code> * [[File:Wikibooks-logo-en-noslogan.svg|27x27px|link=|alt=]] [[:File:Wikibooks-logo-en-noslogan.svg|Wikibooks logo]] <code>wikibooks</code>, <code>wbk</code>, <code>wb</code>, or <code>b</code> * [[File:Wikidata-logo.svg|27x27px|link=|alt=]] [[:File:Wikidata-logo.svg|Wikidata logo]] <code>wikidata</code> or <code>data</code> * [[File:Wikiquote-logo.svg|27x27px|link=|alt=]] [[:File:Wikiquote-logo.svg|Wikiquote logo]] <code>wikiquote</code>, <code>quote</code>, <code>wqt</code>, or <code>q</code> * [[File:Wikipedia-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wikipedia-logo-v2.svg|Wikipedia logo]] <code>wikipedia</code>, <code>wp</code>, or <code>w</code> * [[File:Wikisource-logo.svg|27x27px|link=|alt=]] [[:File:Wikisource-logo.svg|Wikisource logo]] <code>wikisource</code>, <code>source</code>, <code>ws</code>, or <code>s</code> * [[File:Wiktionary-logo-v2.svg|27x27px|link=|alt=]] [[:File:Wiktionary-logo-v2.svg|Wiktionary logo]] <code>wiktionary</code>, <code>wkt</code>, <code>wdy</code>, or <code>d</code> * [[File:Wikinews-logo.svg|27x27px|link=|alt=]] [[:File:Wikinews-logo.svg|Wikinews logo]] <code>wikinews</code>, <code>news</code>, <code>wnw</code>, or <code>n</code> * [[File:Wikispecies-logo.svg|27x27px|link=|alt=]] [[:File:Wikispecies-logo.svg|Wikispecies logo]] <code>wikispecies</code> or <code>species</code> * [[File:Wikiversity logo 2017.svg|27x27px|link=|alt=]] [[:File:Wikiversity logo 2017.svg|Wikiversity logo]] <code>wikiversity</code>, <code>wvy</code>, or <code>v</code> * [[File:Wikivoyage-Logo-v3-icon.svg|27x27px|link=|alt=]] [[:File:Wikivoyage-Logo-v3-icon.svg|Wikivoyage logo]] <code>wikivoyage</code>, <code>voyage</code>, or <code>voy</code> * [[File:MediaWiki-2020-icon.svg|27x27px|link=|alt=]] [[:File:MediaWiki-2020-icon.svg|MediaWiki logo]] <code>mediawiki</code> or <code>mw</code> * [[File:Wikimedia Outreach.png|27x27px|link=|alt=]] [[:File:Wikimedia Outreach.png|Wikimedia Outreach logo]] <code>outreachwiki</code> or <code>outreach</code> * [[File:Incubator-notext.svg|27x27px|link=|alt=]] [[:File:Incubator-notext.svg|Wikimedia Incubator logo]] <code>incubator</code> * [[File:Wikimedia-logo.svg|27x27px|link=|alt=]] [[:File:Wikimedia-logo.svg|Wikimedia logo]] default == See also == * {{tl|Sister-inline}}, compatible template for inline use with preceding bullets or indentation * {{tl|Sister project links}} * {{tl|Side box}}, the meta-template used for floated side boxes like {{tl|sister project}} * {{tl|Subject bar}}, a comprehensive horizontal template <includeonly>{{Sandbox other|| [[Category:Interwiki link templates| ]] }}</includeonly> 6zee1vep9k6qhvbqx13ezcpg4l6kacd Ta‌̱mpi‌̱let:Ta̱m a̱meang/sandbox 10 2080 15998 2022-08-18T13:34:10Z Kambai Akau 15 Created page with "{{Side box/sandbox | metadata=no | position = {{{position|}}} | image = {{#switch: {{{image|}}} | none = <!-- "image=none", do nothing --> | = <!-- No image fed, select an image --> File:{{#switch: {{lc: {{{project|}}} }} | commons = Commons-logo.svg | meta|metawiki|m = Wikimedia Community Logo.svg | wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg | wikidata|data = Wikidata-logo.svg | w..." wikitext text/x-wiki {{Side box/sandbox | metadata=no | position = {{{position|}}} | image = {{#switch: {{{image|}}} | none = <!-- "image=none", do nothing --> | = <!-- No image fed, select an image --> [[File:{{#switch: {{lc: {{{project|}}} }} | commons = Commons-logo.svg | meta|metawiki|m = Wikimedia Community Logo.svg | wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg | wikidata|data = Wikidata-logo.svg | wikiquote|quote|wqt|q = Wikiquote-logo.svg | wikipedia|wp|w = Wikipedia-logo-v2.svg | wikisource|source|ws|s = Wikisource-logo.svg | wiktionary|wkt|wdy|d = Wiktionary-logo-en-v2.svg | wikinews|news|wnw|n = Wikinews-logo.svg | wikispecies|species = Wikispecies-logo.svg | wikiversity|wvy|v = Wikiversity logo 2017.svg | wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg | mediawiki|mw = MediaWiki-2020-icon.svg | outreachwiki|outreach = Wikimedia Outreach.png | incubator = Incubator-notext.svg | #default = Wikimedia-logo.svg }}|40x40px|class=noviewer|alt=|link= ]] | #default = {{{image|}}} }} | textclass = {{{textclass|plainlist}}} | textstyle = {{{textstyle|}}} | text = {{{text}}} | below = {{{below|}}} | imageright = {{{imageright|}}} | class = plainlinks sistersitebox }}<noinclude>{{Documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude> p4w48sq9u4knrs23c0bnmjwjp0d24lz Ta‌̱mpi‌̱let:Side box/sandbox 10 2081 15999 2022-08-18T13:35:26Z Kambai Akau 15 Created page with "local yesno = require('Module:Yesno') local p = {} local function makeData(args) local data = {} -- Main table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower() == 'left' then table.insert(data.classes, 'side-box-left') else table.insert(data.classes, 'side-box-right') end if args.collapsible then table.insert(data.classes, 'mw-collapsible') if args...." wikitext text/x-wiki local yesno = require('Module:Yesno') local p = {} local function makeData(args) local data = {} -- Main table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower() == 'left' then table.insert(data.classes, 'side-box-left') else table.insert(data.classes, 'side-box-right') end if args.collapsible then table.insert(data.classes, 'mw-collapsible') if args.collapsible == "collapsed" then table.insert(data.classes, 'mw-collapsed') end data.collapsible = true end table.insert(data.classes, args.class) -- Image if args.image and args.image ~= 'none' then data.image = args.image end -- Copy over data that does not need adjusting local argsToCopy = { -- aria qualities 'role', 'labelledby', -- Classes 'textclass', -- Styles 'style', 'textstyle', 'templatestyles', -- Above row 'above', 'abovestyle', -- Body row 'text', 'imageright', -- Below row 'below', } for i, key in ipairs(argsToCopy) do data[key] = args[key] end return data end local function renderSidebox(data) -- Renders the sidebox HTML. -- Table root local root = mw.html.create('div') root:attr('role', data.role) :attr('aria-labelledby', data.labelledby) :addClass('side-box') for i, class in ipairs(data.classes or {}) do root:addClass(class) end if data.style then root:cssText(data.style) end -- The "above" row if data.above then local above = root:newline():tag('div') above:addClass('side-box-abovebelow') :newline() :wikitext(data.above) if data.textstyle then above:cssText(data.textstyle) end if data.abovestyle then above:cssText(data.abovestyle) end end -- The body row local body = root:newline():tag('div') body:addClass('side-box-flex') :addClass(data.collapsible and 'mw-collapsible-content') :newline() if data.image then body:tag('div') :addClass('side-box-image') :wikitext(data.image) end local text = body:newline():tag('div') text:addClass('side-box-text') :addClass(data.textclass or 'plainlist') if data.textstyle then text:cssText(data.textstyle) end text:wikitext(data.text) if data.imageright then body:newline():tag('div') :addClass('side-box-imageright') :wikitext(data.imageright) end -- The below row if data.below then local below = root:newline():tag('div') below :addClass('side-box-abovebelow') :wikitext(data.below) if data.textstyle then below:cssText(data.textstyle) end end root:newline() local frame = mw.getCurrentFrame() local templatestyles = '' if data.templatestyles then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = data.templatestyles } } end return frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Side box/styles.css' } } .. templatestyles .. tostring(root) end function p._main(args) local data = makeData(args) return renderSidebox(data) end function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end return p egcspx2irukqbdg26nexp0sq0xy7sp0 16000 15999 2022-08-18T13:39:25Z Kambai Akau 15 wikitext text/x-wiki -- This module implements {{side box}}. local yesno = require('Module:Yesno') local p = {} local function makeData(args) local data = {} -- Main table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower() == 'left' then table.insert(data.classes, 'side-box-left') else table.insert(data.classes, 'side-box-right') end if args.collapsible then table.insert(data.classes, 'mw-collapsible') if args.collapsible == "collapsed" then table.insert(data.classes, 'mw-collapsed') end data.collapsible = true end table.insert(data.classes, args.class) -- Image if args.image and args.image ~= 'none' then data.image = args.image end -- Copy over data that does not need adjusting local argsToCopy = { -- aria qualities 'role', 'labelledby', -- Classes 'textclass', -- Styles 'style', 'textstyle', 'templatestyles', -- Above row 'above', 'abovestyle', -- Body row 'text', 'imageright', -- Below row 'below', } for i, key in ipairs(argsToCopy) do data[key] = args[key] end return data end local function renderSidebox(data) -- Renders the sidebox HTML. -- Table root local root = mw.html.create('div') root:attr('role', data.role) :attr('aria-labelledby', data.labelledby) :addClass('side-box') for i, class in ipairs(data.classes or {}) do root:addClass(class) end if data.style then root:cssText(data.style) end -- The "above" row if data.above then local above = root:newline():tag('div') above:addClass('side-box-abovebelow') :newline() :wikitext(data.above) if data.textstyle then above:cssText(data.textstyle) end if data.abovestyle then above:cssText(data.abovestyle) end end -- The body row local body = root:newline():tag('div') body:addClass('side-box-flex') :addClass(data.collapsible and 'mw-collapsible-content') :newline() if data.image then body:tag('div') :addClass('side-box-image') :wikitext(data.image) end local text = body:newline():tag('div') text:addClass('side-box-text') :addClass(data.textclass or 'plainlist') if data.textstyle then text:cssText(data.textstyle) end text:wikitext(data.text) if data.imageright then body:newline():tag('div') :addClass('side-box-imageright') :wikitext(data.imageright) end -- The below row if data.below then local below = root:newline():tag('div') below :addClass('side-box-abovebelow') :wikitext(data.below) if data.textstyle then below:cssText(data.textstyle) end end root:newline() local frame = mw.getCurrentFrame() local templatestyles = '' if data.templatestyles then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = data.templatestyles } } end return frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Side box/styles.css' } } .. templatestyles .. tostring(root) end function p._main(args) local data = makeData(args) return renderSidebox(data) end function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end return p 1b73hdm2hspyb6vwl1vlt2smbccio0d 16001 16000 2022-08-18T13:40:43Z Kambai Akau 15 Replaced content with "{{#invoke:Side box/sandbox|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" wikitext text/x-wiki {{#invoke:Side box/sandbox|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> lusj0fz2476oo06ovjxybnwiggwwkbs Ta‌̱mpi‌̱let:Sidebox 10 2082 16002 2022-08-18T13:41:32Z Kambai Akau 15 Redirected page to [[Ta‌̱mpi‌̱let:Side box]] wikitext text/x-wiki #REDIRECT [[Template:Side box]] {{Redirect category shell| {{R from move}} {{R from modification}} {{R from template shortcut}} }} inrse3sed2zmc0pbfb76zsk9b32v8j4 Ta‌̱mpi‌̱let:Side box/testcases 10 2083 16003 2022-08-18T13:45:06Z Kambai Akau 15 Created page with "{{Template test cases notice}}" wikitext text/x-wiki {{Template test cases notice}} emguj3srzsxktpyfg39czqfwhdvg1sw 16004 16003 2022-08-18T13:45:54Z Kambai Akau 15 wikitext text/x-wiki {{Template test cases notice}} == Test no parameters == * <code><nowiki>{{side box}}</nowiki></code> '''Sandbox''' {{side box/sandbox}} {{clear}} '''Main''' {{side box}} {{clear}} 0k0eaw0vge9um2pxr0kmezk8cpv0h13 16005 16004 2022-08-18T13:46:21Z Kambai Akau 15 wikitext text/x-wiki {{Template test cases notice}} == Test no parameters == * <code><nowiki>{{side box}}</nowiki></code> '''Sandbox''' {{side box/sandbox}} {{clear}} '''Main''' {{side box}} {{clear}} == Text only == * <code><nowiki>{{side box|text = {{lorem}}}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = {{lorem}}}} {{clear}} '''Main''' {{side box|text = {{lorem}}}} {{clear}} 8mzuy6wbg4cjmmcjiw1ic1zr69rpy4y 16006 16005 2022-08-18T13:48:55Z Kambai Akau 15 wikitext text/x-wiki {{Template test cases notice}} == Test no parameters == * <code><nowiki>{{side box}}</nowiki></code> '''Sandbox''' {{side box/sandbox}} {{clear}} '''Main''' {{side box}} {{clear}} == Text only == * <code><nowiki>{{side box|text = {{lorem}}}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = {{lorem}}}} {{clear}} '''Main''' {{side box|text = {{lorem}}}} {{clear}} == Above text == * <code><nowiki>{{side box|text = The body text|above = The above text}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|above = The above text}} {{clear}} '''Main''' {{side box|text = The body text|above = The above text}} {{clear}} == Above and imageright == * <code><nowiki>{{side box|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Image and imageright == * <code><nowiki>{{side box|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Below == * <code><nowiki>{{side box|text = The body text|below = The below text}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text}} {{clear}} == Below and imageright == * <code><nowiki>{{side box|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Image == * <code><nowiki>{{side box|text = The body text|image = [[File:Bad Title Example.png|32px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = [[File:Bad Title Example.png|32px]]}} {{clear}} '''Main''' {{side box|text = The body text|image = [[File:Bad Title Example.png|32px]]}} {{clear}} == Image = none == * <code><nowiki>{{side box|text = The body text|image = none}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = none}} {{clear}} '''Main''' {{side box|text = The body text|image = none}} {{clear}} 9854jfhu1agwova163zhtvu09sa8xzy 16007 16006 2022-08-18T13:51:10Z Kambai Akau 15 wikitext text/x-wiki {{Template test cases notice}} == Test no parameters == * <code><nowiki>{{side box}}</nowiki></code> '''Sandbox''' {{side box/sandbox}} {{clear}} '''Main''' {{side box}} {{clear}} == Text only == * <code><nowiki>{{side box|text = {{lorem}}}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = {{lorem}}}} {{clear}} '''Main''' {{side box|text = {{lorem}}}} {{clear}} == Above text == * <code><nowiki>{{side box|text = The body text|above = The above text}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|above = The above text}} {{clear}} '''Main''' {{side box|text = The body text|above = The above text}} {{clear}} == Above and imageright == * <code><nowiki>{{side box|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|above = The above text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Image and imageright == * <code><nowiki>{{side box|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|image = [[File:Bad Title Example.png|30px]]|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Below == * <code><nowiki>{{side box|text = The body text|below = The below text}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text}} {{clear}} == Below and imageright == * <code><nowiki>{{side box|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text|imageright = [[File:Bad Title Example.png|30px]]}} {{clear}} == Image == * <code><nowiki>{{side box|text = The body text|image = [[File:Bad Title Example.png|32px]]}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = [[File:Bad Title Example.png|32px]]}} {{clear}} '''Main''' {{side box|text = The body text|image = [[File:Bad Title Example.png|32px]]}} {{clear}} == Image = none == * <code><nowiki>{{side box|text = The body text|image = none}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|image = none}} {{clear}} '''Main''' {{side box|text = The body text|image = none}} {{clear}} == Style == * <code><nowiki>{{side box|text = The body text|style = width:100px}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|style = width:100px}} {{clear}} '''Main''' {{side box|text = The body text|style = width:100px}} {{clear}} == Textstyle == * <code><nowiki>{{side box|text = The body text|below = The below text|above = The above text|textstyle = color:red}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text|above = The above text|textstyle = color:red}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text|above = The above text|textstyle = color:red}} {{clear}} == Abovestyle == * <code><nowiki>{{side box|text = The body text|below = The below text|above = The above text|textstyle = color:red|abovestyle = font-weight:bold}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|below = The below text|above = The above text|textstyle = color:red|abovestyle = font-weight:bold}} {{clear}} '''Main''' {{side box|text = The body text|below = The below text|above = The above text|textstyle = color:red|abovestyle = font-weight:bold}} {{clear}} == Position == * <code><nowiki>{{side box|text = The body text|position = left}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|position = left}} {{clear}} '''Main''' {{side box|text = The body text|position = left}} {{clear}} == Position caps == * <code><nowiki>{{side box|text = The body text|position = LEFT}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|position = LEFT}} {{clear}} '''Main''' {{side box|text = The body text|position = LEFT}} {{clear}} == No metadata == * <code><nowiki>{{side box|text = The body text|metadata = no}}</nowiki></code> '''Sandbox''' {{side box/sandbox|text = The body text|metadata = no}} {{clear}} '''Main''' {{side box|text = The body text|metadata = no}} {{clear}} == plainlist = no == * <syntaxhighlight lang=text>{{side box |plainlist=no |text =The body text *item one *item two *item three }}</syntaxhighlight> '''Sandbox''' {{side box/sandbox |plainlist=no |text =The body text *item one *item two *item three }} {{clear}} '''Main''' {{side box |plainlist=no |text =The body text *item one *item two *item three }} {{clear}} d8d5tufb6m0wy94zdhhwldcdn79sqij Module:Side box/sandbox 828 2084 16009 2022-08-18T13:53:47Z Kambai Akau 15 Created page with "-- This module implements {{side box}}. local yesno = require('Module:Yesno') local p = {} local function makeData(args) local data = {} -- Main table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower() == 'left' then table.insert(data.classes, 'side-box-left') else table.insert(data.classes, 'side-box-right') end if args.collapsible then table.insert(..." Scribunto text/plain -- This module implements {{side box}}. local yesno = require('Module:Yesno') local p = {} local function makeData(args) local data = {} -- Main table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower() == 'left' then table.insert(data.classes, 'side-box-left') else table.insert(data.classes, 'side-box-right') end if args.collapsible then table.insert(data.classes, 'mw-collapsible') if args.collapsible == "collapsed" then table.insert(data.classes, 'mw-collapsed') end data.collapsible = true end table.insert(data.classes, args.class) -- Image if args.image and args.image ~= 'none' then data.image = args.image end -- Copy over data that does not need adjusting local argsToCopy = { -- aria qualities 'role', 'labelledby', -- Classes 'textclass', -- Styles 'style', 'textstyle', 'templatestyles', -- Above row 'above', 'abovestyle', -- Body row 'text', 'imageright', -- Below row 'below', } for i, key in ipairs(argsToCopy) do data[key] = args[key] end return data end local function renderSidebox(data) -- Renders the sidebox HTML. -- Table root local root = mw.html.create('div') root:attr('role', data.role) :attr('aria-labelledby', data.labelledby) :addClass('side-box') for i, class in ipairs(data.classes or {}) do root:addClass(class) end if data.style then root:cssText(data.style) end -- The "above" row if data.above then local above = root:newline():tag('div') above:addClass('side-box-abovebelow') :newline() :wikitext(data.above) if data.textstyle then above:cssText(data.textstyle) end if data.abovestyle then above:cssText(data.abovestyle) end end -- The body row local body = root:newline():tag('div') body:addClass('side-box-flex') :addClass(data.collapsible and 'mw-collapsible-content') :newline() if data.image then body:tag('div') :addClass('side-box-image') :wikitext(data.image) end local text = body:newline():tag('div') text:addClass('side-box-text') :addClass(data.textclass or 'plainlist') if data.textstyle then text:cssText(data.textstyle) end text:wikitext(data.text) if data.imageright then body:newline():tag('div') :addClass('side-box-imageright') :wikitext(data.imageright) end -- The below row if data.below then local below = root:newline():tag('div') below :addClass('side-box-abovebelow') :wikitext(data.below) if data.textstyle then below:cssText(data.textstyle) end end root:newline() local frame = mw.getCurrentFrame() local templatestyles = '' if data.templatestyles then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = data.templatestyles } } end return frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Side box/styles.css' } } .. templatestyles .. tostring(root) end function p._main(args) local data = makeData(args) return renderSidebox(data) end function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end return p 1b73hdm2hspyb6vwl1vlt2smbccio0d Ta‌̱mpi‌̱let:Ta̱m a̱meang/testcases 10 2085 16010 2022-08-18T14:04:45Z Kambai Akau 15 Created page with "{{testcase|id=voyage|<nowiki>{{sister project|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}</nowiki>|{{sister project|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}|{{sister project/sandbox|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}}} {{testcase|id=voy|<nowiki>{{sister project|project=voy |text=..." wikitext text/x-wiki {{testcase|id=voyage|<nowiki>{{sister project|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}</nowiki>|{{sister project|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}|{{sister project/sandbox|project=voyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Paris|Paris]]''''' }}}} {{testcase|id=voy|<nowiki>{{sister project|project=voy |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Botswana|Botswana]]''''' }}</nowiki>|{{sister project|project=voy |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Botswana|Botswana]]''''' }}|{{sister project/sandbox|project=voy |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Botswana|Botswana]]''''' }}}} {{testcase|id=wikivoyage|<nowiki>{{sister project|project=wikivoyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Victoria (state)|Victoria]]''''' }}</nowiki>|{{sister project|project=wikivoyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Victoria (state)|Victoria]]''''' }}|{{sister project/sandbox|project=wikivoyage |text=[[Wikivoyage]] has travel information related to: '''''[[voy:Victoria (state)|Victoria]]''''' }}}} {{testcase|id=data|<nowiki>{{sister project|project=data |text=[[Wikidata]] has data related to: '''''[[d:Q517|Napoléon Bonaparte]]''''' }}</nowiki>|{{sister project|project=data |text=[[Wikidata]] has data related to: '''''[[d:Q517|Napoléon Bonaparte]]''''' }}|{{sister project/sandbox|project=data |text=[[Wikidata]] has data related to: '''''[[d:Q517|Napoléon Bonaparte]]''''' }}}} {{testcase|id=wikidata|<nowiki>{{sister project|project=wikidata |text=[[Wikidata]] has data related to: '''''[[d:Q963|Botswana]]''''' }}</nowiki>|{{sister project|project=wikidata |text=[[Wikidata]] has data related to: '''''[[d:Q963|Botswana]]''''' }}|{{sister project/sandbox|project=wikidata |text=[[Wikidata]] has data related to: '''''[[d:Q963|Botswana]]''''' }}}} 458pinseggjvdeb8dbcwj6j3o3uwzhq Ta‌̱mpi‌̱let:Testcase 10 2086 16011 2022-08-18T14:05:51Z Kambai Akau 15 Created page with "{| class="mw-collapsible {{#ifeq:{{{2|}}}|{{{3|}}}|mw-collapsed|}}" style="background-color: transparent;width:100%; border: solid silver 1px" |- ! colspan="2" style="background-color:{{#ifeq:{{{2|}}}|{{{3|}}}|lightgreen|yellow}};" | {{{title|{{{id|{{{1|}}}}}}}}} |- | colspan="2" | <pre<includeonly></includeonly> style="background:none; border:none; padding:0; margin:0; white-space: pre-wrap; word-wrap: break-word;">{{{1}}}</pre> |- | {{{2}}} {{#ifeq:{{{layout|vertical..." wikitext text/x-wiki {| class="mw-collapsible {{#ifeq:{{{2|}}}|{{{3|}}}|mw-collapsed|}}" style="background-color: transparent;width:100%; border: solid silver 1px" |- ! colspan="2" style="background-color:{{#ifeq:{{{2|}}}|{{{3|}}}|lightgreen|yellow}};" | {{{title|{{{id|{{{1|}}}}}}}}} |- | colspan="2" | <pre<includeonly></includeonly> style="background:none; border:none; padding:0; margin:0; white-space: pre-wrap; word-wrap: break-word;">{{{1}}}</pre> |- | {{{2}}} {{#ifeq:{{{layout|vertical}}}|vertical|{{!}}-}} | {{{3}}} |- | colspan="2" | {| class="wikitable mw-collapsible mw-collapsed" style="width:100%; margin:0; padding:0;" ! Expanded code |- | {{#tag:syntaxhighlight|{{{2}}}|lang=html5|inline=1}} {{#ifeq:{{{source-layout|vertical}}}|vertical|{{!}}-}} | {{#tag:syntaxhighlight|{{{3}}}|lang=html5|inline=1}} |} |}<noinclude> {{documentation}} </noinclude> 5dm423a5ablhxg1qy1n0tih2s1h35o4 Ta‌̱mpi‌̱let:Testcase/doc 10 2087 16012 2022-08-18T14:07:23Z Kambai Akau 15 Created page with "{{Documentation subpage}} {{Template sandbox notice}}<!--only displayed when viewed from /sandbox page--> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{for|an easier-to-use version of this template|Template:Test case}} == See also == Templates invoking [[Module:Template test case]]: * [[Template:Test case]] – a generalised test case template * [[Template:Testcase rows]] – for a table of test cases arranged in rows * Template:Testcase t..." wikitext text/x-wiki {{Documentation subpage}} {{Template sandbox notice}}<!--only displayed when viewed from /sandbox page--> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{for|an easier-to-use version of this template|Template:Test case}} == See also == Templates invoking [[Module:Template test case]]: * [[Template:Test case]] – a generalised test case template * [[Template:Testcase rows]] – for a table of test cases arranged in rows * [[Template:Testcase table]] – for a table of test cases arranged in columns * [[Template:Inline test case]] – for test cases with small invocations and small output * [[Template:Collapsible test case]] – for test cases collapsed by default if the results are the same * [[Template:Test case nowiki]] – for test cases from template invocations enclosed in {{tag|nowiki}} tags * [[Template:Nowiki template demo]] – for use in template documentation <includeonly>{{Sandbox other||<!-- ++++ PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --> [[Category:Template namespace templates]] [[Category:Template test cases| ]] }}</includeonly> 0bfsnh54352aae39724c28lbdt0w84z Ta‌̱mpi‌̱let:TemplateDataHeader 10 2088 16014 2022-08-18T14:14:48Z Kambai Akau 15 Created page with "<div class="templatedata-header">{{#if:{{{noheader|}}}|<!-- noheader: -->{{Template parameter usage|based=y}}|<!-- +header: -->This is the {{#if:{{{nolink|}}}|<!-- +header, nolink TD -->TemplateData|<!-- +header, +link [[TD]]; DEFAULT: -->[[Wikipedia:TemplateData|TemplateData]]}}<!-- e.o. #if:nolink; DEFAULT: --> for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools. {{Template parame..." wikitext text/x-wiki <div class="templatedata-header">{{#if:{{{noheader|}}}|<!-- noheader: -->{{Template parameter usage|based=y}}|<!-- +header: -->This is the {{#if:{{{nolink|}}}|<!-- +header, nolink TD -->TemplateData|<!-- +header, +link [[TD]]; DEFAULT: -->[[Wikipedia:TemplateData|TemplateData]]}}<!-- e.o. #if:nolink; DEFAULT: --> for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools. {{Template parameter usage|based=y}}<!-- e.o. #if:noheader -->}} '''TemplateData for {{{1|{{BASEPAGENAME}}}}}''' </div><includeonly><!-- check parameters -->{{#invoke:Check for unknown parameters|check |unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}} |template=Template:TemplateData header |1 |nolink |noheader |preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div> }}<!-- -->{{template other|{{sandbox other|| [[Category:Templates using TemplateData]] }}}}</includeonly><!-- --><noinclude>{{Documentation}}</noinclude> pxhfjcmyklg4yst97in9mz897nxe198 Ta‌̱mpi‌̱let:TemplateDataHeader/doc 10 2089 16015 2022-08-18T14:17:24Z Kambai Akau 15 Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Check for unknown parameters}} The {{tlx|TemplateData header}} template inserts a brief header for the template data section, and adds the page to [[:Category:Templates using TemplateData]]. == Usage == <pre style="overflow:auto;"> ==TemplateData== {{TemplateData header}} <templatedata>{ ... }</templatedata> Note: Section headers of ==Pa..." wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Check for unknown parameters}} The {{tlx|TemplateData header}} template inserts a brief header for the template data section, and adds the page to [[:Category:Templates using TemplateData]]. == Usage == <pre style="overflow:auto;"> ==TemplateData== {{TemplateData header}} <templatedata>{ ... }</templatedata> Note: Section headers of ==Parameters== or ==Usage== may also be used. </pre> Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[Help:Magic_words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>]]. Do ''not'' add namespace <code>Template:</code> :{| |{{TemplateData header|Template name}} |} Use <code><nowiki>{{TemplateData header|nolink=1}}</nowiki></code> to omit the [[Help:Link#Wikilinks|wikilink]] from the word "TemplateData" in the header text, for instances where it is already linked outside this template. :{| |{{TemplateData header|nolink=1}} |} Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. :{| |{{TemplateData header|noheader=1}} |} ==Example== :Using a collapse box for {{elc|Template:User}}: {{nowiki template demo|code=<nowiki> {{collapse top|title=TemplateData}} {{TemplateData header|User}} <templatedata> { "description": "This template is used to create a link to a user's user page (unless using {{Useranon}}), talk page, and contributions, and generates a special notification (aka 'ping').", "params": { "1": { "label": "User name", "type": "string", "required": true, "description": "The user name that you want to create links to and notify.", "aliases":["user"] }, "project": { "label": "Sister project", "type": "string", "description": "Used to link to a sister project instead of the English Wikipedia. Use the standard interwiki prefix." }, "lang": { "label": "Other language project", "type": "string", "description": "Used to link to another language project. If used with the \"sister project\" parameter, links to another language of a sister project. Otherwise links to another language Wikipedia. Use the standard language code." }, "separator": { "label": "Separator", "description": "Used to change the separator between the links. If unused, defaults to a dot." } } } </templatedata> {{collapse bottom}}</nowiki>}} ==Parameters== {{TemplateData header}} <templatedata>{ "description": "Inserts a brief header for the template data section. Adds the page to [[Category:Templates using TemplateData]]", "params": { "1": { "label": "Template name", "description": "Used to display a name for the template other than the default, which is {{BASEPAGENAME}}.", "type": "string", "required": false }, "nolink": { "label": "No link", "description": "Assigning any value to this parameter will omit cause the template to omit the wikilink from the word \"TemplateData\" in the header text, for instances where it is already linked outside this template.", "type": "string", "required": false }, "noheader": { "label": "No header", "description": "Assigning any value to this parameter will cause the template to omit the first sentence of the header text.", "type": "string", "required": false } } }</templatedata> ==Tracking category== * {{clc|Category:Pages using TemplateData header with unknown parameters}} ==See also== * {{clc|Category:Templates using TemplateData}} * {{tl|Crude TemplateData}} * {{tl|Template parameter usage}} <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> {{DEFAULTSORT:Templatedata Header}} [[Category:TemplateData|Header]] [[Category:Documentation header templates]] }}</includeonly> m9w5v940f41020tkhqs2pbl3wx7n9np Ta‌̱mpi‌̱let:Commons 10 2090 16017 2022-08-18T14:20:04Z Kambai Akau 15 Created page with "{{Sister project | position = {{{position|}}} | project = commons | text = Wikimedia Commons has {{{alt-term|media related to}}} <!-- -->{{#invoke:Commons link|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|qid={{{qid|}}}|tracking=1|bold=1|italic=1}}.}}<noinclude> {{documentation}} <!-- Add categories to the /doc sub-page and interwikis to Wikidata. --> </noinclude>" wikitext text/x-wiki {{Sister project | position = {{{position|}}} | project = commons | text = Wikimedia Commons has {{{alt-term|media related to}}} <!-- -->{{#invoke:Commons link|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|qid={{{qid|}}}|tracking=1|bold=1|italic=1}}.}}<noinclude> {{documentation}} <!-- Add categories to the /doc sub-page and interwikis to Wikidata. --> </noinclude> 12fro2ebxixcwyrrnbdao4cks6j5oyq 16020 16017 2022-08-18T14:25:08Z Kambai Akau 15 wikitext text/x-wiki {{Sister project | position = {{{position|}}} | project = commons | text = Wikimedia Commons byia̱ {{{alt-term|nyinyiit shei nkhang a̱meang ma̱ng}}} <!-- -->{{#invoke:Commons link|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|qid={{{qid|}}}|tracking=1|bold=1|italic=1}}.}}<noinclude> {{documentation}} <!-- Add categories to the /doc sub-page and interwikis to Wikidata. --> </noinclude> n3mlvv2lzxgu6lf53tgd2hzhy0yquab Ta‌̱mpi‌̱let:Commons/doc 10 2091 16018 2022-08-18T14:22:36Z Kambai Akau 15 Created page with "{{Documentation subpage}} {{tsh|common}} {{High-use}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> {{For|other uses in Wikipedia|Wikipedia:COMMON (disambiguation)}} {{Distinguish|Template:Copy to Wikimedia Commons}} {{Lua|Module:Commons link}} This template is part of Wikipedia's [[Wikipedia:Wikimedia sister projects|sister projects]]. This template links an article to a page on [..." wikitext text/x-wiki {{Documentation subpage}} {{tsh|common}} {{High-use}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> {{For|other uses in Wikipedia|Wikipedia:COMMON (disambiguation)}} {{Distinguish|Template:Copy to Wikimedia Commons}} {{Lua|Module:Commons link}} This template is part of Wikipedia's [[Wikipedia:Wikimedia sister projects|sister projects]]. This template links an article to a page on [[commons:|Wikimedia Commons]], containing a gallery of related media. Note that it does not link to a Commons category, which will give a larger selection of media; for that use [[Template:Commons category]]. ==Usage== ::{| |- |{{Tlx|Commons}}||—puts link-box with current page's name. |- |{{Tlx|Commons|''pagename''}}||—puts link-box connecting title ''pagename''. |- |{{Tlx|Commons|''pagename''|''showname''}}||—puts link-box showing the title ''showname''. |- |{{Tlx|Commons|''pagename''|3=position=left}}||—floats link-box to the left side. |} To place this template on the page, type '''<nowiki>{{</nowiki>Commons|''pagename''}}''', where ''pagename'' is the name of a page on Wikimedia Commons (defaults to <small><nowiki>"{{PAGENAME}}"</nowiki></small>, the end-name of a page where used). * The optional 2nd parameter gives the displayed link text. * The {{Para|position}} parameter accepts one keyword, <code>left</code>, to float the box to the left instead of to the right. * To link to a ''Category'', use the related template {{Tlx|Commons category|''catname''}}, where ''catname'' is the name of the category. ==Location== {{Commons templates location}} ==Defaults== The ''pagename'' defaults to wiki-variable <small><nowiki>"{{PAGENAME}}"</nowiki></small>, which is the end-name of the page where used. For a Template:Txxx, the <small><nowiki>{{PAGENAME}}</nowiki></small> would be the end-name "Txxx". For a Category:Catxxx, that page would have <small><nowiki>{{PAGENAME}}</nowiki></small> as the end-name "Catxxx". The default positioning of the link-box is to the right-side. ==Examples== {| style="border:1px solid #808080; padding:1px;" |{{tlx|Commons}} |} produces {{Commons}} {{clear}} {| style="border:1px solid #808080; padding:1px;" |{{tlx|Commons|Reconquista}} |} produces {{Commons|Reconquista}} {{clear}} {| style="border:1px solid #808080; padding:1px;" |{{tlx|Commons|Category:Reconquista}} |} produces {{Commons|Category:Reconquista}} {{clear}} {| style="border:1px solid #808080; padding:1px;" |{{tlx|Commons|Reconquista|retaking of the Iberian Peninsula}} |} produces {{Commons|Reconquista|retaking of the Iberian Peninsula}} {{clear}} {| style="border:1px solid #808080; padding:1px;" |{{tlx|Commons|Reconquista|position{{=}}left}} |} produces {{Commons|Reconquista|position=left}} {{clear}} ==Template data== {{TemplateData header}} <templatedata>{ "description": "Creates a small box with a link to a related page on Wikimedia Commons.", "params": { "1": { "label": "Pagename", "description": "The page name on Commons. The article's page name is used as a default.", "type": "string", "required": false }, "2": { "label": "Showname", "description": "Optional displayed link text.", "type": "string", "required": false }, "position": { "label": "Position", "description": "Position to display the box: 'left' floats the box to the left rather than the default which is on the right.", "type": "string", "required": false } }}</templatedata> == Tracking categories == === Normal categories === * {{clc|Commons link from Wikidata}} * {{clc|Commons link is on Wikidata}} === Maintenance categories === * {{clc|Commons link is defined as the pagename}} * {{clc|Commons link is locally defined}} * {{clc|Commons link is the pagename}} * {{clc|Inconsistent wikidata for Commons gallery}} ==See also== {{Commons templates see also}} <includeonly>{{Sandbox other|| <!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --> [[Category:Interwiki link templates]] [[Category:Wikimedia Commons templates]] }}</includeonly> mh0yapp8wscflcfzrty8fo0mqztp6sk Ta‌̱mpi‌̱let:Common 10 2092 16019 2022-08-18T14:23:36Z Kambai Akau 15 Redirected page to [[Ta‌̱mpi‌̱let:Commons]] wikitext text/x-wiki #REDIRECT [[Template:Commons]] {{ R cat shell| {{R from alternative name}} {{R from template short}} }} 2zrd83qek7h08ubw100up8gps84jex1 Ta‌̱mpi‌̱let:Commons/sandbox 10 2093 16021 2022-08-18T14:26:55Z Kambai Akau 15 Created page with "{{Sister project | position = {{{position|}}} | project = commons | text = Wikimedia Commons byia̱ {{{alt-term|nyinyiit shei nkhang a̱meang ma̱ng}}} <!-- -->{{#invoke:Commons link/sandbox|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|qid={{{qid|}}}|tracking=1|bold=1|italic=1}}.}}<noinclude> {{documentation}} <!-- Add categories to the /doc sub-page and interwikis to Wikidata. --> </noinclude>" wikitext text/x-wiki {{Sister project | position = {{{position|}}} | project = commons | text = Wikimedia Commons byia̱ {{{alt-term|nyinyiit shei nkhang a̱meang ma̱ng}}} <!-- -->{{#invoke:Commons link/sandbox|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|qid={{{qid|}}}|tracking=1|bold=1|italic=1}}.}}<noinclude> {{documentation}} <!-- Add categories to the /doc sub-page and interwikis to Wikidata. --> </noinclude> 0kh2jtddjy45b1jigmgcyh58grwnc4l Module:Commons link/sandbox 828 2094 16022 2022-08-18T14:29:44Z Kambai Akau 15 Created page with "require('Module:No globals') -- Module to find commons galleries and categories based on wikidata entries local getArgs = require('Module:Arguments').getArgs local yesNo = require('Module:Yesno') local generateWarning = require('Module:If preview')._warning local p = {} -- Check if string is a valid QID -- Argument: QID to check -- Returns: valid (bool) local function _validQID(qid) return qid and mw.ustring.find(qid,"^[Qq]%d+$") end -- Check if string is a valid wik..." Scribunto text/plain require('Module:No globals') -- Module to find commons galleries and categories based on wikidata entries local getArgs = require('Module:Arguments').getArgs local yesNo = require('Module:Yesno') local generateWarning = require('Module:If preview')._warning local p = {} -- Check if string is a valid QID -- Argument: QID to check -- Returns: valid (bool) local function _validQID(qid) return qid and mw.ustring.find(qid,"^[Qq]%d+$") end -- Check if string is a valid wikidata property string -- Argument: property string to check -- Returns: valid (bool) local function _validProp(prop) return prop and mw.ustring.find(prop,"^[Pp]%d+$") end local function _lcfirst(s) return mw.ustring.lower(mw.ustring.sub(s,1,1))..mw.ustring.sub(s,2) end -- Format displayed linktext -- Arguments: -- s = string to display -- formatting = formatting table: -- formatting.linktext = if defined, override s -- formatting.lcfirst = lower case the first letter in display -- formatting.bold = whether to bold the display -- formatting.italic = whether to italicize the display -- formatting.nowrap = set nowrapping -- Returns: -- formatted string local function _formatResult(s, formatting) local resultVal = formatting.linktext or s if formatting.lcfirst then resultVal = _lcfirst(resultVal) end local style = "" if formatting.italic then style = "font-style:italic; " end if formatting.bold then style = style.."font-weight:bold; " end if formatting.nowrap then style = style.."white-space:nowrap; " end if style ~= "" then resultVal = '<span style="'..mw.text.trim(style)..'">'..resultVal..'</span>' end return resultVal end -- Get title, namespace, and QID for current page -- Arguments: -- qid = testing only: get title of alternative page with QID=qid -- nsQid = whether to return the ns of the qid page or current -- Returns: -- title, namespace (string), qid of current page (or test page) local function _getTitleQID(qid,nsQid) local titleObject = mw.title.getCurrentTitle() -- look up qid for current page (if not testing) local nsText = mw.ustring.gsub(titleObject.nsText,"_"," ") if not _validQID(qid) then qid = mw.wikibase.getEntityIdForCurrentPage() return titleObject.text, nsText, qid end -- testing-only path: given a qid, determine title -- always use namespace from current page (to suppress tracking cat) qid = qid:upper() local title = mw.wikibase.getSitelink(qid) or "" -- strip any namespace from sitelink local firstColon = mw.ustring.find(title,':',1,true) local qidNsText = "" if firstColon then qidNsText = mw.ustring.sub(title,1,firstColon-1) title = mw.ustring.sub(title,firstColon+1) end if nsQid then return title, qidNsText, qid end return title, nsText, qid end -- Lookup Commons gallery in Wikidata -- Arguments: -- qid = QID of current article -- fetch = whether to lookup Commons sitelink (bool) -- commonsSitelink = default value for Commons sitelink -- Returns: -- categoryLink = name of Commons category, nil if nothing is found -- consistent = multiple wikidata fields are examined: are they consistent? -- commonsSitelink = commons sitelink for current article local function _lookupGallery(qid,fetch,commonsSitelink) if not _validQID(qid) then return nil, true, nil end qid = qid:upper() local galleryLink = nil local consistent = true -- look up commons sitelink for article, use if not category if fetch then commonsSitelink = mw.wikibase.getSitelink(qid,"commonswiki") or commonsSitelink end if commonsSitelink and mw.ustring.sub(commonsSitelink,1,9) ~= "Category:" then galleryLink = commonsSitelink end -- P935 is the "commons gallery" property for this article local P935 = mw.wikibase.getBestStatements(qid, "P935")[1] if P935 and P935.mainsnak.datavalue then local gallery = P935.mainsnak.datavalue.value if galleryLink and galleryLink ~= gallery then consistent = false else galleryLink = gallery end end return galleryLink, consistent, commonsSitelink end -- Find fallback category by looking up Commons sitelink of different page -- Arguments: -- qid = QID for current article -- property = property that refers to other article whose sitelink to return -- Returns: either category-stripped name of article, or nil local function _lookupFallback(qid,property) if not _validQID(qid) or not _validProp(property) then return nil end qid = qid:upper() property = property:upper() -- If property exists on current article, get value (other article qid) local value = mw.wikibase.getBestStatements(qid, property)[1] if value and value.mainsnak.datavalue and value.mainsnak.datavalue.value.id then -- Look up Commons sitelink of other article local sitelink = mw.wikibase.getSitelink(value.mainsnak.datavalue.value.id,"commonswiki") -- Check to see if it starts with "Category:". If so, strip it and return if sitelink and mw.ustring.sub(sitelink,1,9) == "Category:" then return mw.ustring.sub(sitelink,10) end end return nil end -- Find Commons category by looking in wikidata -- Arguments: -- qid = QID of current article -- fetch = whether to lookup Commons sitelink (bool) -- commonsSitelink = default value for Commons sitelink -- Returns: -- categoryLink = name of Commons category, nil if nothing is found -- consistent = multiple wikidata fields are examined: are they consistent? -- commonsSitelink = commons sitelink for current article local function _lookupCategory(qid, fetch, commonsSitelink) if not _validQID(qid) then return nil, true, nil end qid = qid:upper() local categoryLink = nil local consistent = true -- look up commons sitelink for article, use if starts with "Category:" if fetch then commonsSitelink = mw.wikibase.getSitelink(qid,"commonswiki") or commonsSitelink end if commonsSitelink and mw.ustring.sub(commonsSitelink,1,9) == "Category:" then categoryLink = mw.ustring.sub(commonsSitelink,10) end -- P910 is the "topic's main category". Look for commons sitelink there local fallback = _lookupFallback(qid,"P910") if fallback then if categoryLink and categoryLink ~= fallback then consistent = false qid = nil else categoryLink = fallback end end -- P1754 is the "list's main category". Look for commons sitelink there fallback = _lookupFallback(qid,"P1754") if fallback then if categoryLink and categoryLink ~= fallback then consistent = false qid = nil else categoryLink = fallback end end -- P373 is the "commons category" property for this article. This is -- a low-quality field, so should only be used as a last resort. if categoryLink == nil and _validQID(qid) then local P373 = mw.wikibase.getBestStatements(qid, "P373")[1] if P373 and P373.mainsnak.datavalue then categoryLink = P373.mainsnak.datavalue.value consistent = true -- P373 is never used if anything else is available end end return categoryLink, consistent, commonsSitelink end -- Does the article have a Commons gallery, and is it consistent? -- Arguments: -- qid = QID to lookup in wikidata (for testing only) -- Returns: -- filename at Commons, bool: is wikidata consistent for this article? function p._hasGalleryConsistent(qid) local wp_title, wp_ns wp_title, wp_ns, qid = _getTitleQID(qid) return _lookupGallery(qid,true) end -- Does the article have a corresponding Commons gallery? -- Arguments: -- qid = QID to lookup in wikidata (for testing only) -- Returns: -- filename at Commons if so, false if not function p._hasGallery(qid) local galleryLink, consistent = p._hasGalleryConsistent(qid) return consistent and galleryLink end -- Does the article have a Commons category? Is wikidata consistent for that? -- Arguments: -- qid = QID to lookup in wikidata (for testing only) -- prefix = whether to add "Category:" to return string (default true) -- Returns: -- filename at Commons, bool: consistent function p._hasCategoryConsistent(qid,prefix) if prefix == nil then prefix = true end local wp_title, wp_ns wp_title, wp_ns, qid = _getTitleQID(qid) local categoryLink, consistent = _lookupCategory(qid,true) if categoryLink and prefix then categoryLink = "Category:"..categoryLink end return categoryLink, consistent end -- Does the article have a corresponding Commons category? -- Arguments: -- qid = QID to lookup in wikidata (for testing only) -- prefix = whether to add "Category:" to return string (default true) -- Returns: -- filename at Commons if so, blank if not function p._hasCategory(qid,prefix) local categoryLink, consistent = p._hasCategoryConsistent(qid,prefix) return consistent and categoryLink end -- Create Commons link corresponding to current article -- Arguments: -- namespace = namespace in Commons ("" for galleries) -- default = use as Commons link, don't access wikidata -- search = string to search for -- fallback = string to search for if wikidata fails -- formatting = formatting parameters -- qid = QID to lookup in wikidata (for testing only) -- Returns: -- formatted wikilink to Commons in specified namespace function p._getCommons(namespace,default,search,fallback,formatting,qid) local nsColon if not namespace or namespace == "" then nsColon = "" else nsColon = namespace..":" end if default then return "[[Commons:"..nsColon..default.."|".._formatResult(default,formatting).."]]" end if search then return "[[Commons:Special:Search/"..nsColon..search.."|".._formatResult(search,formatting).."]]" end local wp_title, wp_ns wp_title, wp_ns, qid = _getTitleQID(qid) local commonsLink = nil local consistent = true if nsColon == "" then commonsLink, consistent = _lookupGallery(qid,true) elseif namespace:lower() == "category" then commonsLink, consistent = _lookupCategory(qid,true) end -- use wikidata if consistent if commonsLink and consistent then return "[[Commons:"..nsColon..commonsLink.."|".._formatResult(commonsLink,formatting).."]]" end -- if not consistent, fall back to search and add to tracking cat -- construct default result (which searches for title) local searchResult = "[[Commons:Special:Search/"..nsColon..(fallback or wp_title) .."|".._formatResult(fallback or wp_title,formatting).."]]" if not consistent and wp_ns == "" then local friendlyNS if nsColon == "" then friendlyNS = "gallery" else friendlyNS = namespace:lower() end searchResult = searchResult.."[[Category:Inconsistent wikidata for Commons "..friendlyNS.."]]" end return searchResult end -- Returns "best" Commons link: first look for gallery, then try category -- Arguments: -- default = use as Commons link, don't access wikidata -- search = string to search for -- fallback = string to search for if wikidata lookup fails -- formatting = formatting parameters -- qid = QID to lookup in wikidata (for testing only) -- Returns: -- formatted wikilink to Commons "best" landing page function p._getGalleryOrCategory(default, search, fallback, formatting, qid) if default then return "[[Commons:"..default.."|".._formatResult(default,formatting).."]]" end if search then return "[[Commons:Special:Search/"..search.."|".._formatResult(search,formatting).."]]" end local wp_title, wp_ns wp_title, wp_ns, qid = _getTitleQID(qid) local trackingCats = "" local galleryLink, consistent, commonsSitelink = _lookupGallery(qid,true) -- use wikidata if either sitelink or P935 exist, and they both agree if galleryLink and consistent then return "[[Commons:"..galleryLink.."|".._formatResult(galleryLink,formatting).."]]" end if not consistent and wp_ns == "" then trackingCats = "[[Category:Inconsistent wikidata for Commons gallery]]" end -- if gallery is not good, fall back looking for category local categoryLink categoryLink, consistent = _lookupCategory(qid,false,commonsSitelink) if categoryLink and consistent then return "[[Commons:Category:"..categoryLink.."|".._formatResult(categoryLink,formatting).."]]"..trackingCats end if not consistent and wp_ns == "" then trackingCats = trackingCats.."[[Category:Inconsistent wikidata for Commons category]]" end -- return search result looking for title as last attempt return "[[Commons:Special:Search/" .. (fallback or wp_title) .. "|" .. _formatResult(fallback or wp_title,formatting) .. "]]" .. trackingCats end -- Return link(s) Commons gallery, or category, or both from wikidata -- Arguments: -- defaultGallery = default gallery link to use, instead of wikidata -- defaultCategory = default category link to use, instead of wikidata -- categoryText = if both gallery and category, text to use in category link ("category" by default) -- oneSearch = only emit one search result -- formatting = formatting parameters -- qid = qid of page to lookup in wikidata (testing only) function p._getGalleryAndCategory(defaultGallery, defaultCategory, categoryText, oneSearch, formatting, qid ) local wp_title, wp_ns wp_title, wp_ns, qid = _getTitleQID(qid) categoryText = categoryText or "category" local trackingCats = "" local galleryLink, galleryConsistent local commonsSitelink = nil if defaultGallery then galleryLink = defaultGallery galleryConsistent = true else galleryLink, galleryConsistent, commonsSitelink = _lookupGallery(qid,true) end local galleryGood = galleryLink and galleryConsistent if not galleryConsistent and wp_ns == "" then trackingCats = "[[Category:Inconsistent wikidata for Commons gallery]]" end local categoryLink, categoryConsistent if defaultCategory then categoryLink = defaultCategory categoryConsistent = true else categoryLink, categoryConsistent = _lookupCategory(qid,defaultGallery,commonsSitelink) end local categoryGood = categoryLink and categoryConsistent if not categoryConsistent and wp_ns == "" then trackingCats = trackingCats.."[[Category:Inconsistent wikidata for Commons category]]" end local firstLink -- construct default result (which searches for title) local searchResult = "[[Commons:Special:Search/"..wp_title.."|".._formatResult(wp_title,formatting).."]]" if not oneSearch then searchResult = searchResult.." ([[Commons:Special:Search/Category:"..wp_title.."|"..categoryText.."]])" end local linkText = nil if galleryGood then firstLink = galleryLink linkText = galleryLink elseif categoryGood then firstLink = "Category:"..categoryLink linkText = categoryLink else return searchResult..trackingCats end local resultVal = "[[Commons:"..firstLink.."|".._formatResult(linkText,formatting).."]]" if galleryGood and categoryGood then resultVal = resultVal.." ([[Commons:Category:"..categoryLink.."|"..categoryText.."]])" end return resultVal..trackingCats end -- Compare two titles with their namespaces stripped local function titleMatch(s1,s2) s1 = s1 or "" s2 = s2 or "" s1 = mw.ustring.gsub(s1,"^[^:]+:","") s2 = mw.ustring.gsub(s2,"^[^:]+:","") return s1 == s2 end local galleryTrackingCats = { commons_link_on_wikidata = '[[Category:Commons link is on Wikidata]]', commons_link_defined_as_pagename = '[[Category:Commons link is defined as the pagename]]', commons_link_locally_defined = '[[Category:Commons link is locally defined]]', commons_link_from_wikidata = '[[Category:Commons link from Wikidata]]', commons_link_is_pagename = '[[Category:Commons link is the pagename]]', inconsistent = '[[Category:Inconsistent wikidata for Commons gallery]]' } local categoryTrackingCats = { commons_link_on_wikidata = '[[Category:Commons category link is on Wikidata]]', commons_link_defined_as_pagename = '[[Category:Commons category link is defined as the pagename]]', commons_link_locally_defined = '[[Category:Commons category link is locally defined]]', commons_link_from_wikidata = '[[Category:Commons category link from Wikidata]]', commons_link_is_pagename = '[[Category:Commons category link is the pagename]]', inconsistent = '[[Category:Inconsistent wikidata for Commons category]]' } local function selectTrackingCat(trackingCats,wikidata,consistent,default,title) if not consistent then return trackingCats.inconsistent end if default then -- construct warning message if default == wikidata then return trackingCats.commons_link_on_wikidata end local warning = "" if wikidata then warning = generateWarning({ "Commons link does not match Wikidata – [[Template:Commons_category#Resolving_discrepancies|please check]]" }) end if titleMatch(default,title) then return trackingCats.commons_link_defined_as_pagename .. warning end return trackingCats.commons_link_locally_defined .. warning end if wikidata then return trackingCats.commons_link_from_wikidata end return trackingCats.commons_link_is_pagename end -- Figure out tracking categories and editor warnings -- Arguments: -- default = Commons link argument passed to template -- fetchGallery = whether to fetch a gallery from Wikidata -- fetchCategory = whether to fetch a category from Wikidata -- qid = force a qid for testing -- Returns: -- tracking category and possible user warning -- -- Note: the logic for the tracking is quite different than the logic -- for generating Commons links (above). Thus, it is separated into another -- function for code clarity and maintainability. This should not seriously -- affect performance: server time is dominated by fetching wikidata entities, -- and those entities should be cached and shared between the Commons generating -- code and this tracking code. function p._tracking(default, fetchGallery, fetchCategory, qid) local title, wp_ns, wp_qid = _getTitleQID(qid,true) if wp_ns ~= "" then title = wp_ns..":"..title end -- only track if test or namespace=article or namespace=category if not (qid or wp_ns == "" or wp_ns == "Category") then return "" end -- determine title and namespace of wikidata and wp article local wikidata = nil local consistent = nil -- Tracking code works for all 4 cases of states of fetchGallery/Category -- fetchGallery takes precedence if fetchGallery then wikidata, consistent = p._hasGalleryConsistent(qid) if default or not fetchCategory or (consistent and wikidata) then return selectTrackingCat(galleryTrackingCats,wikidata,consistent, default,title) end end if fetchCategory then local cat_wikidata, cat_consistent = p._hasCategoryConsistent(qid,true) if not fetchGallery or (cat_consistent and cat_wikidata) then return selectTrackingCat(categoryTrackingCats,cat_wikidata, cat_consistent,default,title) end return selectTrackingCat(galleryTrackingCats,wikidata,consistent, default,title) end return "" -- nothing fetched, nothing tracked end local function _createFormatting(args) local formatting = {} formatting.linktext = args.linktext formatting.lcfirst = yesNo(args.lcfirst) formatting.bold = yesNo(args.bold) formatting.italic = yesNo(args.italic) formatting.nowrap = yesNo(args.nowrap) return formatting end -- Testing-only entry point for _getTitleQID function p.getTitleQID(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) local text, ns, qid = _getTitleQID(args[1],args[2]) return text..","..ns..","..(qid or "nil") end -- Testing-only entry point for _lookupFallback function p.lookupFallback(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) local fallback = _lookupFallback(args[1],args[2]) return fallback or "nil" end -- Find the Commons gallery page associated with article function p.getGallery(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._getCommons("",args[1],args.search,args.fallback,_createFormatting(args),args.qid) end -- Find the Commons category page associated with article function p.getCategory(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) local retval = p._getCommons("Category", args[1], args.search, args.fallback, _createFormatting(args), args.qid ) if args.tracking then local default = nil if args[1] then default = "Category:"..args[1] end retval = retval..p._tracking(default, false, true, args.qid) end return retval end function p.getGalleryOrCategory(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) local retval = p._getGalleryOrCategory( args[1], args.search, args.fallback, _createFormatting(args), args.qid ) if args.tracking then retval = retval..p._tracking(args[1],true,true,args.qid) end return retval end function p.hasGallery(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._hasGallery(args.qid) or "" end function p.hasCategory(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._hasCategory(args.qid) or "" end function p.hasGalleryOrCategory(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._hasGallery(args.qid) or p._hasCategory(args.qid) or "" end function p.getGalleryAndCategory(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._getGalleryAndCategory(args[1], args[2], args.categoryText, args.oneSearch, _createFormatting(args), args.qid) end function p.tracking(frame) local args = getArgs(frame,{frameOnly=true,parentOnly=false,parentFirst=false}) return p._tracking(args[1], args.fetchGallery, args.fetchCategory, args.qid) end return p tiwwt5d4q8wb5gx6nh70z4fiqb3bkp6 Module:Commons link/sandbox/testcases 828 2095 16023 2022-08-18T14:32:09Z Kambai Akau 15 Created page with "local p = require('Module:UnitTests') function p:testGallery() -- known link self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | Mount Whitney}}', '[[Commons:Mount Whitney|Mount Whitney]]') -- known link with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | Mount Whitney |linktext=Big Mountain}}', '[[Commons:Mount Whitney|Big Mountain]]') -- forced search self:preprocess_equals('{{#invoke:Commons link/sandbox| getG..." Scribunto text/plain local p = require('Module:UnitTests') function p:testGallery() -- known link self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | Mount Whitney}}', '[[Commons:Mount Whitney|Mount Whitney]]') -- known link with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | Mount Whitney |linktext=Big Mountain}}', '[[Commons:Mount Whitney|Big Mountain]]') -- forced search self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | search=Mount Whitney}}', '[[Commons:Special:Search/Mount Whitney|Mount Whitney]]') -- forced search + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | search=Mount Whitney |linktext=Big Mountain}}', '[[Commons:Special:Search/Mount Whitney|Big Mountain]]') -- P935 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q2217963}}', '[[Commons:Samuel Baker House|Samuel Baker House]]') -- P935 matches sitelink + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q2217963 |linktext=Big House}}', '[[Commons:Samuel Baker House|Big House]]') -- sitelink only, lcfirst self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | lcfirst=1}}', '[[Commons:Bellows Falls, Vermont|bellows Falls, Vermont]]') -- sitelink only, bold self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | bold=1}}', '[[Commons:Bellows Falls, Vermont|<span style="font-weight:bold;">Bellows Falls, Vermont</span>]]') -- sitelink only, italic self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | italic=1}}', '[[Commons:Bellows Falls, Vermont|<span style="font-style:italic;">Bellows Falls, Vermont</span>]]') -- sitelink only, nowrap self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q816044 | nowrap=1}}', '[[Commons:Bellows Falls, Vermont|<span style="white-space:nowrap;">Bellows Falls, Vermont</span>]]') -- sitelink + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q816044|linktext=Little Town}}', '[[Commons:Bellows Falls, Vermont|Little Town]]') -- sitelink and P935 inconsistent self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q139289}}', '[[Commons:Special:Search/Boeing 737 MAX|Boeing 737 MAX]]') -- sitelink and P935 inconsistent + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q139289|linktext=Not a plane}}', '[[Commons:Special:Search/Boeing 737 MAX|Not a plane]]') -- no sitelink or P935 self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q29017978}}', '[[Commons:Special:Search/Bell FCX-001|Bell FCX-001]]') -- no sitelink or P935, but linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGallery | qid=Q29017978|linktext=Medium Helicopter}}', '[[Commons:Special:Search/Bell FCX-001|Medium Helicopter]]') end function p:testCategory() -- known link self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | Mount Whitney}}', '[[Commons:Category:Mount Whitney|Mount Whitney]]') -- known link with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | Mount Whitney |linktext=Big Mountain}}', '[[Commons:Category:Mount Whitney|Big Mountain]]') -- forced search self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | search=Mount Whitney}}', '[[Commons:Special:Search/Category:Mount Whitney|Mount Whitney]]') -- forced search + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | search=Mount Whitney |linktext=Big Mountain}}', '[[Commons:Special:Search/Category:Mount Whitney|Big Mountain]]') -- P373 matches sitelink + lcfirst self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|lcfirst=1}}', '[[Commons:Category:Agama lionotus|agama lionotus]]') -- bold self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|bold=1}}', '[[Commons:Category:Agama lionotus|<span style="font-weight:bold;">Agama lionotus</span>]]') -- italic self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|italic=1}}', '[[Commons:Category:Agama lionotus|<span style="font-style:italic;">Agama lionotus</span>]]') -- nowrap self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|nowrap=1}}', '[[Commons:Category:Agama lionotus|<span style="white-space:nowrap;">Agama lionotus</span>]]') -- P373 matches sitelink + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2601154|linktext=Small Lizard|lcfirst=1}}', '[[Commons:Category:Agama lionotus|small Lizard]]') -- P910 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q853037}}', '[[Commons:Category:Bánhida|Bánhida]]') -- P910 matches P373 + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q853037|linktext=Old Neighborhood}}', '[[Commons:Category:Bánhida|Old Neighborhood]]') -- P1754 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2551907}}', '[[Commons:Category:Lakes of Turkey|Lakes of Turkey]]') -- P1754 matches P373 + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2551907|linktext=Turkey Lakes}}', '[[Commons:Category:Lakes of Turkey|Turkey Lakes]]') -- inconsistency between P373 and P1754 self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q1002229}}', '[[Commons:Category:Municipality of Vipava|Municipality of Vipava]]') -- test fallback self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q21032720 |fallback=Boing}}', '[[Commons:Special:Search/Category:Boing|Boing]]') -- inconsistency between P373 and P1754 + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q1002229|linktext=Little Town}}', '[[Commons:Category:Municipality of Vipava|Little Town]]') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2963317}}', '[[Commons:Special:Search/Category:Chicago Lawn, Chicago|Chicago Lawn, Chicago]]') -- missing data + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getCategory | qid=Q2963317|linktext=Big Neighborhood}}', '[[Commons:Special:Search/Category:Chicago Lawn, Chicago|Big Neighborhood]]') end function p:testGalleryOrCategory() -- known link self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | Mount Whitney}}', '[[Commons:Mount Whitney|Mount Whitney]]') -- known link with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | Mount Whitney |linktext=Big Mountain}}', '[[Commons:Mount Whitney|Big Mountain]]') -- forced search self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | search=Mount Whitney}}', '[[Commons:Special:Search/Mount Whitney|Mount Whitney]]') -- forced search + linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | search=Mount Whitney |linktext=Big Mountain}}', '[[Commons:Special:Search/Mount Whitney|Big Mountain]]') -- P935 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2217963}}', '[[Commons:Samuel Baker House|Samuel Baker House]]') -- sitelink only self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q816044}}', '[[Commons:Bellows Falls, Vermont|Bellows Falls, Vermont]]') -- inconsistent data, fall back to search self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q21032720}}', '[[Commons:Special:Search/Russian military intervention in the Syrian civil war|Russian military intervention in the Syrian civil war]]') -- P373 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2601154}}', '[[Commons:Category:Agama lionotus|Agama lionotus]]') -- P910 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q853037}}', '[[Commons:Category:Bánhida|Bánhida]]') -- P1754 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2551907}}', '[[Commons:Category:Lakes of Turkey|Lakes of Turkey]]') -- missing gallery, inconsistent category self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q1002229}}', '[[Commons:Category:Municipality of Vipava|Municipality of Vipava]]') -- test fallback self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | fallback=Boing | qid=Q21032720}}', '[[Commons:Special:Search/Boing|Boing]]') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryOrCategory | qid=Q2963317}}', '[[Commons:Special:Search/Chicago Lawn, Chicago|Chicago Lawn, Chicago]]') end function p:testHasGallery() -- P935 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q2217963}}','Samuel Baker House') -- sitelink only self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q816044}}','Bellows Falls, Vermont') -- sitelink and P935 inconsistent self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q139289}}','') -- no sitelink or P935 or category self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q29017978}}','') -- P373 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q2601154}}','') -- P910 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q853037}}','') -- P1754 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q2551907}}','') -- missing gallery, inconsistent category self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q1002229}}','') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGallery | qid=Q2963317}}','') end function p:testHasCategory() -- P935 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q2217963}}','') -- sitelink only self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q816044}}','Category:Bellows Falls, Vermont') -- sitelink and P935 inconsistent, fallback to Category instead self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q139289}}','Category:Boeing 737 MAX') -- P373 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q2601154}}','Category:Agama lionotus') -- P910 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q853037}}','Category:Bánhida') -- P1754 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q2551907}}','Category:Lakes of Turkey') -- missing gallery, inconsistent category self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q1002229}}','Category:Municipality of Vipava') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| hasCategory | qid=Q2963317}}','') end function p:testHasGalleryOrCategory() -- P935 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2217963}}','Samuel Baker House') -- sitelink only self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q816044}}','Bellows Falls, Vermont') -- sitelink and P935 inconsistent self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q139289}}','Category:Boeing 737 MAX') -- P373 matches sitelink self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2601154}}','Category:Agama lionotus') -- P910 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q853037}}','Category:Bánhida') -- P1754 matches P373 self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2551907}}','Category:Lakes of Turkey') -- missing gallery self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q1002229}}','Category:Municipality of Vipava') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q2963317}}','') -- another test self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q185676}}','Category:Fado') -- inconsistent results, P373 should not be invoked here self:preprocess_equals('{{#invoke:Commons link/sandbox| hasGalleryOrCategory | qid=Q477248}}','') end function p:testGalleryAndCategory() -- known link self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney}}', '[[Commons:Mount Whitney|Mount Whitney]]') -- known link with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney |linktext=Big Mountain | italic=1}}', '[[Commons:Mount Whitney|<span style="font-style:italic;">Big Mountain</span>]]') -- known category self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | | Mount Whitney | bold=1}}', '[[Commons:Category:Mount Whitney|<span style="font-weight:bold;">Mount Whitney</span>]]') -- known category with categorytext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | | Mount Whitney |linktext=Big Mountain|bold=1|italic=1}}', '[[Commons:Category:Mount Whitney|<span style="font-style:italic; font-weight:bold;">Big Mountain</span>]]') -- known link and category self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney | Mount Whitney}}', '[[Commons:Mount Whitney|Mount Whitney]] ([[Commons:Category:Mount Whitney|category]])') -- known link and category with linktext self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | Mount Whitney | Mount Whitney | linktext=Big Mountain|bold=1|italic=1}}', '[[Commons:Mount Whitney|<span style="font-style:italic; font-weight:bold;">Big Mountain</span>]] ([[Commons:Category:Mount Whitney|category]])') -- only gallery exists self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2217963|italic=1}}', '[[Commons:Samuel Baker House|<span style="font-style:italic;">Samuel Baker House</span>]]') -- both gallery and category exist self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q816044|bold=1|categoryText=cat}}', '[[Commons:Bellows Falls, Vermont|<span style="font-weight:bold;">Bellows Falls, Vermont</span>]] ([[Commons:Category:Bellows Falls, Vermont|cat]])') -- P373 matches sitelink, category only self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2601154|bold=1}}', '[[Commons:Category:Agama lionotus|<span style="font-weight:bold;">Agama lionotus</span>]]') -- P910 matches P373, category only self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q853037|italic=1|bold=1}}', '[[Commons:Category:Bánhida|<span style="font-style:italic; font-weight:bold;">Bánhida</span>]]') -- P1754 matches P373, category only self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2551907}}', '[[Commons:Category:Lakes of Turkey|Lakes of Turkey]]') -- missing data self:preprocess_equals('{{#invoke:Commons link/sandbox| getGalleryAndCategory | qid=Q2963317|bold=1|linktext=Chicago Lawn|oneSearch=1}}', '[[Commons:Special:Search/Chicago Lawn, Chicago|<span style="font-weight:bold;">Chicago Lawn</span>]]') end function p:testTitleQID() self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID }}','Commons link/sandbox/testcases,Module talk,nil') self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID | Q42 | 1}}','Douglas Adams,,Q42') self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID | Q15048757 | 1}}','Python (genus),Category,Q15048757') -- no page corresponding to QID self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID | Q0}}',',Module talk,Q0') -- QID doesn't link back to en self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID | Q68979196 | 1}}',',,Q68979196') -- gibberish QID self:preprocess_equals('{{#invoke:Commons link/sandbox| getTitleQID | 1234}}','Commons link/sandbox/testcases,Module talk,nil') end function p:testLookupFallback() -- P910 doesn't exist self:preprocess_equals('{{#invoke:Commons link/sandbox| lookupFallback | Q2217963 | P910}}','nil') -- normal P910 self:preprocess_equals('{{#invoke:Commons link/sandbox| lookupFallback | Q853037 | P910}}','Bánhida') -- normal P1754 self:preprocess_equals('{{#invoke:Commons link/sandbox| lookupFallback | Q2551907 | P1754}}','Lakes of Turkey') -- gibberish prop string self:preprocess_equals('{{#invoke:Commons link/sandbox| lookupFallback | Q2551907 | xyzzy}}','nil') end function p:testTracking() local galPrefix = '[[Category:Commons link ' local catPrefix = '[[Category:Commons category link ' local onWikidata = 'is on Wikidata]]' local definedAsPagename = 'is defined as the pagename]]' local locallyDefined = 'is locally defined]]' local fromWikidata = 'from Wikidata]]' local isPagename = 'is the pagename]]' local galInconsistent = '[[Category:Inconsistent wikidata for Commons gallery]]' local catInconsistent = '[[Category:Inconsistent wikidata for Commons category]]' -- default gallery is specified and is Commons gallery on wikidata self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Samuel Baker House | fetchGallery = 1 | fetchCategory = 1 | qid=Q2217963}}', galPrefix..onWikidata,{nowiki=1}) -- default gallery is specified and is Commons category on wikidata self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Fado | fetchGallery=1 | fetchCategory=1 | qid=Q185676}}', galPrefix..definedAsPagename,{nowiki=1}) -- default category is specified and is Commons category on wikidata self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Category:Fado | fetchCategory=1 | qid=Q8442543}}', catPrefix..onWikidata,{nowiki=1}) -- inconsistent wikidata returns nil, so doesn't match title. Called from Template:Commons self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Municipality of Vipava | fetchGallery=1 | fetchCategory=1 | qid=Q1002229}}', galPrefix..definedAsPagename,{nowiki=1}) -- Default string is not the same as either title or wikidata. Called from Template:Commons self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Bellows Falls | fetchGallery = 1 | fetchCategory=1 | qid=Q816044}}', galPrefix..locallyDefined,{nowiki=1}) -- Default string is not the same as either title or wikidata. Called from Template:Commonscat self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | Category:Bellows Falls | fetchCategory=1 | qid=Q816044}}', catPrefix..locallyDefined,{nowiki=1}) -- No string. Commons gallery on Wikidata self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking || fetchGallery=1 | fetchCategory=1 | qid=Q235539}}', galPrefix..fromWikidata,{nowiki=1}) -- No string. Commons category on Wikidata self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking || fetchCategory=1 | qid=Q121319}}', catPrefix..fromWikidata,{nowiki=1}) -- No string. Nothing on Wikidata. Called from Template:Commons self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking | fetchGallery=1| fetchCategory=1 | qid=Q2963317}}', galPrefix..isPagename,{nowiki=1}) -- No string. Nothing on Wikidata. Called from Template:CommonsCat self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking || fetchCategory=1 | qid=Q2963317}}', catPrefix..isPagename,{nowiki=1}) -- Inconsistent wikidata for category self:preprocess_equals('{{#invoke:Commons link/sandbox| tracking |fetchCategory=1|qid=Q21032720}}', catInconsistent,{nowiki=1}) end return p meyntq56orpj9xjpapt705n5m28imm2 Ta‌̱mpi‌̱let:Sister project auto 10 2096 16035 2022-08-18T19:12:47Z Kambai Akau 15 Created page with "{{#invoke:Template wrapper|wrap|_template=Sister project links|auto=1}}<noinclude> {{Documentation|Template:A̱ka̱fwuop nta̱m a̱meang jhyang/doc}} </noinclude>" wikitext text/x-wiki {{#invoke:Template wrapper|wrap|_template=Sister project links|auto=1}}<noinclude> {{Documentation|Template:A̱ka̱fwuop nta̱m a̱meang jhyang/doc}} </noinclude> hr8855kj2df6c6wu8nld83qoi9l078n Ta‌̱mpi‌̱let:Sister project auto/sandbox 10 2097 16037 2022-08-18T19:15:51Z Kambai Akau 15 Created page with "<div role="navigation" aria-labelledby="sister-projects" class="metadata plainlinks sistersitebox plainlist mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{#if:{{{collapsible|}}}|mw-collapsible {{#ifeq:{{{collapsible|}}}|collapsed |mw-collapsed}}}}" style="border:1px solid #aaa; padding:0; background:#f9f9f9; {{{style|}}}"><!-- --><div style="{{#if:{{{collapsible|}}}|clear: both;}} padding: 0.75em 0; text-align: center;"><!-- --><b style="display:block;">{{..." wikitext text/x-wiki <div role="navigation" aria-labelledby="sister-projects" class="metadata plainlinks sistersitebox plainlist mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{#if:{{{collapsible|}}}|mw-collapsible {{#ifeq:{{{collapsible|}}}|collapsed |mw-collapsed}}}}" style="border:1px solid #aaa; padding:0; background:#f9f9f9; {{{style|}}}"><!-- --><div style="{{#if:{{{collapsible|}}}|clear: both;}} padding: 0.75em 0; text-align: center;"><!-- --><b style="display:block;">{{{display|{{{1|{{PAGENAME}}}}}}}}</b><!-- -->at Wikipedia's [[Wikipedia:Wikimedia sister projects|<span id="sister-projects">sister projects</span>]]<!-- --></div><!-- --><ul {{#if:{{{collapsible|}}}|class="mw-collapsible-content"}} style="border-top:1px solid #aaa; padding: 0.75em 0; width:217px; margin:0 auto;"><!-- WIKTIONARY -->{{#if:{{{wikt|}}}{{#invoke:WikidataIB|getSiteLink|enwiktionary|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{wikt|}}}|default=yes|logo=Wiktionary-logo-v2.svg|sister-prefix=wikt|sister-dbname=enwiktionary<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Definitions|sister-name=Wiktionary}}}}<!-- COMMONS -->{{#if:{{{c|}}}{{{commons|}}}{{#invoke:Commons link|{{#ifeq:{{yesno-no|{{{commonscat|}}}}}|yes|hasCategory|hasGalleryOrCategory}}|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{c|{{{commons|}}}}}}|default=yes|logo=Commons-logo.svg|sister-name=Wikimedia Commons<!-- -->|link={{#invoke:Commons link|{{#ifeq:{{yesno-no|{{{commonscat|}}}}}|yes|getCategory|getGalleryOrCategory}}|<!-- -->{{yesno|{{{c|{{{commons|}}}}}}|yes=|def={{{c|{{{commons|}}}}}}}}<!-- -->|fallback={{{1|}}}|linktext=Media|qid={{{qid|}}}}}}}}}<!-- WIKINEWS -->{{#if:{{{n|}}}{{#invoke:WikidataIB|getSiteLink|enwikinews|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{n|}}}|default=yes|logo=Wikinews-logo.svg|sister-prefix=n|sister-dbname=enwikinews<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=News|sister-name=Wikinews}}}}<!-- WIKIQUOTE -->{{#if:{{{q|}}}{{#invoke:WikidataIB|getSiteLink|enwikiquote|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{q|}}}|default=yes|logo=Wikiquote-logo.svg|sister-prefix=q|sister-dbname=enwikiquote<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Quotations|sister-name=Wikiquote}}}}<!-- WIKISOURCE -->{{#if:{{{s|}}}{{#invoke:WikidataIB|getSiteLink|enwikisource|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{s|}}}|default=yes|logo=Wikisource-logo.svg|sister-prefix=s|sister-dbname=enwikisource<!-- -->|qid={{{qid|}}}|search=Search/{{#ifeq:{{yesno-no|{{{author|}}}}}|yes|Author:}}{{{1|{{PAGENAME}}}}}|information=Texts|sister-name=Wikisource}}}}<!-- WIKIBOOKS -->{{#if:{{{b|}}}{{#invoke:WikidataIB|getSiteLink|enwikibooks|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{b|}}}|default=yes|logo=Wikibooks-logo.svg|sister-prefix=b|sister-dbname=enwikibooks<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Textbooks|sister-name=Wikibooks}}}}<!-- WIKIVOYAGE -->{{#if:{{{voy|}}}{{#invoke:WikidataIB|getSiteLink|enwikivoyage|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{voy|}}}|default=yes|logo=Wikivoyage-Logo-v3-icon.svg|sister-prefix=voy|sister-dbname=enwikivoyage<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Travel {{#if: {{{voy|}}}| guide| information}}|sister-name=Wikivoyage}}}}<!-- WIKIVERSITY -->{{#if:{{{v|}}}{{#invoke:WikidataIB|getSiteLink|enwikiversity|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{v|}}}|default=yes|logo=Wikiversity logo 2017.svg|sister-prefix=v|sister-dbname=enwikiversity<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Resources|sister-name=Wikiversity}}}}<!-- WIKIDATA -->{{Sister project links/One sister|{{{d|}}}|default=no|logo=Wikidata-logo.svg|sister-prefix=d|qid={{{qid|}}}<!-- -->|search=ItemByTitle/enwiki/{{{1|{{PAGENAME}}}}}|information=Data|sister-name=Wikidata}}<!-- WIKISPECIES -->{{#if:{{{species|}}}{{#invoke:WikidataIB|getSiteLink|specieswiki|qid={{{qid|}}}}}|<!-- -->{{Sister project links/One sister|{{{species|}}}|default=yes|logo=Wikispecies-logo.svg|sister-prefix=species|sister-dbname=specieswiki<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Taxonomy|sister-name=Wikispecies}}|<!-- -->{{Sister project links/One sister|{{{species_author|}}}|default=no|logo=Wikispecies-logo.svg|sister-prefix=species<!-- -->|qid={{{qid|}}}|search=Search/{{{1|{{PAGENAME}}}}}|information=Species uthor|sister-name=Wikispecies}}}}<!-- META -->{{Sister project links/One sister|{{{m|}}}|default=no|logo=Wikimedia Community Logo.svg|sister-prefix=m|qid={{{qid|}}}<!-- -->|search=Search/{{{1|{{PAGENAME}}}}}|information=Discussion|sister-name=Meta-Wiki}}<!-- MEDIAWIKI -->{{Sister project links/One sister|{{{mw|}}}|default=no|logo=MediaWiki-logo.svg|sister-prefix=mw|qid={{{qid|}}}<!-- -->|search=Search/{{{1|{{PAGENAME}}}}}|information=Documentation|sister-name=MediaWiki}}<!-- --></ul> </div><noinclude> {{Documentation}} </noinclude> 4put8idjghq6nz6ylg81rz026qr3ca3 Ta‌̱mpi‌̱let:Sister project auto/testcases 10 2098 16038 2022-08-18T19:19:24Z Kambai Akau 15 Created page with "{{Testcases notice <!--|toc=on-->}} {{Test case|_collapsible=yes|_showcode=yes|_title=plain Alabama|Alabama|qid=Q173}} {{Test case|_collapsible=yes|_showcode=yes|_title=full Alabama|Alabama|qid=Q173|s=Portal:Alabama|b=y|v=y}} {{Test case|_collapsible=yes|_showcode=yes|_title=plain Abraham Lincoln|Abraham Lincoln|qid=Q91}} {{Test case|_collapsible=yes|_showcode=yes|_title=full Abraham Lincoln|Abraham Lincoln|qid=Q91|author=y|d=y}} {{Test case|_collapsible=yes|_showco..." wikitext text/x-wiki {{Testcases notice <!--|toc=on-->}} {{Test case|_collapsible=yes|_showcode=yes|_title=plain Alabama|Alabama|qid=Q173}} {{Test case|_collapsible=yes|_showcode=yes|_title=full Alabama|Alabama|qid=Q173|s=Portal:Alabama|b=y|v=y}} {{Test case|_collapsible=yes|_showcode=yes|_title=plain Abraham Lincoln|Abraham Lincoln|qid=Q91}} {{Test case|_collapsible=yes|_showcode=yes|_title=full Abraham Lincoln|Abraham Lincoln|qid=Q91|author=y|d=y}} {{Test case|_collapsible=yes|_showcode=yes|_title=Polar bear|Polar bear|qid=Q33609}} 8e4q1hm2h8ofrby4dchr07utrbtahjg Module:Protect 828 2099 16039 2022-08-18T19:21:33Z Kambai Akau 15 Created page with "local function processResult(options, success, ...) if not success then local message = tostring(... or '(no message)') if options.removeLocation then message = string.gsub(message, '^Module:[^:]+:%d+: ', '', 1) end return string.format(options.errFormat, message) end return ... end local function protect(func, errFormat, options) if type(errFormat) == 'table' then options = options or errFormat errFormat = nil end options = mw.clone(options) or {}..." Scribunto text/plain local function processResult(options, success, ...) if not success then local message = tostring(... or '(no message)') if options.removeLocation then message = string.gsub(message, '^Module:[^:]+:%d+: ', '', 1) end return string.format(options.errFormat, message) end return ... end local function protect(func, errFormat, options) if type(errFormat) == 'table' then options = options or errFormat errFormat = nil end options = mw.clone(options) or {} options.errFormat = errFormat or options.errFormat or 'Error: %s' if not options.raw then options.errFormat = '<strong class="error">' .. options.errFormat .. '</strong>' end options.removeLocation = options.removeLocation == nil or options.removeLocation return function (...) return processResult(options, pcall(func, ...)) end end return protect lpwbveqfkihxx5w7otzmx6xlb5y323h Module:Protect/doc 828 2100 16040 2022-08-18T19:22:12Z Kambai Akau 15 Created page with "{{Module rating|protected}} {{used in system}} This [[Help:Lua metamodules|metamodule]] simplifies error handling in other modules. It transforms a function, which may throw an error, into a function, which returns a specified error message in that case." wikitext text/x-wiki {{Module rating|protected}} {{used in system}} This [[Help:Lua metamodules|metamodule]] simplifies error handling in other modules. It transforms a function, which may throw an error, into a function, which returns a specified error message in that case. 5l9zc51e0agc9ul0f82v9lhq8e2p0j2 16042 16040 2022-08-18T19:24:10Z Kambai Akau 15 wikitext text/x-wiki {{Module rating|protected}} {{used in system}} This [[Help:Lua metamodules|metamodule]] simplifies error handling in other modules. It transforms a function, which may throw an error, into a function, which returns a specified error message in that case. == Usage == <syntaxhighlight lang="lua"> local protect = require('Module:Protect') local protectedFunc = protect(func, errFormat, options) </syntaxhighlight> === Arguments === * ''{{code|func}}'' *: Function to be transformed. * ''{{code|errFormat}}'' (default: {{code|'Error: %s'}}) *: Custom error message. *: Use {{code|'%s'}} to include the message from a caught error. * ''{{code|options}}'' – optional table with the following fields: ** {{code|raw}} (default: false) **: If true, then ''{{code|errFormat}}'' will be used as is, otherwise it will be wrapped inside a tag <code><nowiki><strong class="error"></nowiki></code>. ** {{code|removeLocation}} (default: true) **: If true, removes location information from caught error messages. === Return value === The resulting {{code|protectedFunc}} is a ''function'', which calls the original function ''{{code|func}}'', passing all arguments to it, and returns all its return values. If ''{{code|func}}'' throws an error, the specified error message is returned instead. == Example == <syntaxhighlight lang="lua"> local protect = require('Module:Protect') local p = {} function p.main(frame) if not frame.args[1] then error('missing argument') end return frame.args[1] end p.main = protect(p.main) return p </syntaxhighlight> Invoking the main function without arguments will output: <strong class="error">Error: missing argument</strong> <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | [[Category:Error-handling modules]] }}</includeonly> 7v1cze2hju29fx057aa8b0ta0oiecvt Module:Protect/testcases 828 2101 16041 2022-08-18T19:22:45Z Kambai Akau 15 Created page with "local p = require('Module:UnitTests') local protect = require('Module:Protect') local o = {} function o.f1(a) if not a then error('missing argument') end return a end function o:f2(a) if not a then error('missing argument') end return a end function p:test_protect() self:equals( 'Keep location', protect(error, {removeLocation = false})('foo', 3), self.frame:preprocess('{{Error|Error: Module:Protect/testcases:22: foo}}')..." Scribunto text/plain local p = require('Module:UnitTests') local protect = require('Module:Protect') local o = {} function o.f1(a) if not a then error('missing argument') end return a end function o:f2(a) if not a then error('missing argument') end return a end function p:test_protect() self:equals( 'Keep location', protect(error, {removeLocation = false})('foo', 3), self.frame:preprocess('{{Error|Error: Module:Protect/testcases:22: foo}}') ) self:equals( '.', protect(o.f1)('Foo'), 'Foo' ) self:equals( '.', protect(o.f1)(o, 'Foo'), o ) self:equals( ':', protect(o.f2)('Foo'), self.frame:preprocess('{{Error|Error: missing argument}}') ) self:equals( ':', protect(o.f2)(o, 'Foo'), 'Foo' ) protect(o.f2) protect(o.f2) local a = o.f2 local b = o.f2 self:equals( 'Success', protect(mw.clone)('Foo'), 'Foo' ) self:equals( 'Default error', protect(error)('foo'), self.frame:preprocess('{{Error|Error: foo}}') ) self:equals( 'No caught message', protect(error)(), self.frame:preprocess('{{Error|Error: (no message)}}') ) self:equals( 'Custom errFormat', protect(error, 'Failure (%s)')('foo'), self.frame:preprocess('{{Error|Failure (foo)}}') ) self:equals( 'Raw errFormat', protect(error, {raw = true})('foo'), 'Error: foo' ) self:equals( 'Custom raw errFormat', protect(error, 'Failure (%s)', {raw = true})('foo'), 'Failure (foo)' ) self:equals( 'Remove location', protect(error)('foo', 3), self.frame:preprocess('{{Error|Error: foo}}') ) end return p hglfxxxum7zb74qx85zg3b1vk8blncm Sa:Ngwat na̱ nyian ta̱m ma̱ng A̱ka̱fwuop nta̱m a̱meang ma̱ng a̱kace a̱gi̱gak 14 2102 16046 2022-08-18T19:57:17Z Kambai Akau 15 Created page with "{{Unknown parameters category|Sister project links}} [[Category:Tracking category for Sister project links]]" wikitext text/x-wiki {{Unknown parameters category|Sister project links}} [[Category:Tracking category for Sister project links]] kvotodmyr5bqida3sinvz3mbw0kn1tk 16047 16046 2022-08-18T19:59:49Z Kambai Akau 15 wikitext text/x-wiki {{Sa a̱kang a̱gi̱gak|A̱ka̱fwuop nta̱m a̱meang}} [[Category:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang]] tpgv62u6w9cxsior1ixl0bl62mz1nur 16049 16047 2022-08-18T20:01:11Z Kambai Akau 15 wikitext text/x-wiki {{Unknown parameters category|A̱ka̱fwuop nta̱m a̱meang}} [[Category:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang]] it5470i8zchkoz2zm28xeb8v45c6xon 16053 16049 2022-08-18T20:04:57Z Kambai Akau 15 wikitext text/x-wiki {{Unknown parameters category|A̱ka̱fwuop ta̱m a̱meang}} [[Category:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang]] e17mzsgldzcbl9oq1nvzirlus1rddo6 16054 16053 2022-08-18T20:06:37Z Kambai Akau 15 wikitext text/x-wiki {{Unknown parameters category|A̱ka̱fwuop ta̱m a̱meang jhyang}} [[Category:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang]] to7xno5lymdtn1iy6uhkju3hfenr4do 16059 16054 2022-08-18T20:11:03Z Kambai Akau 15 wikitext text/x-wiki {{Unknown parameters category|A̱ka̱fwuop nta̱m a̱meang jhyang}} [[Category:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang]] hkds57dft5dss5xsfa22m0m8ir0n1n6 Sa:Sa kai nnia̱ mat A̱ka̱fwuop ta̱m a̱meang 14 2103 16048 2022-08-18T20:00:28Z Kambai Akau 15 Created blank page wikitext text/x-wiki phoiac9h4m842xq45sp7s6u21eteeq1 Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak 10 2104 16050 2022-08-18T20:02:10Z Kambai Akau 15 Created page with "<includeonly>{{Possibly empty category}} {{Maintenance category|hidden=yes|tracking=yes}} {{Category other| {{#if: {{{1|}}} | {{#ifeq: {{{is_infobox|no}}} | yes | [[Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{infobox_sort|}}} | {{#invoke:String|sub|{{{1}}}|9}} }}]] | {{#ifeq: {{lc:{{#invoke:String|match|s={{{1}}}|^[^%s]*}}}} | infobox | Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{in..." wikitext text/x-wiki <includeonly>{{Possibly empty category}} {{Maintenance category|hidden=yes|tracking=yes}} {{Category other| {{#if: {{{1|}}} | {{#ifeq: {{{is_infobox|no}}} | yes | [[Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{infobox_sort|}}} | {{#invoke:String|sub|{{{1}}}|9}} }}]] | {{#ifeq: {{lc:{{#invoke:String|match|s={{{1}}}|^[^%s]*}}}} | infobox | [[Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{infobox_sort|}}} | {{#invoke:String|sub|{{{1}}}|9}} }}]] | [[Category:Unknown parameters|{{#if:{{{catsort|}}}|{{{catsort|}}}|{{ucfirst:{{trim|1={{{1|<nowiki>*</nowiki>}}}}}}}}}]] }} }} | [[Category:Unknown parameters|{{#if:{{{catsort|}}}|{{{catsort|}}}|{{ucfirst:{{trim|1={{{1|<nowiki>*</nowiki>}}}}}}}}}]] }} }} This category contains pages transcluding {{#if:{{{1|}}} |'''[[{{#if: {{{module|}}} | Module: | Template: }}{{ucfirst:{{{1}}}}}]]''' ([[Template talk:{{ucfirst:{{{1}}}}}|talk]])|a template}} with unknown parameters (undefined, misspelled, etc.). Pages are typically sorted alphabetically by the unknown parameter that is used, e.g. pages using unknown parameter {{para|foo}} will be sorted under "F". The name of the page is typically used as a secondary sort key. <small>Unknown parameters can be detected using [[Module:Check for unknown parameters]] in the template. To show the information listed here on a category page, use {{tl|Unknown parameters category}} on the category page.</small> {{CatAutoTOC}} {{#ifeq: {{#invoke:Is article|main|{{#if: {{{module|}}} | Module: | Template: }}{{{1|}}}}} | article || [[Category:Unknown parameters category for a deleted or redirected template| ]]}}</includeonly><!-- --><noinclude>{{Documentation}}</noinclude> qvfid2mbutr7rnxl3cvlix3h8uqlsd5 16055 16050 2022-08-18T20:08:06Z Kambai Akau 15 Kambai Akau shyei wat hu [[Ta‌̱mpi‌̱let:Unknown parameters category]] nat [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak]]: Di̱n Tyap wikitext text/x-wiki <includeonly>{{Possibly empty category}} {{Maintenance category|hidden=yes|tracking=yes}} {{Category other| {{#if: {{{1|}}} | {{#ifeq: {{{is_infobox|no}}} | yes | [[Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{infobox_sort|}}} | {{#invoke:String|sub|{{{1}}}|9}} }}]] | {{#ifeq: {{lc:{{#invoke:String|match|s={{{1}}}|^[^%s]*}}}} | infobox | [[Category:Infoboxes with unknown parameters|{{#if: {{{infobox_sort|}}} | {{{infobox_sort|}}} | {{#invoke:String|sub|{{{1}}}|9}} }}]] | [[Category:Unknown parameters|{{#if:{{{catsort|}}}|{{{catsort|}}}|{{ucfirst:{{trim|1={{{1|<nowiki>*</nowiki>}}}}}}}}}]] }} }} | [[Category:Unknown parameters|{{#if:{{{catsort|}}}|{{{catsort|}}}|{{ucfirst:{{trim|1={{{1|<nowiki>*</nowiki>}}}}}}}}}]] }} }} This category contains pages transcluding {{#if:{{{1|}}} |'''[[{{#if: {{{module|}}} | Module: | Template: }}{{ucfirst:{{{1}}}}}]]''' ([[Template talk:{{ucfirst:{{{1}}}}}|talk]])|a template}} with unknown parameters (undefined, misspelled, etc.). Pages are typically sorted alphabetically by the unknown parameter that is used, e.g. pages using unknown parameter {{para|foo}} will be sorted under "F". The name of the page is typically used as a secondary sort key. <small>Unknown parameters can be detected using [[Module:Check for unknown parameters]] in the template. To show the information listed here on a category page, use {{tl|Unknown parameters category}} on the category page.</small> {{CatAutoTOC}} {{#ifeq: {{#invoke:Is article|main|{{#if: {{{module|}}} | Module: | Template: }}{{{1|}}}}} | article || [[Category:Unknown parameters category for a deleted or redirected template| ]]}}</includeonly><!-- --><noinclude>{{Documentation}}</noinclude> qvfid2mbutr7rnxl3cvlix3h8uqlsd5 Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak/doc 10 2105 16051 2022-08-18T20:03:06Z Kambai Akau 15 Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->" wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> fqwpxz4z859kfjfy622dy6lhq07s86t 16052 16051 2022-08-18T20:04:12Z Kambai Akau 15 wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == This template is a '''page header''' for a [[Help:Category|category]] page that is populated by [[Module:Check for unknown parameters]]. To use it, add the following to the category page: : {{tlxi|Unknown parameters category|TEMPLATE_NAME}} : where ''<code>TEMPLATE_NAME</code>'' is the name of the template the category is tracking. The header displays message boxes, a table of contents, and will add the category page to [[:Category:Unknown parameters]]. When the first word of ''<code>TEMPLATE_NAME</code>'' is ''Infobox'', the template also adds the category page to [[:Category:Infoboxes with unknown parameters]]. ; Full syntax :{{tlx|Unknown parameters category|2=1={{spaces|1}}|3=catsort={{spaces|1}}|4=is_infobox={{spaces|1}}|5=infobox_sort={{spaces|1}}}} ; Parameter options * {{para|1}} first parameter is the ''TEMPLATE_NAME''. * {{para|catsort}} sets how the category-page is sorted in {{cl|Unknown parameters}}. Default sorting is by template name ({{para|1|}}). Example: [[:Category:Pages using Belgium data templates with unknown parameters‎|Category:Pages using Belgium data templates ... ]] has {{para|catsort|Belgium}} (not by template name {{tlf|Metadata Population BE}}). * {{para|is_infobox|yes}} lists the category page in {{cl|Infoboxes with unknown parameters}}. Default listing occurs when template name starts with <code>Infobox</code>. Example: {{tlf|Chembox}}. * {{para|infobox_sort}} sets category sorting in {{cl|Infoboxes with unknown parameters}}. Default sorting is by template name. Example: {{tlf|routemap-Infobox}} == Example == <code><nowiki>{{Unknown parameters category|Infobox writer}}</nowiki></code> ''(see [[:Category:Pages using Infobox writer with unknown parameters]]):'' {{Unknown parameters category|Infobox writer}} ''(This example would also add the category page to [[:Category:Unknown parameters]] and [[:Category:Infoboxes with unknown parameters]]).'' <!-- not active yet, under construction. Sept2019 ==Tracking== * {{clc|Category:Template:Unknown parameters category errors}} -- Parameter 1 is missing * {{clc|Category:Pages using Unknown parameters category with unknown parameters}} --> == See also == * {{clc|Unknown parameters}} * {{clc|Infoboxes with unknown parameters}} * [[Module:Check for unknown parameters]] <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Category namespace templates]] [[Category:Templates that add a tracking category]] }}</includeonly> jjnxj1xptxofumxm2suq1pmc1btqfnd 16057 16052 2022-08-18T20:08:06Z Kambai Akau 15 Kambai Akau shyei wat hu [[Ta‌̱mpi‌̱let:Unknown parameters category/doc]] nat [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak/doc]]: Di̱n Tyap wikitext text/x-wiki {{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == This template is a '''page header''' for a [[Help:Category|category]] page that is populated by [[Module:Check for unknown parameters]]. To use it, add the following to the category page: : {{tlxi|Unknown parameters category|TEMPLATE_NAME}} : where ''<code>TEMPLATE_NAME</code>'' is the name of the template the category is tracking. The header displays message boxes, a table of contents, and will add the category page to [[:Category:Unknown parameters]]. When the first word of ''<code>TEMPLATE_NAME</code>'' is ''Infobox'', the template also adds the category page to [[:Category:Infoboxes with unknown parameters]]. ; Full syntax :{{tlx|Unknown parameters category|2=1={{spaces|1}}|3=catsort={{spaces|1}}|4=is_infobox={{spaces|1}}|5=infobox_sort={{spaces|1}}}} ; Parameter options * {{para|1}} first parameter is the ''TEMPLATE_NAME''. * {{para|catsort}} sets how the category-page is sorted in {{cl|Unknown parameters}}. Default sorting is by template name ({{para|1|}}). Example: [[:Category:Pages using Belgium data templates with unknown parameters‎|Category:Pages using Belgium data templates ... ]] has {{para|catsort|Belgium}} (not by template name {{tlf|Metadata Population BE}}). * {{para|is_infobox|yes}} lists the category page in {{cl|Infoboxes with unknown parameters}}. Default listing occurs when template name starts with <code>Infobox</code>. Example: {{tlf|Chembox}}. * {{para|infobox_sort}} sets category sorting in {{cl|Infoboxes with unknown parameters}}. Default sorting is by template name. Example: {{tlf|routemap-Infobox}} == Example == <code><nowiki>{{Unknown parameters category|Infobox writer}}</nowiki></code> ''(see [[:Category:Pages using Infobox writer with unknown parameters]]):'' {{Unknown parameters category|Infobox writer}} ''(This example would also add the category page to [[:Category:Unknown parameters]] and [[:Category:Infoboxes with unknown parameters]]).'' <!-- not active yet, under construction. Sept2019 ==Tracking== * {{clc|Category:Template:Unknown parameters category errors}} -- Parameter 1 is missing * {{clc|Category:Pages using Unknown parameters category with unknown parameters}} --> == See also == * {{clc|Unknown parameters}} * {{clc|Infoboxes with unknown parameters}} * [[Module:Check for unknown parameters]] <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Category namespace templates]] [[Category:Templates that add a tracking category]] }}</includeonly> jjnxj1xptxofumxm2suq1pmc1btqfnd Ta‌̱mpi‌̱let:Unknown parameters category 10 2106 16056 2022-08-18T20:08:06Z Kambai Akau 15 Kambai Akau shyei wat hu [[Ta‌̱mpi‌̱let:Unknown parameters category]] nat [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak]] gy2ddvhm01gvt4k6e5ml29azcjor7ma Ta‌̱mpi‌̱let:Unknown parameters category/doc 10 2107 16058 2022-08-18T20:08:06Z Kambai Akau 15 Kambai Akau shyei wat hu [[Ta‌̱mpi‌̱let:Unknown parameters category/doc]] nat [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak/doc]]: Di̱n Tyap wikitext text/x-wiki #REDIRECT [[Ta‌̱mpi‌̱let:Sa a̱kang a̱gi̱gak/doc]] 43sh4s8bz027sfa4d18awdcs6xdsry0 Module:A̱ka̱fwuop nta̱m a̱meang jhyang/styles.css 828 2108 16066 2022-08-18T20:32:02Z Kambai Akau 15 Created page with "/* {{pp-template}} */ .sister-box .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box .side-box-abovebelow > b { display: block; } .sister-box .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box .side-box-text > ul > li { min-height: 31px; } .sister-logo { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-lin..." sanitized-css text/css /* {{pp-template}} */ .sister-box .side-box-abovebelow { padding: 0.75em 0; text-align: center; } .sister-box .side-box-abovebelow > b { display: block; } .sister-box .side-box-text > ul { border-top: 1px solid #aaa; padding: 0.75em 0; width: 217px; margin: 0 auto; } .sister-box .side-box-text > ul > li { min-height: 31px; } .sister-logo { display: inline-block; width: 31px; line-height: 31px; vertical-align: middle; text-align: center; } .sister-link { display: inline-block; margin-left: 4px; width: 182px; vertical-align: middle; } 3kna8siudt7ouh1ijx49ic5mrves5p5