Difference between revisions of "Template:Automarkup/doc"

From blackwiki
Jump to navigation Jump to search
imported>Petr Matas
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
{{lua|Module:Automarkup}}
 
{{lua|Module:Automarkup}}
The same as {{tl|Markup}}, except that it is not necessary to write the code examples twice. On the other hand, it is not possible to use the <code>&lt;nowiki&gt;</code> tag for markup disabling; other means have to be used to achieve that, like templates {{tl|((}}, {{tl|!}}, {{tl|))}}.
+
This template, as with {{tl|Markup}}, presents [[Markup language|markup]] or [[Source code|code]] side by side with the [[Output (computing)|output]] it would render. However, the difference from the <nowiki>{{Markup}}</nowiki> template is you don't have to write the code examples twice. Although this saves time, the <nowiki>{{Automarkup}}</nowiki> template is more limited: it is not possible to use the [[Wiki markup]] <code>&lt;nowiki&gt;</code> tag to disable certain markup's function; other means have to be used, such as the templates {{tl|((}}, {{tl|!}}, {{tl|))}} or {{tl|Make code}}.
  
 
== Usage ==
 
== Usage ==
 
{{Markup
 
{{Markup
|<nowiki>{{Automarkup
+
|<nowiki>{{Automarkup|{{Make code|<<As of!2015>>}}}}</nowiki>
|{{((}}As of{{!}}2015{{))}}
+
|{{Automarkup|{{Make code|<<As of!2015>>}}}}
}}</nowiki>
 
|{{Automarkup
 
|{{((}}As of{{!}}2015{{))}}
 
}}
 
 
}}
 
}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
== See also ==
 +
* [[Template:Demo]] and [[Template:Demo-inline]] which use [[Module:Demo]]
 +
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]
 +
 
 +
<includeonly>{{Sandbox other||
 
[[Category:Documentation assistance templates]]
 
[[Category:Documentation assistance templates]]
[[Category:Template test cases]]
+
[[Category:Programming typing-aid templates]]
 +
[[Category:Template documentation| ]]
 +
[[Category:Template namespace templates]]
 +
[[Category:Template test cases| ]]
 +
[[Category:Template namespace templates]]
 +
[[Category:Wikipedia utility 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