Template:Wikidata property link: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Zyxw Trim any leading or trailing spaces from unnamed parameter 1 that would prevent template from working as expected. |
meta>Zyxw Add options for id=none, id=only, and id=first. No change in output for existing usage. Tested with /sandbox and /testcases. |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{ | <includeonly>{{#switch: {{uc:{{Str left|{{{id|}}}|1}}}} | ||
| P = [[d:Property:{{#if:1|{{{1|}}}}}|{{Label|{{#if:1|{{{1|}}}}}}} <small>({{#if:1|{{{1|}}}}})</small>]] | | N <!--none--> = {{#switch: {{uc:{{Str left|{{{1|}}}|1}}}} | ||
| [[d:Property:P{{#if:1|{{{1|}}}}}|{{Label|P{{#if:1|{{{1|}}}}}}} <small>(P{{#if:1|{{{1|}}}}})</small>]] | | P = [[d:Property:{{#if:1|{{{1|}}}}}|{{Label|{{#if:1|{{{1|}}}}}}}]] | ||
| [[d:Property:P{{#if:1|{{{1|}}}}}|{{Label|P{{#if:1|{{{1|}}}}}}}]] | |||
}} | |||
| O <!--only--> = {{#switch: {{uc:{{Str left|{{{1|}}}|1}}}} | |||
| P = [[d:Property:{{#if:1|{{{1|}}}}}|{{#if:1|{{{1|}}}}}]] | |||
| [[d:Property:P{{#if:1|{{{1|}}}}}|P{{#if:1|{{{1|}}}}}]] | |||
}} | |||
| F <!--first--> = {{#switch: {{uc:{{Str left|{{{1|}}}|1}}}} | |||
| P = [[d:Property:{{#if:1|{{{1|}}}}}|{{#if:1|{{{1|}}}}}]]{{#if:{{Label|{{#if:1|{{{1|}}}}}}}|: <small>{{Label|{{#if:1|{{{1|}}}}}}}</small>}} | |||
| [[d:Property:P{{#if:1|{{{1|}}}}}|P{{#if:1|{{{1|}}}}}]]{{#if:{{Label|P{{#if:1|{{{1|}}}}}}}|: <small>{{Label|P{{#if:1|{{{1|}}}}}}}</small>}} | |||
}} | |||
| #default = {{#switch: {{uc:{{Str left|{{{1|}}}|1}}}} | |||
| P = [[d:Property:{{#if:1|{{{1|}}}}}|{{Label|{{#if:1|{{{1|}}}}}}} <small>({{#if:1|{{{1|}}}}})</small>]] | |||
| [[d:Property:P{{#if:1|{{{1|}}}}}|{{Label|P{{#if:1|{{{1|}}}}}}} <small>(P{{#if:1|{{{1|}}}}})</small>]] | |||
}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude> |