From Mageia wiki
Jump to: navigation, search
This page is a template. It does not contain information about Mageia, but should be used to present other templates. Avoid experimenting with this template, as you may ruin all pages using this template.

If you want to create, modify and test a new template, edit the code on your personal page. When your work is up to your expectations, you can create the template page. You can also visit this page to create your local wiki. You are free to express your opinion about this template.


About This Template

This template is used in other templates to provide usage examples.



TEST PAGE FOR MAGEIA WIKI TEMPLATES

You may use this space to test your templates before actually save them into the Mageia wiki.

Information:
  • Edit the template test page by clicking here
  • Then you can test your modifications by using this template by adding {{Template_sandbox}} on whatever wiki page you want.
  • You can see and inspect your template by clicking "Show Preview" button at below of that wiki page.
  • When your test&fail finishes with your template click here to RESET this page

Template Test Space

{{sudo-fr|urpmi --auto-update}}


$ /bin/sudo urpmi --auto-update
[sudo] user password :

{{sudo-fr|echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel & chmod 440 /etc/sudoers.d/01wheel}}


$ /bin/sudo ERROR : A downside of this template is that it does not work if the "=" (equal) or "|" (vertical bar) signs are included in the template. To insert them correctly, you must use the {{=}} and {{!}} syntax.
[sudo] user password :

{{sudo-fr|echo "%wheel ALL{{=}}(ALL) ALL" > /etc/sudoers.d/01wheel & chmod 440 /etc/sudoers.d/01wheel}}


$ /bin/sudo echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/01wheel & chmod 440 /etc/sudoers.d/01wheel
[sudo] user password :