模板:归档头:修订间差异

来自「荏苒之境」
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
<noinclude><languages/></noinclude>
<noinclude><languages/>{{模板文档}}</noinclude><includeonly><!--
<includeonly>
--><templatestyles src="模板:归档头/style.css" />
<templatestyles src="模板:归档头/Style.css" />
{{#invoke: Gltd-Archive| show
{{#invoke: Gltd-Archive.lua | show
| id = {{{归档码|}}}
| id = {{{归档码|}}}
| permission = {{{权限级|}}}
| permission = {{{权限级|}}}
| event_group = {{{事件组|}}}
| event_group = {{{事件组|}}}
}}
}}
</includeonly>
</includeonly><noinclude>
<noinclude>
示例:
<pre>
{{归档头
| 归档码 = GLTD-0000-1
| 权限级 = 4
| 事件组 = 荏苒之境
}}
</pre>
 
<templatedata>
<templatedata>
{
{

2025年8月8日 (五) 08:22的最新版本

此模板使用的样式:模板:归档头/style.css
.gltd-archive {
	font-size: 0.9em;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	border: 5px solid rgba(255, 255, 255, 0.5);
	color: white !important;
}

.gltd-archive-level1 { background-color: #8a96b1; }
.gltd-archive-level2 { background-color: #5f9a65; }
.gltd-archive-level3 { background-color: #d58647; }
.gltd-archive-level4 { background-color: #c14f4b; }
.gltd-archive-level5 { background-color: black; }

.gltd-archive a {
	font-weight: bold;
	color: #e3e3e3 !important;
}

.gltd-archive-content {
	text-align: center;
}

.gltd-archive-title {
	font-size: 1.5em;
	margin-bottom: -0.3em;
}

.gltd-archive-eventgroup {
	font-size: 0.6em;
}

.gltd-archive-logo {
    background-size: cover;
    opacity: 0.5;
    margin: 12px 20px 0 20px;
    min-width: 90px;
    height: 90px;
}

@media screen and (min-width: 850px) {
	.gltd-archive-logo {
	    position: absolute;
	}
}

@media screen and (max-width: 850px) {
	.gltd-archive {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-evenly;
	}
	
	.gltd-archive-content {
		padding-left: 10px;
		padding-right: 10px;
	}
}

示例代码:

{{归档头
| 事件组 = 荏苒之境
| 归档码 = GLTD-0000-1
| 权限级 = 4
}}

用于标注已被「荏苒之境」图书馆正式收录的档案。

模板参数[编辑模板数据]

此模板首选参数换行的代码块格式。

参数描述类型状态
归档码归档码

此档案的「荏苒之境」归档码。

单行文本必需
权限级权限级

此档案的「荏苒之境」权限等级(1~5)。

默认值
1
自动值
1
数字必需
事件组事件组

此档案所属的事件组。

单行文本必需