الگو:Cclink/توضیحات
ظاهر
این زیرصفحهٔ مستندات الگو:Cclink است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
This is a helper template that displays a linked commons category for use in infoboxes that fetch ردهٔ ویکیانبار (P373) from Wikidata.
Because we don't want to code a huge call to Wikidata twice, for the name of the link and the text to display, we can use this template to use the same text for both.
Usage
[ویرایش]Typically inside an infobox definition, something like this:
| label25 = Commons category | data25 = {{{commons_category | {{#if:{{#property:P373}}| {{Cclink| {{#invoke:WikidataIB |getValue |P373 |name=commons_category |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}}}} }} }}}}}