模板:Ribbon devices
本模板含有复杂而精密的扩展语法。 编辑本模板前,建议您先熟悉解析器函数与本模板的设计思路、运作原理等。若您的编辑引发了意外的问题,请尽快撤销编辑,因为本模板可能被大量页面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行测试。 |
This template will superimpose United States military award devices onto military award ribbons. It currently does oak leaf clusters, award stars, service stars (up to a numeric value of 24 total awards) as well as the Arrowhead device, Combat V, and Fleet Marine Force Combat Operations Insignia. Variables are as follows:
Variable | Accepted values | Default value |
---|---|---|
number | 0–23 | 0 |
type | oak, award-star, service-star | oak |
other_device | arrowhead, v, fmf | |
name | Name of ribbon image, without the "Image:" prefix or ".svg" suffix | |
ribbon | Any image, without the "Image:" prefix. Do not specify if |name= is also specified.
|
|
alt | Alt text for ribbon image. The default alt text is derived from |name= using the lookup table in ((ribbon devices/alt)).
| |
width | 106, 80, 60 | 106 |
- Examples
((ribbon devices|number=8|type=oak|other_device=v|name=Bronze Star ribbon|width=106))
| |
((ribbon devices|number=6|type=award-star|name=Meritorious Service ribbon|width=106))
| |
((ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Asiatic-Pacific Campaign ribbon|width=106))
| |
((ribbon devices|number=0|other_device=fmf|name=Global War on Terrorism Expeditionary ribbon|width=106))
|
Subtemplates
[编辑]This template makes use of three subtemplates, which are not intended to be used as standalone templates. They are: ((ribbon devices/device layout)), ((ribbon devices/device)), and ((ribbon devices/alt)). To add a new other_device
, modify ((ribbon devices/device)). To add alt text for a new ribbon, modify ((ribbon devices/alt)).
上述文档嵌入自Template:Ribbon devices/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.