Category:Includes raw templates: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
'''Template:'''
'''Template:'''


{{MdCodeBlock|outline|<nowiki>{{MdCodeBlock|outline|Hello World}}</nowiki>}}
{{CodeBlock|style=1|<nowiki>{{MdCodeBlock|outline|Hello World}}</nowiki>}}




'''Raw Template:'''
'''Raw Template:'''


{{MdCodeBlock|outline|<nowiki><div id="Template:MdCodeBlock" style="background-color: rgba(0,0,0,.3); border-radius: 4px; overflow: auto; font-family: monospace; font-size: 1.2em; line-height: 1.125rem; text-indent: 0; white-space: pre-wrap; padding: .5em; margin-top: 6px;">Hello World</div></nowiki>}}
{{CodeBlock|style=1|<nowiki><div id="Template:MdCodeBlock" style="background-color: rgba(0,0,0,.3); border-radius: 4px; overflow: auto; font-family: monospace; font-size: 1.2em; line-height: 1.125rem; text-indent: 0; white-space: pre-wrap; padding: .5em; margin-top: 6px;">Hello World</div></nowiki>}}


{{ModernNote|{{MdCode|outline-oneclick|<nowiki>id="Template:<Name>"</nowiki>}} can be used to identify the template from which the code was taken. A completely optional atribute, but desirable if you used the raw version of the template.}}
{{ModernNote|{{Code|style=1|select=1|<nowiki>id="Template:<Name>"</nowiki>}} can be used to identify the template from which the code was taken. A completely optional atribute, but desirable if you used the raw version of the template.}}

Revision as of 09:22, 27 January 2023

This category contains pages that, due to a limitation of the engine, use template content instead of using templates themselves. Below are small examples of what it looks like.


Template:

{{MdCodeBlock|outline|Hello World}}


Raw Template:

<div id="Template:MdCodeBlock" style="background-color: rgba(0,0,0,.3); border-radius: 4px; overflow: auto; font-family: monospace; font-size: 1.2em; line-height: 1.125rem; text-indent: 0; white-space: pre-wrap; padding: .5em; margin-top: 6px;">Hello World</div>

Template:ModernNote

Pages in category "Includes raw templates"

This category contains only the following page.