Template:Cname: Difference between revisions
(Created page with "<noinclude>{{page warning|message=This template is in draft.}}</noinclude><includeonly>{{#if: {{{1|}}}|{{#vardefine:smw_name|{{#show:{{{1|}}}|?Has canonical name}}}}{{#if:{{#var:smw_name}}|[[{{{1}}}|{{#var:smw_name}}]]|[[{{ucfirst:{{{1}}}}}]]}}}}</includeonly><noinclude> == Usage == Link to an article using Property:Has canonical name. Having no canonical name will default to the using the article name. <pre> {{cname|<article>}} </pre> == Parameters == ;1 ''(unnamed...") |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{page warning|message= | <noinclude>{{page warning|message=delete}}</noinclude><includeonly>{{#if: {{{1|}}}|{{#vardefine:smw_name|{{#show:{{{1|}}}|?Has canonical name}}}}{{#if:{{#var:smw_name}}|[[{{{1}}}|{{#var:smw_name}}]]|[[{{ucfirst:{{{1}}}}}]]}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Link to an article using [[Property:Has canonical name]]. Having no canonical name will default to the using the article name. | Link to an article using [[Property:Has canonical name]]. Having no canonical name will default to the using the article name. |
Latest revision as of 22:30, 19 February 2025

Warning:
Usage
Link to an article using Property:Has canonical name. Having no canonical name will default to the using the article name.
{{cname|<article>}}
Parameters
- 1 (unnamed parameter)
- Required. Article name.
Example
{{cname|Armor}}
{{#vardefine:smw_name|{{#show:Armor|?Has canonical name}}}}{{#var:smw_name}}
{{cname|Hammer (skill)}}
{{#vardefine:smw_name|{{#show:Hammer (skill)|?Has canonical name}}}}{{#var:smw_name}}