Difference between revisions of "Template:Automarkup/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update see also & categories)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:
 
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]
 
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
[[Category:Documentation assistance templates]]
 
[[Category:Documentation assistance templates]]
 
[[Category:Programming typing-aid templates]]
 
[[Category:Programming typing-aid templates]]
Line 19: Line 19:
 
[[Category:Template namespace templates]]
 
[[Category:Template namespace templates]]
 
[[Category:Template test cases| ]]
 
[[Category:Template test cases| ]]
[[Category:Template-related templates]]
+
[[Category:Template namespace templates]]
 
[[Category:Wikipedia utility templates]]
 
[[Category:Wikipedia utility templates]]
 
[[Category:Wikitext processing templates]]
 
[[Category:Wikitext processing templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 23:27, 23 April 2020

This template, as with {{Markup}}, presents markup or code side by side with the output it would render. However, the difference from the {{Markup}} template is you don't have to write the code examples twice. Although this saves time, the {{Automarkup}} template is more limited: it is not possible to use the Wiki markup <nowiki> tag to disable certain markup's function; other means have to be used, such as the templates {{((}}, {{!}}, {{))}} or {{Make code}}.

Usage

Markup Renders as
{{Automarkup|{{Make code|<<As of!2015>>}}}}

Markup Renders as
[[:Template:MultiReplace]]

See also