Template:PornBaseData Infobox/core: Difference between revisions

From Porn Base Central
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 10: Line 10:


Search engine optimisation--><div style="display:none;">{{#invoke:PornBaseDataIB |getAllLabels |qid={{{qid|}}}}} {{#invoke:PornBaseDataIB |getAllDescriptions |qid={{{qid|}}}}} {{#invoke:PornBaseDataIB |getAllAliases |qid={{{qid|}}}}}</div></includeonly><!--
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]]}}}}}}<!--

... 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
INFOBOX START
Line 57: Line 90:


--></div>}}</td></tr><!--
--></div>}}</td></tr><!--

Upload media link and check for disambig -->{{#if:{{#invoke:PornBaseDataIB|checkvalue | val=Q220 | P1 | qid={{{qid|}}}}}{{#invoke:PornBaseDataIB|checkvalue | val=Q1062 | P1 | qid={{{qid|}}}}}|[[Category:Uses of PornBaseData Infobox for disambig pages]]|{{#ifeq:{{{conf_upload|}}}|yes|<tr><td colspan=2 style="text-align: center;">'''[{{fullurl:Special:Upload|categories={{PAGENAMEE}}}} {{int:Cx-contributions-upload}}]'''</td></tr>}}}}<!--


Sitelinks -->{{#ifeq:{{{conf_sitelinks|}}}|yes|{{#if:<!--
Sitelinks -->{{#ifeq:{{{conf_sitelinks|}}}|yes|{{#if:<!--
Line 293: Line 324:
Only show if we have a QID -->{{#if:{{{qid|}}} | <!--
Only show if we have a QID -->{{#if:{{{qid|}}} | <!--


Authority control -->{{#ifeq:{{{embed|no}}}|no|{{#ifeq:{{{conf_authoritycontrol|}}}|yes|<tr><td colspan=2><table style="width:100%;" id="pbdinfo_ac" class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}"><tr style="width:100%;"><th style="background: #cfe3ff; width:100%;">{{ucfirst:{{#invoke:PornBaseDataIB | getLabel | Q1070}}}}</th></tr><tr><td style="text-align: center;"><div style="overflow-wrap: break-word;">[[File:Pbd.svg | 20px | alt={{#invoke:PornBaseDataIB | getLabel | Q851}} | link=pbd:{{{qid|}}}]]&nbsp;[[pbd:{{{qid|}}}|{{{qid|}}}]]<span class="pbdinfo_nomobile"><br />{{PornBaseData ID | fpbd={{{fpbd}}} | P16 | P169 | P378 | showid=yes | qid={{{qid|}}}}}{{#invoke:PornBaseData Infobox|ifThenShow|{{PornBaseData ID | fpbd={{{fpbd}}} | P350 | P137 | P349 | showid=yes | qid={{{qid|}}} }}||<br />}}</span></div></td></tr></table></td></tr>}}}}<!--
Authority control -->{{#ifeq:{{{embed|no}}}|no|{{#ifeq:{{{conf_authoritycontrol|}}}|yes|<tr><td colspan=2><table style="width:100%;" id="pbdinfo_ac" class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}"><tr style="width:100%;"><th style="background: #cfe3ff; width:100%;">{{ucfirst:{{#invoke:PornBaseDataIB | getLabel | Q1070}}}}</th></tr><tr><td style="text-align: center;"><div style="overflow-wrap: break-word;">[[File:Pbd.svg | 20px | alt={{#invoke:PornBaseDataIB | getLabel | Q851}} | link=pbd:{{{qid|}}}]]&nbsp;[[pbd:{{{qid|}}}|{{{qid|}}}]]<span class="pbdinfo_nomobile"><br />{{PornBaseData ID | fpbd={{{fpbd}}} | P16 | P169 | P378 | showid=yes | qid={{{qid|}}}}}{{#invoke:PornBaseData Infobox|ifThenShow|{{PornBaseData ID | fpbd={{{fpbd}}} | P350 | P137 | P349 | showid=yes | qid={{{qid|}}} }}||<br />}}</span></div></td></tr></table></td></tr>}}}}}}<!--


--><noinclude>{{Documentation}}</noinclude>
--><noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:40, 24 November 2020

Documentation
 
NO PORNBASEDATA ID FOUND!

Search for PornBaseData Infobox/core on PornBaseData

Create new PornBaseData item
[[File: | 200px]]
[[File: | 200px]]
[[File: | 200px]]
[[File: | 200px]]image of grave
[[File: | 200px]]ex-libris
[[File: | 200px]]film poster
[[File: | 200px]]image with frame
[[File: | 200px]]image of reverse
[[File: | 200px | link=https://panoviewer.toolforge.org/#]]photosphere image
[[File: | 110px]] [[File: | 95px]]  [[File: | 95px]] 
Street address
[ official website]