Template:PornBaseData Infobox/core: Difference between revisions

Undo revision 1710 by PeaceDeadC (talk)
[checked revision][checked revision]
No edit summary
(Undo revision 1710 by PeaceDeadC (talk))
Tag: Undo
 
Search engine optimisation--><div style="display:none;">{{#invoke:PornBaseDataIB |getAllLabels |qid={{{qid|}}}}} {{#invoke:PornBaseDataIB |getAllDescriptions |qid={{{qid|}}}}} {{#invoke:PornBaseDataIB |getAllAliases |qid={{{qid|}}}}}</div></includeonly><!--
 
Can we include auto-cats?-->
{{#ifeq:{{{autocat | yes}}} | yes | {{#ifeq:{{{embed|no}}}|no|<!--
 
Include extra interwiki links if appropriate
 
-->{{#ifeq:{{NAMESPACE}}|{{ns:Category}}|{{#ifeq:{{{interwiki|yes}}}|no||{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P521}}{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P50}}{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P512}}{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P300}}|{{#invoke:Interwiki | interwiki | qid={{{qid}}}}}[[Category:Uses of PornBaseData Infobox providing interwiki links]]}}}}}}<!--
 
For authority control
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P350}} | [[Category:Performers with known Facebook IDs| {{#property:P350 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P349}} | [[Category:Performers with known Instagram IDs|{{#property:P349 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P352}} | [[Category:Performers with known LinkedIn IDs|{{#property:P352 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P379}} | [[Category:Performers with known SoundCloud IDs|{{#property:P379 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P16}} | [[Category:Uses of PornBaseData Infobox providing IMDB ids|{{#property:P16 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P169}} | [[Category:Uses of PornBaseData Infobox providing IAFD ids|{{#property:P169 | from={{{qid|}}}}}]]}}<!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P378}} | [[Category:Uses of PornBaseData Infobox providing GEVI ids|{{#property:P378 | from={{{qid|}}}}}]]}}<!--
 
<!--
 
... and for pornstars
-->{{#if:{{#invoke:PornBaseDataIB|checkvalue | val=Q160 | P124 | qid={{{qid|}}}}} | <!--
defaultsort -->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P7}} | <!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P5}} | <!--
-->{{#ifeq:{{{defaultsort | y}}} | y | <!--
-->{{#ifeq:{{#invoke:PornBaseDataIB | checkValidity |{{#property:P7 | from={{{qid|}}}}}}} | false | <!--
-->{{#ifeq:{{#invoke:PornBaseDataIB | checkValidity |{{#property:P5 | from={{{qid|}}}}}}} | false | <!--
-->{{#if:{{#invoke:PornBaseData Infobox|checkProplist|fpbd={{{fpbd}}}|name=P13}} | {{#ifeq:{{#invoke:PornBaseDataIB | checkValidity |{{#property:P13 | from={{{qid|}}}}}}} | false | <!--
-->{{DEFAULTSORT:{{#invoke:PornBaseData Infobox|stripDiacrits|{{#invoke:PornBaseDataIB | getValue | rank=best | P7 | linked=no | name=P7 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en}} {{#invoke:PornBaseDataIB | getValue | rank=best | P13 | linked=no | name=P13 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}, {{#invoke:PornBaseDataIB | getValue | rank=best | P5 | linked=no | name=P5 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}}}}}<!--
--> | {{DEFAULTSORT:{{#invoke:PornBaseData Infobox|stripDiacrits|{{#invoke:PornBaseDataIB | getValue | rank=best | P7 | linked=no | name=P7 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}, {{#invoke:PornBaseDataIB | getValue | rank=best | P5 | linked=no | name=P5 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}}}}}<!--
-->}} | {{DEFAULTSORT:{{#invoke:PornBaseData Infobox|stripDiacrits|{{#invoke:PornBaseDataIB | getValue | rank=best | P7 | linked=no | name=P7 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}, {{#invoke:PornBaseDataIB | getValue | rank=best | P5 | linked=no | name=P5 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | lang=en | sep=" "}}}}}}<!--
-->}}<!--
-->}} }} | [[Category:Uses of PornBaseData Infobox with defaultsort suppressed]]<!--
-->}}<!--
-->}}<!--
-->}}<!--
birth year -->{{#if:{{#invoke:PornBaseDataIB | getValue | rank=best | P9 | name=P9 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} | {{#ifexist: Category:{{#invoke:PornBaseDataIB | getValue | rank=best | P9 | name=P9 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y |pd=adj | lang=en}} births | [[Category:{{#invoke:PornBaseDataIB | getValue | rank=best | P9 | name=P9 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y |pd=adj | lang=en}} births]]}}}}<!--
 
death year -->{{#if:{{#invoke:PornBaseDataIB | getValue | rank=best | P247 | name=P247 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} | {{#ifexist:[[Category:{{#invoke:PornBaseDataIB | getValue | rank=best | P247 | name=P247 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} deaths]] | [[Category:{{#invoke:PornBaseDataIB | getValue | rank=best | P247 | name=P247 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} deaths]] | {{#ifexist:Category:{{#invoke:String | replace | {{#invoke:PornBaseDataIB | getValue | rank=best | P247 | name=P247 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} | &nbsp; | -}} deaths | [[Category:{{#invoke:String | replace | {{#invoke:PornBaseDataIB | getValue | rank=best | P247 | name=P247 | qid={{{qid|}}} | spf={{{spf|}}} | fpbd={{{fpbd|ALL}}} | osd={{{osd|no}}} | noicon=yes | df=y | pd=adj | lang=en}} | &nbsp; | -}} deaths]]}}}} {{#ifeq:{{NAMESPACENUMBER}} | 14 | [[Category:Deceased people by name]]}}}}<!--
 
award auto-cat -->{{#ifeq:{{NAMESPACENUMBER}} | 14 | {{
#invoke:PornBaseDataIB |getAwardCat |fpbd={{{fetchpornbasedata|ALL}}} |osd={{{onlysourced|no}}} |noicon=y
|qid={{{qid|}}} |sortkey={{#ifeq:{{{defaultsort | y}}} | y | {{{sortkey|}}}}} }}}}<!--
 
end autocat -->}}}}}}<!--
 
INFOBOX START