更多語言
更多操作
刪去的內容 新增的內容
小 导入1个版本:导入重要模板和模块 |
小 补充可视化编辑器模板数据 |
||
第1行: | 第1行: | ||
<includeonly><span id="{{{1}}}" style="{{{3|}}}">{{{2|}}}</span></includeonly><noinclude>[[分类:工具模板]]{{documentation}}< |
<includeonly><span id="{{{1}}}" style="{{{3|}}}">{{{2|}}}</span></includeonly><noinclude>[[分类:工具模板]]{{documentation}}<templatedata> |
||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "锚点名", |
|||
"description": "为锚点指定该页面中唯一的名称。", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"2": { |
|||
"label": "内容", |
|||
"description": "锚点显示的文字。", |
|||
"type": "unbalanced-wikitext" |
|||
}, |
|||
"3": { |
|||
"label": "CSS样式", |
|||
"description": "指定这个锚点的样式,使用CSS语法。", |
|||
"example": "color: Orange;" |
|||
} |
|||
}, |
|||
"description": "该模板用于快速在页面中创建定位锚点。\n可使用<code><nowiki>[[(页面名)#锚点名|锚点显示文字]]</nowiki></code>来引用锚点。", |
|||
"paramOrder": [ |
|||
"1", |
|||
"2", |
|||
"3" |
|||
], |
|||
"format": "inline" |
|||
} |
|||
</templatedata></noinclude> |
於 2023年11月28日 (二) 18:42 的最新修訂
該模板用於快速在頁面中創建定位錨點。
參數 | 說明 | 填寫內容 | 必填/選填 |
---|---|---|---|
1 | 錨點名 | 錨點名 | 必填 |
2 | 內容 | 錨點顯示文字 | 選填 |
3 | 樣式 | 錨點樣式css | 選填 |
以下為使用例。
代碼 | 實際效果 |
---|---|
{{anchor|空锚点}}
|
|
{{anchor|文字锚点|这里是文字锚点}}
|
這裏是文字錨點 |
{{anchor|样式锚点|这个锚点有样式|color: Orange;}}
|
這個錨點有樣式 |
可使用[[(页面名)#锚点名|锚点显示文字]]
來引用錨點。
上述文檔嵌入自Template:Anchor/doc。(編輯 | 歷史)
該模板用於快速在頁面中創建定位錨點。 可使用<code><nowiki>[[(頁面名)#錨點名|錨點顯示文字]]</nowiki></code>來引用錨點。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
錨點名 | 1 | 為錨點指定該頁面中唯一的名稱。 | 字串 | 必填 |
內容 | 2 | 錨點顯示的文字。 | 不對稱的 WikiText | 非必填 |
CSS樣式 | 3 | 指定這個錨點的樣式,使用CSS語法。
| 不明 | 非必填 |