<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ABranded_button%2Fdoc</id>
	<title>Template:Branded button/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ABranded_button%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Branded_button/doc&amp;action=history"/>
	<updated>2026-07-06T10:35:01Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:Branded_button/doc&amp;diff=3138031&amp;oldid=prev</id>
		<title>imported&gt;Diskdance 来自 2021年4月4日 (日) 16:02</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Branded_button/doc&amp;diff=3138031&amp;oldid=prev"/>
		<updated>2021-04-04T16:02:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA&lt;br /&gt;
|1 = zh-cn:示例; zh-tw:範例;&lt;br /&gt;
|2 = zh-cn:重定向; zh-tw:重新導向;&lt;br /&gt;
}}&lt;br /&gt;
{{缺乏中文说明}}&lt;br /&gt;
{{Documentation subpage}}&amp;lt;!-- 在本行下編輯模板說明 --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==用法==&lt;br /&gt;
This template creates a clickable button with an image in the background to make it look a branded button. {{strong|It is not for use in articles}}, but in [[Wikipedia:Project namespace|project pages]], [[Wikipedia:Portal|portals]], [[Wikipedia:Template documentation|template documentation]], and [[Wikipedia:User pages|userspace]]. It offers various parameters to customize display.&lt;br /&gt;
&lt;br /&gt;
To use the template, place &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; anywhere on the page you want the button to appear, and customize the input with the optional parameters, listed below. &lt;br /&gt;
&lt;br /&gt;
Just &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; by itself will just produce the sample test button shown above, which links to the Wikipedia main page, as a demo.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Typical basic use:&amp;#039;&amp;#039;&amp;#039; {{tlx|Branded button|link{{=}}{{var|Wikipedia page name here}}|name{{=}}{{var|Button text here}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
; {{para|text}} &amp;lt;span style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;– a.k.a. {{para|name}}, {{para|title}}, {{para|content}}, to match similar parameters in other templates; {{para|1}}, first unnamed parameter&amp;lt;/span&amp;gt;&lt;br /&gt;
: The displayed text inside the button.&lt;br /&gt;
:* This can be styled with markup like {{kbd|&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;...&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;}} or even something like {{kbd|&amp;lt;nowiki&amp;gt;&amp;lt;span style=&amp;quot;font-family: fantasy;&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;}}. &lt;br /&gt;
; {{para|link}} &amp;lt;span style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;– a.k.a. {{para|page}}, {{para|2}}, second unnamed parameter&amp;lt;/span&amp;gt;&lt;br /&gt;
: The page to wikilink to (where the button goes if you click it).&lt;br /&gt;
:* {{em|Do not}} use a full URL, and {{em|do not}} include the wikilinking brackets – &amp;lt;code&amp;gt;{{!mxt|&amp;lt;nowiki&amp;gt;[[...]]&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; – around the page name.&lt;br /&gt;
:* You {{em|can}} use any valid wikilink target, including a special one, such as {{kbd|Special:MyPage/common.css}}, {{kbd|:Category:South American felids}} (note the &amp;lt;code&amp;gt;:&amp;lt;/code&amp;gt;), or {{kbd|wiktionary:omphaloskepsis#Etymology}}.&lt;br /&gt;
; {{para|file}} &amp;lt;span style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;– a.k.a. {{para|File}}, {{para|image}}, {{para|icon}}, {{para|3}}, third unnamed parameter&amp;lt;/span&amp;gt;&lt;br /&gt;
: The name of the image to use, in {{kbd|File:&amp;lt;var&amp;gt;Image name here&amp;lt;/var&amp;gt;}} format.&lt;br /&gt;
:* Again, {{em|leave out}} the wikilink brackets, and {{em|do not}} give a full URL.&lt;br /&gt;
; {{para|scale}} &amp;lt;span style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;– a.k.a. {{para|upright}}&amp;lt;/span&amp;gt;&lt;br /&gt;
: Sets the image scale (actually a width-to-height ratio), using the &amp;lt;code&amp;gt;{{!}}frameless{{!}}upright={{var|value here}}&amp;lt;/code&amp;gt; feature of the MediaWiki image syntax as described at [[WP:Picture tutorial]].  {{em|You simply supply the numeric value;}} no units like {{samp|{{!mxt|px}}}} are added. The default is {{samp|0.135}}, and works well for square or nearly-square images.  If you select an unusually wide or tall image, you will likely need to change this to get to not be tiny or to not be too tall for the button, respectively. See the cat button example below.&lt;br /&gt;
; {{para|opacity}}&lt;br /&gt;
: The opacity (transparency) level of the image, from {{kbd|0}} to {{kbd|1}}, where {{samp|0}} is invisble and {{samp|1}} is completely opaque. The default is {{samp|0.3}}.  The closer you get to {{samp|1}} the harder the text will be to read, if you do not move it aside with {{para|offset}}, below.&lt;br /&gt;
; {{para|offset}}&lt;br /&gt;
: Moves the content of the {{para|text}} parameter to the right by the specified amount, to prevent overlapping of text and image, especially when not using the {{para|opacity}} default of a rather translucent image. {{em|Specify this is {{samp|em}} units}}, e.g. {{kbd|2.5em}} (note the lack of space between the measure and the unit name).  See the cat button example below.  If you use {{samp|{{!mxt|px}}}} units, it will look wrong on the screen of anyone with different settings from yours. If you use {{samp|{{!mxt|%}}}} units, it will change undesirably with window width.&lt;br /&gt;
; {{para|float}}&lt;br /&gt;
: A value or {{kbd|left}} or {{kbd|right}} will move the button the far left or right of the page (or of the contain in which the template is used, if narrower than page width).&lt;br /&gt;
; {{para|center|yes}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Not tested, and using long-invalid {{tag|center}} markup, which needs to be replaced.&amp;#039;&amp;#039;&amp;#039;  Presumably has some kind of centering effect, though whether this affects the text in the box or the button on the page is unclear.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
The default:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;will produce the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|link=Main Page|name=Main Page}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will produce the following, flush left with its container (in this case, the entire content area aside from the left sidebar):&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|name=Wikipedia Main Page|link=Main Page}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This (notice the link change):&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|link=Portal:Contents|name=Wikipedia Contents|file=File:Wikipedia.png}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will produce:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|link=Portal:Contents|name=Wikipedia Contents|file=File:Wikipedia.png}}&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Float left:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|link=Main Page|name=Main Page|float=left}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will produce the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|name=Wikipedia Main Page|link=Main Page|float=left}}{{clear|left}}&amp;lt;br /&amp;gt;&lt;br /&gt;
You may need to use {{tlx|clear|left}} after this if it interferes with other content.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Float right:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|link=Main Page|name=Main Page|float=right}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will produce the button to the far right:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|name=Wikipedia Main Page|link=Main Page|float=right}}{{clear|right}}&amp;lt;br /&amp;gt;&lt;br /&gt;
You may need to use {{tlx|clear|right}} after this if it interferes with other content.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Center:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|link=Main Page|name=Main Page|center=yes}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
will produce the button to the far right:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|name=Wikipedia Main Page|link=Main Page|center=yes}}&amp;lt;br /&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Complex example of a cat breed button that could be used at [[WP:WikiProject Cats]]:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Branded button|file=File:Brown spotted tabby bengal cat.jpg|scale=0.3|opacity=1|name=Bengal (hybrid)|offset=4em|link=Bengal cat}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
produces:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{in5}}{{Branded button|file=File:Brown spotted tabby bengal cat.jpg|scale=0.3|opacity=1|name=Bengal (hybrid)|offset=4em|link=Bengal cat}}&lt;br /&gt;
&lt;br /&gt;
==Other buttons==&lt;br /&gt;
{{Button templates}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- 本行下加入模板的分類，跨維基連結加入Wikidata（參見[[Wikipedia:维基数据]]） --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:维基百科格式化和函数模板]]&lt;br /&gt;
[[Category:维基百科按钮模板]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Diskdance</name></author>
	</entry>
</feed>