Template:Code/doc: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(moved from the template page)
 
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
This template must be [[Wikipedia:Template substitution|substituted]], e.g. {{tlsx|code|<nowiki>[[foo|bar]]</nowiki>}} produces <code><nowiki>[[foo|bar]]</nowiki></code>.
You must add nowiki tags before and after the code you want to display:
 
{{code|<nowiki>{{Code|&#60;nowiki>... code to be displayed ...&#60;/nowiki>}}</nowiki>}}
<includeonly><!--
<includeonly><!--
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
[[Category:Typing-aid templates|Code]]
[[Category:Typing-aid templates|Code]]
</includeonly>
</includeonly>

Revision as of 11:47, 23 February 2008

You must add nowiki tags before and after the code you want to display:

​{{Code|&#60;nowiki&gt;... code to be displayed ...&#60;/nowiki&gt;}}​