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>
{{How to use
{| 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;"
| template_name =  
|+ <big>'''Template Usage'''</big>
 
|-
{{Player Infobox
! 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:
| name =  
|-
| alliance =
| colspan="2" style="padding: 0.4em 0.6em;" |
| state =
<code><nowiki>
| hero =
{{{subst:How to Use}}}
| power =  
</nowiki></code>
}}
|}
 
== In-Game History ==
* **Roles Held (e.g., Governor, R5, Officer):**
* **Notable Achievements:**
<br>
 
== Personal Notes ==
* **About the Player:**
<br>
 
[[Category:Players]]
[[Category:CurrentAllianceName Members]]
[[Category:CurrentState Players]]


== 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.


[[Category:Player templates]]
<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>
{{{template_name|}}}
{{{subst:Template Name}}}
</nowiki></code>
</nowiki></code>
|}
|}
</includeonly>
</includeonly>

Revision as of 14:54, 27 July 2025

Template Usage
To use this template effectively, please copy the code below and paste it where needed:

{{{subst:How to Use}}}

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.