Template:Code: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
m (Text replacement - "Powerpedia" to "Saintapedia") |
||
Line 1: | Line 1: | ||
<!-- ***Commenting out original coding copied from wikipedia, since it relies on an extension not installed in | <!-- ***Commenting out original coding copied from wikipedia, since it relies on an extension not installed in Saintapedia*** | ||
<code>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|enclose="none"}}</code> | <code>{{#tag:syntaxhighlight|{{{code|{{{1}}}}}}|lang="{{{lang|{{{2|text}}}}}}"|enclose="none"}}</code> | ||
***End of commented out code*** | ***End of commented out code*** |
Revision as of 20:43, 16 September 2024
{{{1}}}
|
The intent of this template is that
results in the same thing as the rather less elegant {{Code|<wikicode>}}
<code><nowiki><wikicode></nowiki></code>
.
However, the wikipedia version of this template (Template:Code) relies on an extension that is not currently installed on Saintapedia, and so it doesn't work when directly ported over. A substitute without using that extension requires that the wikicode be entered inside <nowiki>...</nowiki>
tags if you do not want the wikicode to be interpreted. So the end result is
(resulting in {{Code|<nowiki><wikicode></nowiki>}}
<wikicode>
), which is less elegant that the intended use of the template, but perhaps not quite as bad as the no-template alternative.
Usage
Markup | Result |
---|---|
|
'''Bold'''
|
|
Bold
|