Template:Cs/doc: Difference between revisions

From Project: Jotunnheim
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation subpage}} 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: <pre>{{cs|CODE|TEXT}}</pre> 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: * dhm (Dhimzic script) == Adding conscripts == Conscripts can only be added by the wiki admin (autumn#1088). # Place the f...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
The currently recognized code(s) are:
 
The currently recognized code(s) are:
   
  +
{| class="wikitable"
* dhm ([[Dhimzic script]])
 
  +
! Code !! Script !! Usage !! Example
  +
|-
  +
| <code>dhm</code> || [[Dhimzic script]] || <pre>{{cs|dhm|jhmirjhi}}</pre> || {{cs|dhm|jhmirjhi}}
  +
|}
   
 
== Adding conscripts ==
 
== Adding conscripts ==

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.