Template:建筑照片:修订间差异

来自WCUU
跳转到导航 跳转到搜索
Zhang留言 | 贡献
创建模板
 
Zhang留言 | 贡献
第一次改版
第21行: 第21行:
{{#if:{{{has_annotations|}}}|[[Category:已标注建筑照片]]|}}
{{#if:{{{has_annotations|}}}|[[Category:已标注建筑照片]]|}}


</includeonly>
<noinclude>
<includeonly>
<div class="photo-info-box" style="border:1px solid #ccc; background:#f9f9f9; padding:10px; border-radius:8px; font-size:90%; margin:10px 0;">
'''建筑名称:''' [[{{{building_page|建筑:{{{building_name|未指定建筑}}}}}|{{{building_name|未指定建筑}}}]] 
<br/>'''拍摄年份:''' {{{year|未知}}} 
{{#if:{{{decade|}}}|<br/>'''年代:''' {{{decade}}}|}}
{{#if:{{{date_text|}}}|<br/>'''时间说明:''' {{{date_text}}}|}}
{{#if:{{{photographer|}}}|<br/>'''摄影者/提供者:''' {{{photographer}}}|}}
{{#if:{{{source|}}}|<br/>'''来源:''' {{{source}}}|}}
{{#if:{{{location_text|}}}|<br/>'''拍摄地点:''' {{{location_text}}}|}}
{{#if:{{{view_direction|}}}|<br/>'''拍摄方向:''' {{{view_direction}}}|}}
{{#if:{{{type|}}}|<br/>'''类型:''' {{{type}}}|}}
{{#if:{{{description|}}}|<br/>'''描述:''' {{{description}}}|}}
{{#if:{{{tags|}}}|<br/>'''标签:''' {{{tags}}}|}}
</div>
<!-- 分类:按建筑、年代、类型 -->
[[Category:建筑-{{{building_name|未指定建筑}}}-照片]]
[[Category:建筑照片]]
{{#if:{{{decade|}}}|[[Category:{{{decade}}}建筑照片]]|}}
{{#ifexpr: {{#if:{{{is_historic|}}}|1|0}} = 1 | [[Category:历史建筑照片]] | }}
{{#if:{{{has_annotations|}}}|[[Category:已标注建筑照片]]|}}
</includeonly>
</includeonly>


<noinclude>
<noinclude>
== 用法 ==
== 用法 ==
建筑相关照片文件说明页中加入本模板,例如
在照片文件说明页中加入:


<pre>
<pre>
{{建筑照片
{{建筑照片
  | building_name  = 老图书馆
  | building_name  = 老图书馆
| building_page  = 建筑:老图书馆  <!-- 可选,不填时默认链接到“建筑:老图书馆” -->
| building_id    = b1926002        <!-- 可选,只给系统用,普通用户可以不填 -->
  | year            = 1937
  | year            = 1937
  | decade          = 1930年代
  | decade          = 1930年代
| date_text      = 约1937年前后
  | photographer    = Henry B. Robins
  | photographer    = Henry B. Robins
  | source          = 华西协合大学档案馆 RG011-xxx
  | source          = 华西协合大学档案馆 RG011-xxx
| location_text  = 华西坝北区,老图书馆前广场
  | view_direction  = 北
  | view_direction  = 北
  | description    = 背景可见尚未修建××楼
| type            = 建筑照
  | is_historic    = yes             <!-- 历史照片填 yes,现代照片留空 -->
  | description    = 图中可见尚未修建××楼
  | has_annotations =                  <!-- 将来有像素标注时再用 -->
| tags            = 钟楼;毕业照;集体合影
  | is_historic    = yes
| has_annotations = no
| building_id    = b1926002        <!-- 可选:仅管理员使用 -->
  | photo_key      =                  <!-- 可选:系统对接预留 -->
}}
}}
</pre>
</pre>


* 普通上传者来说,建议字段:building_name / year 或 decade / photographer(如知道) / description(如能写)
* **普通上传者建议填写:** building_name / year 或 decade / photographer / description。
* building_id 是内部编号,仅管理员/维护者需要填写。
* **管理员可额外填写:** building_id / photo_key
</noinclude>
</noinclude>

2025年11月7日 (五) 03:16的版本




用法

在照片文件说明页中加入:

{{建筑照片
 | building_name   = 老图书馆
 | year            = 1937
 | decade          = 1930年代
 | date_text       = 约1937年前后
 | photographer    = Henry B. Robins
 | source          = 华西协合大学档案馆 RG011-xxx
 | location_text   = 华西坝北区,老图书馆前广场
 | view_direction  = 北
 | type            = 建筑照
 | description     = 图中可见尚未修建××楼
 | tags            = 钟楼;毕业照;集体合影
 | is_historic     = yes
 | has_annotations = no
 | building_id     = b1926002         <!-- 可选:仅管理员使用 -->
 | photo_key       =                  <!-- 可选:系统对接预留 -->
}}
  • **普通上传者建议填写:** building_name / year 或 decade / photographer / description。
  • **管理员可额外填写:** building_id / photo_key。