Template:Fullurl2/doc: Difference between revisions
Jump to navigation
Jump to search
创建页面,内容为“{{Fullurl/doc}}” |
m 1 revision imported |
(No difference)
|
Latest revision as of 12:29, 1 November 2024
[ Purge ]
This is the documentation page, it should be placed in should. See Template:Documentation for more information.No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description
| Page name | optional |
2 | 2 | no description
| String | optional |
action | action | no description
| String | optional |
text | text 3 | no description | String | optional |
nolink | nolink | no description
| String | optional |
示例
- 源代码编辑“方块”的URL(创建链接):
-{}-{{fullurl|方块|action=edit}}
效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit }} }}[{{#var: $fullurl-url }} {{#var: $fullurl-url }}]
- 源代码编辑“方块”第1段的URL(不创建链接):
-{}-{{fullurl|方块|action=edit§ion=1|nolink=1}}
效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit§ion=1 }} }} {{#var: $fullurl-url }}
- 源代码编辑“方块”第1段的URL(创建链接),链接名称为“编辑页”:
-{}-{{fullurl|方块|action=edit§ion=1|text=编辑页}}
效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit§ion=1 }} }}[{{#var: $fullurl-url }} 编辑页]
- 可视化编辑“方块”第1段的URL(创建链接),链接名称为“编辑页”:
-{}-{{fullurl|方块|veaction{{=}}edit§ion{{=}}1|编辑页}}
效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | {{#replace:veaction=edit§ion=1| |_}} }} }}[{{#var: $fullurl-url }} 编辑页]