Contributing:Style guide
This page is unfinished!
This page has been recently created or hasn't been been completed yet. |
This guide serves as a reference on how to style pages when contributing to the wiki.
Images
Enabling smooth rendering
To enable smooth rendering, add smooth-render
class, for instance:
{{#vardefine: @lang |{{#ifeq: 1|0|text|mediawiki}}}}{{#vardefine: @line |0}}{{#vardefine: @start |}}{{#vardefine: @highlight |}}{{#vardefine: @inline |1}}{{#vardefine: @class |}}{{#vardefine: @style |}}<syntaxhighlight {{#if: {{#var:@lang}}|lang|Template:UnusedParamName}}="{{#var:@lang}}" {{#ifeq: {{#var: @line}}|1|line|Template:UnusedParamName}}="{{#var:@line}}" {{#if: {{#var:@start}}|start|Template:UnusedParamName}}="{{#var:@start}}" {{#if: {{#var:@highlight}}|highlight|Template:UnusedParamName}}="{{#var:@highlight}}" {{#ifeq: {{#var: @inline}}|1|inline|Template:UnusedParamName}}="{{#var:@inline}}" {{#if: {{#var:@class}}|class|Template:UnusedParamName}}="{{#var:@class}}" {{#if: {{#var:@style}}|style|Template:UnusedParamName}}="{{#var:@style}}">[[File:UI_before_menu.png|class=smooth-render]]</syntaxhighlight>
Produces:
Videos
Videos are added the same way images do. This is provided by EmbedVideo extension.
For more info, including various new options, see https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo
Making framed gifs
Since videos do not support frame
image mode, an template was made specifically for making gifs from videos in frame
-like appeareance. See {{EmbedVideo Gif Frame}}.