Toggle menu
15
236
74
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Automarkup/doc: Difference between revisions

From Kenshi Wiki
Created page with "{{Documentation subpage}} {{lua|Module:Automarkup}} This template, as with {{tl|Markup}}, presents markup or code side by side with the 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..."
 
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
Implements {{tl|Automarkup}}.
{{lua|Module:Automarkup}}
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 ==
{{Markup
|<nowiki>{{Automarkup|{{Make code|<<As of!2015>>}}}}</nowiki>
|{{Automarkup|{{Make code|<<As of!2015>>}}}}
}}


== See also ==
== See also ==
* [[Template:markup]]
* [[Template:Demo]] which uses [[Module:Demo]]
* [[Template:mra]], which addresses the same issue.
* [[Template:Demo]] and [[Template:Demo-inline]] which use [[Module:Demo]]
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]
* [[Template:Nowiki template demo]] which uses [[Module:Template test case]]


<includeonly>{{Sandbox other||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[Category:Documentation assistance templates]]
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Programming typing-aid templates]]
 
[[Category:Template namespace templates]]
[[Category:Template test cases| ]]
[[Category:Wikipedia formatting templates]]
[[Category:Wikitext processing templates]]
}}</includeonly>
}}</includeonly>
<noinclude>
[[Category:Module documentation pages]]
</noinclude>

Revision as of 04:42, 16 February 2025

Contents