“模板:Paper”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
(创建页面,内容为“<div style="font-size: {{{size|16}}}px; padding: 0.8em; margin: 0.6em; background: #fff;{{#if: {{{rotate|}}} |transform: rotate({{{rotate}}}); |}} box-shadow: 0 1.25…”)
2个标签移动版编辑移动网页编辑
 
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
<div style="font-size: {{{size|16}}}px; padding: 0.8em; margin: 0.6em; background: #fff;{{#if: {{{rotate|}}}
+
<div style="font-size: {{{size|16}}}px; padding: 0.8em; margin: 0.6em; z-index: 0; background: #fff;{{#if: {{{rotate|}}}
|transform: rotate({{{rotate}}}); |}} box-shadow: 0 1.25px 3.75px rgba(0, 0, 0, 0.12), 0 1.25px 2.5px rgba(0, 0, 0, 0.24);
+
|transform: rotate({{{rotate}}}); |}}{{#if: {{{inline-block|}}}
  padding: 1em;">
+
|display: inline-block; |}} box-shadow: 0 1.25px 3.75px rgba(0, 0, 0, 0.12), 0 1.25px 2.5px rgba(0, 0, 0, 0.24); padding: 1em">
 
{{{text}}}{{#if: {{{author|}}}
 
{{{text}}}{{#if: {{{author|}}}
 
|<cite style="font-size: {{{size|16}}}px; display: block; text-align: right">— {{{author}}}</cite>|}}
 
|<cite style="font-size: {{{size|16}}}px; display: block; text-align: right">— {{{author}}}</cite>|}}
第8行: 第8行:
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
<nowiki>{{{Paper|text=(|author=)(|size=)(|rotate)}}}</nowiki>
+
<nowiki>{{{Paper|text=(|author=)(|size=)(|rotate=)(|inline-block=1)}}}</nowiki>
 
</pre>
 
</pre>
 
The default font size is 16 (pixels).
 
The default font size is 16 (pixels).
  
 
Please specify the unit (such as deg, rad) used in the rotate parameter.
 
Please specify the unit (such as deg, rad) used in the rotate parameter.

2019年7月5日 (五) 18:33的最新版本

{{{text}}}

Usage

{{{Paper|text=(|author=)(|size=)(|rotate=)(|inline-block=1)}}}

The default font size is 16 (pixels).

Please specify the unit (such as deg, rad) used in the rotate parameter.