欢迎大家来到沙石镇时光中文维基!本站编辑权限开放,欢迎加入中文维基 QQ 群「沙海时光」:372816689
目前正在进行全站数据更新,期间可能会存在显示异常的问题。

全站通知:

模板:Mood/doc

来自沙石镇时光维基
跳到导航 跳到搜索

Description

Adds the mood icons with ease, without having to type the long-form (File:....png).

Syntax

{{mood|<1>|<2>}}

CLEAN WITHOUT PARAMETERS
{{mood}}

CLEAN WITH SIZE PARAMETER
{{mood||}}

CLEAN WITHOUT SIZE PARAMETER
{{mood|}}
  • <1> - the mood, accepted parameters: Happy, Sad, Neutral, Ordinary
    • Can be written in uppercase or lowercase but will automatically convert to lowercase due to coding
  • <2> - the size, using the following SizeGroups (text, header, small, medium, large)

This template uses a standard set of size groups for its images.

text
Text sized images are designed to be display inline with text. Any image that is currently coded to be less than 36px in size will automatically be converted to this size group. There are default stylings that can be overridden on an image by image basis to give the following features.
  • Default height of 26px; designed to be as big as possible without offsetting line heights noticeably.
  • Adjusts the vertical positioning so the images appear level with text.
  • Create a uniform horizontal padding between images and text, ideally around 3 pixels.
  • Prevent word wrapping from happening between images and text without a space character between them.
header
Header sized (h2 and h3) images are designed to be displayed inline with headers. Default height of 40px.
small
Small images are designed to be displayed as small icons without the extra inline text features. Default height of 30px.
medium
Medium images are designed to be displayed as normal icons. Any image that is currently coded to be less than 56px in size will automatically be converted to medium. Default height of 50px.
large
Large images are designed to be displayed as large icons. Any image that is currently coded to be less than 81px in size will automatically be converted to large. Default height of 75px.


If absolutely necessary a manual pixel size can be supplied by overriding the size groups. To do so just add an "o" after the "px" (ie: 34pxo).


Sample usage

{{mood|happy}}
{{mood|sad|text}}
{{mood|neutral|large}}

Results in...

Prompt happy.png Prompt sad.png 文件:Prompt ordinary.png