Cithakan:Plain sister: Béda antarané révisi
Konten dihapus Konten ditambahkan
Lua migration of links to sister projects with fallback to Wikidata for all projects supported yet. See Module:Plain sister |
add option for a wikidata search (and remove redundant "only create box if parameters are called" element) |
||
Larik 1: | Larik 1: | ||
⚫ | |||
⚫ | |||
⚫ | |||
Only show the box if at least one parameter is called |
|||
⚫ | |||
-->{{{disambiguation|}}}<!-- |
|||
⚫ | |||
-->{{{portal|}}}<!-- |
|||
-->{{{related_author|}}}<!-- |
|||
-->{{{wikipedia|}}}<!-- |
|||
-->{{{commons|}}}<!-- |
|||
-->{{{commonscat|}}}<!-- |
|||
-->{{{wikiquote|}}}<!-- |
|||
-->{{{wikinews|}}}<!-- |
|||
-->{{{wiktionary|}}}<!-- |
|||
-->{{{wikibooks|}}}<!-- |
|||
-->{{{wikiversity|}}}<!-- |
|||
-->{{{wikispecies|}}}<!-- |
|||
-->{{{wikivoyage|}}}<!-- |
|||
-->{{{wikidata|}}}<!-- |
|||
-->{{{wikilivres|}}}<!-- |
|||
-->{{{meta|}}}<!-- |
|||
-->|<!-- |
|||
--><!-- |
|||
⚫ | |||
Only show disambiguation text if the disambiguation parameter is called |
Only show disambiguation text if the disambiguation parameter is called |
||
Larik 118: | Larik 90: | ||
-->{{#invoke:Plain sister|interprojetPart}}<!-- |
-->{{#invoke:Plain sister|interprojetPart}}<!-- |
||
Only show wikidatasearch if the wikidataswitch parameter is called (ie. if the switch is "turned on") |
|||
--></ul><!-- |
|||
-->{{#if:{{{wikidataswitch|}}}<!-- |
|||
⚫ | |||
Only show wikidata search if not connected to that project already |
|||
-->{{#ifeq:{{#invoke:Wikibase|id}}|(no item connected)<!-- |
|||
⚫ | |||
Begin wikidata search content |
|||
--><li class="sisitem"><span class="sisicon" style="padding-right:1ex;">[[File:Wikidata-logo.svg|frameless|17px|link=Wikisource:Wikidata|alt=Wikidata.]]</span>[[Wikidata:Special:Search/{{PAGENAME}}|Search Wikidata]].</li><!-- |
|||
End of wikidata search #ifeq |
|||
⚫ | |||
End of wikidata switch |
|||
⚫ | |||
⚫ | |||
End of overall #if |
|||
⚫ | |||
</noinclude> |
</noinclude> |