Difference between revisions of "Template:Markup2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
(parameters)
 
imported>Gadget850
(→‎Usage: examples)
Line 10: Line 10:
 
* '''r''' through '''r5''': rendered markup
 
* '''r''' through '''r5''': rendered markup
  
== Usage ==
+
== Examples ==
 +
 
 +
{{pre2|<nowiki>
 +
{{markup2 |t=Basic usage with url (and accessdate) and edition
 +
|m=&lt;{{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}&lt;/nowiki>
 +
|r={{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}
 +
}}</nowiki>}}
 +
 
 +
{{markup2|t=Basic usage with url (and accessdate) and edition
 +
|m=<nowiki>{{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}</nowiki>
 +
|r={{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}
 +
}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||

Revision as of 13:23, 15 February 2014

This template is used to create formatted examples of markup in documentation.

Parameters

  • t: title
  • m through m5: markup; wrap in <nowiki>...</nowiki>
  • r through r5: rendered markup

Examples

Template:Pre2

Basic usage with url (and accessdate) and edition

  • {{cite book |last=Bloggs |first=Joe |authorlink=Joe Bloggs |date=1974 |title=Book of Bloggs |edition=1st |url=http://en.wikipedia.org/ |accessdate=February 17, 2006}}
Bloggs, Joe (1974). Book of Bloggs (1st ed.). Retrieved February 17, 2006.