Template Wiki:Community portal

From Template Wiki, a repository of MediaWiki templates.
Jump to navigation Jump to search

The top category

The top level category of Template Wiki's category system is on the wiki's front page. You should be able to browse the whole site from there. Subcategories should assist with navigation of the wiki. Every wiki page should be in a category, and will often be appropriate in more than one. Every category should be a subcategory of at least one higher category. Rob Kam (talk) 07:50, 1 July 2018 (UTC)


The wiki has the Category Tree extension enabled, seen here on the right. Rob Kam (talk) 07:51, 1 July 2018 (UTC)

Wanted templates

In case you'd like particular templates to be added to those already available, if you can't import them yourself please list them here. N.B. Currently (Feb 2018) Miraheze backend issues are preventing imports.

Done :-) except {{Infobox Wikipedia user}} is now {{Infobox Miraheze user}}. --Rob Kam (talk) 17:19, 10 February 2018 (UTC)
  • {{Support}} (and related voting templates), might be useful on other wikis. Reception123 (talk) 18:38, 10 February 2018 (UTC)
Then please import these. --Rob Kam (talk) 19:14, 10 February 2018 (UTC)
Ok, mi pedido sería tener Plantilla:Resultados_electorales de Wikipedia en español (entre otras plantillas). ¿se puede? además, estaría bien que las plantillas se categorizen por ejemplo «Category:Templates from English Wikipedia» o simplemente «Category:Templates from English Wikipedia» Wiki1776 (talk) 19:22, 10 February 2018 (UTC)
Yes to categorising templates, somebody just has to be bold and go for it. Also which ones are primary and which ones are only supporting? --Rob Kam (talk) 21:20, 10 February 2018 (UTC)
Rob Kam, he hecho dos propuestas de categorías. Espero comentarios, si tienes alguna propuesta puedes agregarlo en mi sandbox. Wiki1776 (talk) 22:18, 10 February 2018 (UTC)
Those are fine but I'd categorise by function. Anyhow there can be more than one scheme. --Rob Kam (talk) 23:40, 10 February 2018 (UTC)
Ah, bueno. Solo sería agregar también esas categorías, ver Proposal 3 Wiki1776 (talk) 01:33, 11 February 2018 (UTC)
{{Support}} (and related voting templates) are now included. --Rob Kam (talk) 23:40, 11 February 2018 (UTC)
Could {{Infobox settlement}} and {{Infobox information appliance}} be added too? EzekielT (talk) 22:33, 28 June 2018 (UTC)
Done. Rob Kam (talk) 19:32, 30 June 2018 (UTC)

Extension:MobileFrontend instead of scary transclusion?

By the way mw:Extension:MobileFrontend has Testing with articles on a foreign wiki (live data):

"MobileFrontend can now be configured locally to render articles from other MediaWiki instances. This can help you debug problems locally instead of importing articles which may have dependencies on various templates and Wikibase identifiers from production to your local instance. This is not recommended for production usage.

The code below will turn your local MediaWiki mobile site into a Wikivoyage viewer:

$wgMFContentProviderClass = 'MobileFrontend\ContentProviders\MwApiContentProvider';
$wgMFMwApiContentProviderBaseUri = 'https://en.m.wikivoyage.org/w/api.php';

This is particularly useful for testing different mobile skins using the wgMFDefaultSkinClass config option."

I have noticed the "This is not recommended for production usage." and suspect this would be regarded as a security risk on Miraheze.

There's a demo on YouTube at How to pull content from remote wikis in your local MediaWiki instance.

--Rob Kam (talk) 11:02, 12 February 2018 (UTC)

Interwiki transclusion needs fixing

Interwiki transclusion needs fixing, e.g. for infobox, while interwiki transcluded templates with local modules function properly, those without local modules don't. (See Maniphest T2697) Rob Kam (talk) 07:53, 1 July 2018 (UTC)

How do you use these templates?

I read Miraheze_Template_Wiki#How_to_use_this_wiki but I don't understand what I'm supposed to do with these templates.

If I use {{raw:templatewiki:merge from|Article title}}, I get 'Script error: No such module "Unsubst".'

Am I supposed to copy or import the templates from templatewiki into my wiki? Psephomancy (talk) 04:34, 31 August 2018 (UTC)

You should export templates from Template wiki and then import these into your wiki. Interwiki transcluding would be better for keeping your templates up to date but unfortunately it is still broken. Rob Kam (talk) 07:13, 1 September 2018 (UTC)
@Rob Kam Ok, thanks. I see that Special:Import has a "Import from another wiki" option that includes templatewiki.
  1. I should use "Import to default locations" to keep them in the Template namespace?
  2. Which of these options should I check?
    • Copy all history revisions for this page
    • Include all templates (imports dependencies as well?)
    • Assign edits to local users where the named user exists locally (aren't users already shared between my wiki and templatewiki?)
  3. Is there an advantage to exporting from https://template.miraheze.org/wiki/Template:Reflist vs https://en.wikipedia.org/wiki/Template:Reflist? Psephomancy (talk) 19:52, 1 September 2018 (UTC)
I use Upload XML data, I've not yet figured out what Import from another wiki is.
Leaving Import to default locations checked seems to work fine.
Because of attribution requirements I used to include all the history of every template but that way the XML file quickly becomes huge and unwieldy. I'd recommend leaving out the history and just put a footer on each page pointing to the history on the source wiki, e.g. at {{Bang}}.
Yes, check Include all templates, templates transclude other templates, etc. also don't forget to check the MediaWiki:Common.css page for any styling used by the templates.
Yes do assign edits to local users. Most of the templates are from Wikipedia so that doesn't really apply on Miraheze anyway.
While Template wiki is under construction (currently stalled) there's little advantage using the templates here over those on Wikipedia. The templates here are meant to be more universal, but they aren't yet. Ideally Miraheze wikis wouldn't have templates referring the users to various Wikipedia/Mediawiki pages. See Customising templates, but that's maybe 2000 templates here that need refining. -- Rob Kam (talk) 22:29, 1 September 2018 (UTC)
Ok, thanks. You should post that on the Stack Exchange question. Psephomancy (talk) 23:07, 1 September 2018 (UTC)
Done, for the opportunity to describe Mediawiki templates as sabotaging the efforts of anyone who just wants to edit their own wiki -- Rob Kam (talk) 07:18, 2 September 2018 (UTC)

Interface Pages (Such as Mediawiki, Gadget etc.)

Request for Template


We have seen, Request for templates are put on phabricator individually. As I think, If we start request system on this Wiki. it will be better.

N. Sorry for grammatical mistake. I'm not practical on English. Ahmsaqib (talkcontribsemail) 05:38, 27 September 2018 (UTC)