Template:Fullurl2: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
创建页面,内容为“{{{{{|safesubst:}}}#invoke:fullurl|fullurl}}<noinclude> {{doc}}</noinclude>”
 
m 1 revision imported
 
(No difference)

Latest revision as of 12:29, 1 November 2024

Template:Fullurl2

[ View | Edit | History | Purge ]Documentation page

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Default
{{FULLPAGENAME}}
Example
en:Minecraft Wiki
Page nameoptional
22

no description

Example
veaction{{=}}edit&section{{=}}1
Stringoptional
actionaction

no description

Example
edit&section=1
Stringoptional
texttext 3

no description

Stringoptional
nolinknolink

no description

Auto value
1
Stringoptional

示例

  • 源代码编辑“方块”的URL(创建链接):-{}-{{fullurl|方块|action=edit}}

效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit }} }}[{{#var: $fullurl-url }} {{#var: $fullurl-url }}]

  • 源代码编辑“方块”第1段的URL(不创建链接):-{}-{{fullurl|方块|action=edit&section=1|nolink=1}}

效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit&section=1 }} }} {{#var: $fullurl-url }}

  • 源代码编辑“方块”第1段的URL(创建链接),链接名称为“编辑页”:-{}-{{fullurl|方块|action=edit&section=1|text=编辑页}}

效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | action=edit&section=1 }} }}[{{#var: $fullurl-url }} 编辑页]

  • 可视化编辑“方块”第1段的URL(创建链接),链接名称为“编辑页”:-{}-{{fullurl|方块|veaction&#123;&#123;=&#125;&#125;edit&section&#123;&#123;=&#125;&#125;1|编辑页}}

效果:{{#vardefine: $fullurl-url | {{fullurl:{{#replace:方块| |_}} | {{#replace:veaction=edit&section=1| |_}} }} }}[{{#var: $fullurl-url }} 编辑页]

en:Template:Fullurl

[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Fullurl2/doc.