Template:Commons category: Difference between revisions
Jump to navigation
Jump to search
Sources>Izno use template version |
Sources>Izno remove italic setting duplication by pulling styles out; b -> fw bold |
||
Line 2: | Line 2: | ||
| position = {{{position|}}} | | position = {{{position|}}} | ||
| project = commons | | project = commons | ||
| text = Wikimedia Commons has {{{alt-term|media related to}}} | | text = Wikimedia Commons has {{{alt-term|media related to}}} <span style="font-weight: bold; {{#ifeq:{{{nowrap|no}}}|yes|white-space:nowrap;}} {{#ifeq:{{{italic|yes}}}|yes|font-style: italic;}}">[[commons:{{#if:{{{1|}}}|Category:{{{1|}}}|{{if then show|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:{{PAGENAME}}}}}}|{{#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:|}}<!-- | -->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!-- | ||
--> |{{PAGENAME}} }} }} }}} }}<!-- | --> |{{PAGENAME}} }} }} }}} }}<!-- | ||
-->|{{{2|{{#if:{{{1|}}} | {{{1|}}} <!-- | -->|{{{2|{{#if:{{{1|}}} | {{{1|}}} <!-- | ||
-->|{{if then show|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}<!-- | -->|{{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 | ||
Revision as of 20:52, 10 May 2021
<templatestyles src="Module:Side box/styles.css"></templatestyles><templatestyles src="Sister project/styles.css"></templatestyles>
<templatestyles src="Plainlist/styles.css"></templatestyles>
Wikimedia Commons has media related to [[commons:Template:If then show|Template:If then show]].