Template:How to use: Difference between revisions
From SoS Ledger
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{ | {| class="infobox" style="width: 100%; font-size: 90%; line-height: 1.5em; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0 0 1em 1em; padding: 0.2em;" | ||
| | |+ <big>'''Template Usage'''</big> | ||
|- | |||
! colspan="2" style="text-align: left; background-color: #eee; font-weight: normal; padding: 0.4em 0.6em;" | To use this template effectively, please copy the code below and paste it where needed: | |||
|- | |||
| | | colspan="2" style="padding: 0.4em 0.6em;" | | ||
| | <code><nowiki> | ||
{{{subst:How to Use}}} | |||
</nowiki></code> | |||
|} | |||
= | |||
== | |||
< | |||
== Introducing How to Use: == | |||
In order to document the use case of a template, this template has been designed to show the code necessary to use it. | |||
Copy the highlighted code in the infobox, and paste it on any Template page you need. Remember to change out "How to Use" with the template of your choice, otherwise the code will be wrong. | |||
Click "Save changes", then open the editor again. The code for this template should now be included in your source, allowing you to change the "How to Use" for whichever template you wish to include this showcase on. | |||
<b>Note:</b> This is case sensitive. Make sure you write the template name exactly as it is. | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
Line 37: | Line 27: | ||
| colspan="2" style="padding: 0.4em 0.6em;" | | | colspan="2" style="padding: 0.4em 0.6em;" | | ||
<code><nowiki> | <code><nowiki> | ||
{{{ | {{{subst:Template Name}}} | ||
</nowiki></code> | </nowiki></code> | ||
|} | |} | ||
</includeonly> | </includeonly> |
Revision as of 14:54, 27 July 2025
To use this template effectively, please copy the code below and paste it where needed: | |
---|---|
|
Introducing How to Use:
In order to document the use case of a template, this template has been designed to show the code necessary to use it. Copy the highlighted code in the infobox, and paste it on any Template page you need. Remember to change out "How to Use" with the template of your choice, otherwise the code will be wrong.
Click "Save changes", then open the editor again. The code for this template should now be included in your source, allowing you to change the "How to Use" for whichever template you wish to include this showcase on.
Note: This is case sensitive. Make sure you write the template name exactly as it is.