Mobile app version of vmapp.org
Login or Join
Chiappetta492

: How to use mw.site.siteName in Module:Asbox Exporting Template:Stub from Wikipedia for use on non-WMF wiki, it transcludes Scribunto Module:Asbox which has on line 233: ' is a [[Wikipedia:stub|stub]].

@Chiappetta492

Posted in: #Mediawiki

Exporting Template:Stub from Wikipedia for use on non-WMF wiki, it transcludes Scribunto Module:Asbox which has on line 233:


' is a [[Wikipedia:stub|stub]]. You can help Wikipedia by [',


Substituting Wikipedia with magic word {{SITENAME}} doesn't work here. How to replace Wikipedia for the comparable Lua function mw.site.siteName, so that pages transcluding the stub template shows the local wiki name instead?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta492

1 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

Use mw.site.namespaces:

' is a [[' .. mw.site.namespaces.Project.name .. ':stub|stub]]. You can help ' .. mw.site.siteName .. ' by ['

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme