[MediaWiki-l] https://www.google.com

2021-12-29 Thread Seksun Komsan
link www.google.com ___ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org To unsubscribe send an email to mediawiki-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/

[MediaWiki-l] Re: How to add a custom Magic Word in LocalSettings.php?

2021-12-29 Thread Patrick Schleizer via MediaWiki-l
Hi Valerio! Thank you for looking into this. Reviewing these links implies that this requires an extension? So it cannot be done simply, directly from LocalSettings.php? Could you provide please a minimal example how to set as $CUSTOM_VARIABLE = "custom-content";? Template are generally

[MediaWiki-l] Re: How to add a custom Magic Word in LocalSettings.php?

2021-12-29 Thread Amir E. Aharoni
LocalSettings.php is probably not the right place for doing that. Magic words are added using extensions. However, magic words are really necessary only when the custom content that you want to add is so complicated that it can be generated only by complicated PHP code or when you need a

[MediaWiki-l] How to add a custom Magic Word in LocalSettings.php?

2021-12-29 Thread Patrick Schleizer via MediaWiki-l
Could you explain please how to add a custom magic word to mediawiki LocalSettings.php? Example: When writing in the wiki {{CUSTOM_VARIABLE}} it will expand to: custom-content In other words... I want to set in LocalSettings.php $CUSTOM_VARIABLE = "custom-content"; and that custom variable