Template:M: Difference between revisions

From AniDB
Jump to navigation Jump to search
No edit summary
(Wrote some documentation.)
Line 1: Line 1:
'''<tt><nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki></tt>'''
<includeonly>'''<tt><nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki></tt>'''</includeonly><noinclude>
 
Convenient shortcut for "citing" templates in e.g. syntax examples.
 
==Syntax==
The template can have '''1 parameter''':
#{{m|m{{!}}<template>}} - Template name.
 
'''<template>''' =  The template name you want to see in bold, with true type font,
              possibly with {{m|!}} delimited parameters.
 
Code: <nowiki>'''<tt><nowiki>{{<template>}}</</nowiki><nowiki>nowiki></tt>'''</nowiki>
 
==Examples==
<nowiki>{{m|message}}</nowiki>
{{m|message}}
 
<nowiki>{{m|delete{{!}}<reason>}}</nowiki>
{{m|delete{{!}}<reason>}}
 
{{eyecatch|Limitation|When using templates with parameters as values for <template>, you will need to use {{m|!}} as the delimiter, i.e. <nowiki>delete|<reason></nowiki> has to be replaced with <nowiki>delete{{!}}<reason></nowiki> (for now).}}
 
[[Category:Template]]</noinclude>

Revision as of 12:07, 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.
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).