Template:M/doc: Difference between revisions

m
no edit summary
m (M template docuementation.)
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{TOCright}}
{{TOCright}}


Convenient shortcut of presenting "text" in '''bold with true type font''', plus citing it in '''literally''', i.e. not interpreting it.
Convenient shortcut of presenting "text" in '''bold with true type font''', plus citing it '''literally''', i.e. not interpreting it.
{{eyecatchLight|1|Note|The text is prefixed with <nowiki>{{</nowiki>, and <nowiki>}}</nowiki> is appended!}}


==Syntax==
==Syntax==
The template can have '''1''' to '''11 parameters''':
The template can have '''1''' to '''11 parameters''':
#{{m|m{{!}}<template>}} - Template name.
#{{m|m|<template>}} - Template name.
#{{m|m{{!}}<template>{{!}}<parameter1>}} - Template name with 1 parameter.
#{{m|m|<template>|<parameter1>}} - Template name with 1 parameter.
#{{m|m{{!}}<template>{{!}}<p1>{{!}}<p2>}} - Template name with 2 parameters.
#{{m|m|<template>|<p1>|<p2>}} - Template name with 2 parameters.
# ...
# ...
#{{m|m{{!}}<template>{{!}}<p1>{{!}}<p2>{{!}} ... {{!}}<p10>}} - Template name with 10 parameters.
#{{m|m|<template>|<p1>|<p2>| ... |<p10>}} - Template name with 10 parameters.


   '''<template>'''  =  The template name you want to see in bold, with true type font.
   '''<template>'''  =  The template name you want to see in bold, with true type font.
Line 27: Line 28:
{{m|delete|<reason>}}
{{m|delete|<reason>}}


  <nowiki>{{m|<#>|<info>|<text>}}</nowiki>
  <nowiki>{{m|eyecatch|<#>|<info>|<text>}}</nowiki>
{{m|<#>|<info>|<text>}}
{{m|eyecatch|<#>|<info>|<text>}}


  <nowiki>{{m|quote|<#>|<user>|<quote>|<source>}}</nowiki>
  <nowiki>{{m|quote|<#>|<user>|<quote>|<source>}}</nowiki>
{{m|quote|<#>|<user>|<quote>|<source>}}
{{m|quote|<#>|<user>|<quote>|<source>}}


{{eyecatch|Hint|The more observant wiki coder will notice that using <nowiki>|</nowiki> as an string character in <template>, e.g. <nowiki>delete|<reason></nowiki> is actually not allowed, but since the code interprets the additional columns as actual parameters, things work out fine.}}
{{eyecatch|Hint|The more observant wiki coder will notice that using <nowiki>|</nowiki> as a string character in <template>, e.g. <nowiki>delete|<reason></nowiki> is actually not allowed, but since the code interprets the additional <nowiki>|</nowiki> delimited columns as actual parameters, things work just fine.}}
1,633

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.