Template:M: Difference between revisions

From AniDB
Jump to navigation Jump to search
(Wrote some documentation.)
Line 10: Line 10:
               possibly with {{m|!}} delimited parameters.
               possibly with {{m|!}} delimited parameters.


Code: <nowiki>'''<tt><nowiki>{{<template>}}</</nowiki><nowiki>nowiki></tt>'''</nowiki>
Resulting source code: <nowiki>'''<tt><nowiki>{{<template>}}</</nowiki><nowiki>nowiki></tt>'''</nowiki>


==Examples==
==Examples==

Revision as of 12:09, 6 May 2009


Convenient shortcut for "citing" templates in e.g. syntax examples.

Syntax

The template can have 1 parameter:

  1. {{m|<template>}} - Template name.
<template> =  The template name you want to see in bold, with true type font,
              possibly with {{!}} delimited parameters.

Resulting source code: '''<tt><nowiki>{{<template>}}</nowiki></tt>'''

Examples

{{m|message}}

{{message}}

{{m|delete{{!}}<reason>}}

{{delete|<reason>}}

Limitation When using templates with parameters as values for <template>, you will need to use {{!}} as the delimiter, i.e. delete|<reason> has to be replaced with delete{{!}}<reason> (for now).