Template:Cs/doc: Difference between revisions

From Project: Jotunnheim
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
 
Line 12: Line 12:
   
 
{| class="wikitable"
 
{| class="wikitable"
! Code !! Script !! Example
+
! Code !! Script !! Usage !! Example
 
|-
 
|-
| <code>dhm</code> || [[Dhimzic script]] || {{cs|dhm|jhmirjhi}}
+
| <code>dhm</code> || [[Dhimzic script]] || <pre>{{cs|dhm|jhmirjhi}}</pre> || {{cs|dhm|jhmirjhi}}
 
|}
 
|}
   

Latest revision as of 14:41, 13 September 2022

This template generates text in a conscript (hence the name CS). Conscripts must be added by the wiki admin.

Usage

The template is formatted like so:

{{cs|CODE|TEXT}}

where CODE is the code of the script, and TEXT is the text you want to be put into the font.

The currently recognized code(s) are:

Code Script Usage Example
dhm Dhimzic script
{{cs|dhm|jhmirjhi}}
jhmirjhi

Adding conscripts

Conscripts can only be added by the wiki admin (autumn#1088).

  1. Place the font files into the resources/assets/conscripts/ directory underneath the Mediawiki root.
  2. Add a class to Mediawiki:Common.css of the form .script-CODE which applies a font-family rule to the text.
  3. Inform users to refresh their cache.