Template:Sup

· 约 2 分钟阅读

Usage[编辑]

For wiki editors' inline critical notes [就像这样]

OPTIONAL: Categorisation[编辑]

{{sup|...|cat=...}} overrides the default injected Category:需要核实.

cat=0 disables categorisation.

OPTIONAL: Referencing {}[编辑]

{{Sup|... superscript note ...|... text to interrogate ...}}

E.g:

Whilst milk is almost always white, {{sup|一派胡言|cheese is universally black}}"

... renders...

Whilst milk is almost always white, cheese is universally black [一派胡言]

查看此模板的原始 Wikitext 源代码
▸
<includeonly>{{#if:{{{2|}}}|<span class="inline-sup" style="background-color:{{#ifeq:{{{cat|需要核实}}}|0|#f9f9f9|#fff9f9}}; color:DarkSlateGray;border:1px solid {{#ifeq:{{{cat|需要核实}}}|0|#dcdcdc|#ffdcdc}}">{{{2|}}}</span>&nbsp;}}<sup class="inline-sup" style="white-space:nowrap;">[{{{1}}}]</sup>{{#ifeq:{{{cat|需要核实}}}|0||[[Category:{{{cat|需要核实}}}]]}}</includeonly><noinclude>
==Usage==
For wiki editors' inline critical notes <sup class="inline-sup" style="white-space:nowrap;">[就像这样]</sup>
===OPTIONAL: Categorisation <nowiki>{{{cat|}}}</nowiki>===
<code><nowiki>{{sup|...|cat=...}}</nowiki></code> overrides the default injected [[:Category:需要核实]].

cat=0 disables categorisation.

===OPTIONAL: Referencing {{{2}}}===
<code><nowiki>{{Sup|... superscript note ...|... text to interrogate ...}}</nowiki></code>

E.g:

<nowiki>Whilst milk is almost always white, {{sup|一派胡言|cheese is universally black}}</nowiki>"

... renders...

Whilst milk is almost always white, <span class="inline-sup" style="background-color:#fff9f9; color:DarkSlateGray; border:1px solid #ffdcdc">cheese is universally black</span> <sup class="inline-sup" style="white-space:nowrap;">[一派胡言]</sup>

[[Category:模板]]
</noinclude>