Template:Commons category-inline: Difference between revisions

no edit summary
(Created page with "{{sister-inline | short={{{short|}}} | project=commonscat | list={{{list|}}} | extratext={{{extratext|}}} | links=commons:<!-- Check for a locally-specified category -->{{...")
 
No edit summary
Line 7: Line 7:
  Check for a locally-specified category
  Check for a locally-specified category
  -->{{#if:{{{1|}}} | Category:{{{1|}}} <!--
  -->{{#if:{{{1|}}} | Category:{{{1|}}} <!--
  ... or use Wikidata
  -->|{{if then show|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}<!--
   ... or fall back to the page name
   ... or fall back to the page name
   --> |Category:{{PAGENAME}}}}}}<!--
   --> |Category:{{PAGENAME}}}}<!--
   Now define the display title
   Now define the display title
   -->|<span style="{{#ifeq:{{{nowrap|no}}}|yes|white-space:nowrap;}} {{#ifeq:{{{italic|no}}}|yes|font-style: italic; }}">{{#ifeq:{{{lcf|{{{lcfirst|no}}}}}}|yes|{{lcfirst:{{{2|{{#if:{{{1|}}} | {{{1|}}} <!--
   -->|<span style="{{#ifeq:{{{nowrap|no}}}|yes|white-space:nowrap;}} {{#ifeq:{{{italic|no}}}|yes|font-style: italic; }}">{{#ifeq:{{{lcf|{{{lcfirst|no}}}}}}|yes|{{lcfirst:{{{2|{{#if:{{{1|}}} | {{{1|}}} <!--
  -->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!--
   --> |{{PAGENAME}} }} }} }}} }}]]<!--
  --> |{{PAGENAME}} }} }} }}} }}<!--
  -->|{{{2|{{#if:{{{1|}}} | {{{1|}}} <!--
  -->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!--
   --> |{{PAGENAME}} }} }} }}}
}}</span>]]<!--


  End of the template code, now add relevant tracking categories
  End of the template code, now add relevant tracking categories