Template:Inline:修订间差异

(merge from offical wiki)
 
无编辑摘要
 
第1行: 第1行:
<includeonly>{{if|{{{2|}}}|{{{2}}} }}[[File:{{{1}}}|frameless|x{{{4|18}}}px|link={{{3|{{{2|}}}}}}]]<nowiki/></includeonly><noinclude>
<includeonly>{{if|{{{2|}}}|[[{{{3|{{{2}}}}}}{{!}}{{{2}}}]] }}[[File:{{{1}}}|frameless|18x18px|link={{{3|{{{2|{{{1}}}}}}}}}]]<nowiki/></includeonly><noinclude>
An inline icon meant to be embedded in text.
An inline icon (size: 18x18 px) meant to be embedded in text.
 
== Usage ==
<nowiki>{{Inline|file_name|text_link(default:blank)|link_target(default:text_link*)}}</nowiki>
<nowiki>*</nowiki> or <code>file_name</code> if <code>text_link</code> is missing/blank


{{examples|
{{examples|
第7行: 第11行:
{{example3|Inline|Inline17.png|Sanity}}
{{example3|Inline|Inline17.png|Sanity}}
{{example4|Inline|Inline17.png|Sanity|Custom Link}}
{{example4|Inline|Inline17.png|Sanity|Custom Link}}
{{example5|Inline|Inline17.png|Sanity||24}}
}}
}}



2021年6月12日 (六) 12:04的最新版本

An inline icon (size: 18x18 px) meant to be embedded in text.

Usage[编辑源代码]

{{Inline|file_name|text_link(default:blank)|link_target(default:text_link*)}}

* or file_name if text_link is missing/blank

Examples

You type You get

{{Inline|Inline17.png}}

Inline17.png

{{Inline|Inline17.png||Custom Link}}

Inline17.png

{{Inline|Inline17.png|Sanity}}

Sanity Inline17.png

{{Inline|Inline17.png|Sanity|Custom Link}}

Sanity Inline17.png

References[编辑源代码]