Template:ID: Difference between revisions

From PZwiki
mNo edit summary
m (use Template:sup)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><span style="font-family: monospace; font-size: 120%">{{{1}}}</span></includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude>
<noinclude>
{{Documentation/sandbox|doc =
Template for IDs for consistent formatting. Applies consolas font for better readability.
 
==Usage==
===Parameters===
;<code>1</code> {{sup|required}}
:ID to be formatted.
 
==Examples==
*{{tll|ID|Base.BaseballBat}}
Base.BaseballBat -> {{ID|Base.BaseballBat}}
 
*{{tll|ID|farming.Potato}}
farming.Potato -> {{ID|farming.Potato}}
 
*{{tll|ID|Base.CarStationWagon2}}
Base.CarStationWagon2 -> {{ID|Base.CarStationWagon2}}
 
{{Translation guide}}
}}
{{ll|Category:Templates}}
</noinclude><includeonly><span style="font-family: Consolas, Menlo, Monaco, Lucida Console, Monospace; font-size: 90%;">{{{1}}}</span></includeonly>

Latest revision as of 04:42, 8 January 2024

Notebook.pngTemplate Documentation

Template for IDs for consistent formatting. Applies consolas font for better readability.

Usage

Parameters

1 Required
ID to be formatted.

Examples

  • {{ID|Base.BaseballBat}}

Base.BaseballBat -> Base.BaseballBat

  • {{ID|farming.Potato}}

farming.Potato -> farming.Potato

  • {{ID|Base.CarStationWagon2}}

Base.CarStationWagon2 -> Base.CarStationWagon2

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.
Editors can experiment in this template's sandbox.