ਫਰਮਾ:Header: ਰੀਵਿਜ਼ਨਾਂ ਵਿਚ ਫ਼ਰਕ

ਸਮੱਗਰੀ ਮਿਟਾਈ ਸਮੱਗਰੀ ਜੋੜੀ
update
ਛੋ Reverted edits by Satpal Dandiwal (talk) to last revision by Benipal hardarshan
ਟੈਗ: Rollback
ਲਾਈਨ 1:
<!--
Text status badge (via Wikidata)
-->{{#invoke:edition|badge|category=1|indicator=1}}<!--
 
Begin headerContainer wrapper
 
ਲਾਈਨ 77 ⟶ 74:
Insert a line break if page is *not* a section page
-->{{#if:{{{section|}}}|&#32;|<br/>}}<!--
--><i>by <!--
 
Catch unknown authors
ਲਾਈਨ 83 ⟶ 80:
 
Link known authors to the author namespace
-->{{#ifexist: Authorਲੇਖਕ:{{{author}}} || <!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[Category:Works with non-existent author pages]]
| #default = }}<!-- end of switch -->}} [[Authorਲੇਖਕ:{{{author}}}|<span id="header_author_text" class="vcard"><span class="fn">{{{author}}}</span></span>]]}}</i>}}}}<!--
 
Editor field - only if needed
ਲਾਈਨ 101 ⟶ 98:
-->|#default=<i>{{#if:{{{author|}}}{{{override_author|}}}|,&#32;}}<!--
-->{{#if:{{{author|}}}{{{override_author|}}}||{{#if:{{{section|}}}||<br>}}}} edited byਸੰਪਾਦਕ <!--
 
--><span id="header_editor_text" class="vcard"><!--
--><span class="fn">{{#if:{{{override_editor|}}}|{{{override_editor}}}|{{#ifexist: Author[[ਲੇਖਕ:{{{editor}}} || {{{editor}}}]]}}</span></span><!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[Category:Works with non-existent author pages]]
| #default = }}<!-- end of switch -->}}[[Author:{{{editor}}}|{{{editor}}}]]}}</span></span><!--
--></i>}}<!--
-->}}<!--
ਲਾਈਨ 118 ⟶ 111:
-->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!--
-->| not mentioned =, ''translator not mentioned''<!--
-->| wikisource =<i>, translated byਅਨੁਵਾਦਕ [[Wikisource:Translations|<span id="header_translator_text">Wikisource</span>]]</i><!--
 
If it is the base page, add to the "Wikisource translation" category
ਲਾਈਨ 127 ⟶ 120:
 
Switch default - the given translator
-->|#default =<i>{{#if:{{{author|}}}{{{override_author|}}}{{{override_editor|}}}{{{editor|}}}|,&#32;}}translated byਅਨੁਵਾਦਕ <!--
 
Override translator if needed
-->{{{override_translator|<!--
 
-->{{#ifexist: Author[[ਲੇਖਕ:{{{translator}}} || <!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[Category:Works with non-existent author pages]]
| #default = }}<!-- end of switch -->}} [[Author:{{{translator}}}|<!--
--><span id="header_translator_text" class="vcard"><span class="fn">{{{translator}}}</span></span>]]}}}<!--
--></i>}}<!--
ਲਾਈਨ 143 ⟶ 132:
Section field
-->{{#if:{{{section|}}}|<br /><span id="header_section_text">{{{section|}}}</span><!--
 
first part of section_translator, adds a line return to split to two lines due to length if section translator exists
 
-->{{#if:{{{override_section_translator|}}}{{{section_translator|}}}|<br />}}<!--
 
Section author
-->{{#if:{{{override_section_author|{{{override_contributor|}}}}}}{{{contributor|{{{section_author|}}}}}}|<!--
--><i> by <span id="header_contributor_text" class="vcard"><!--
--><span class="fn">{{#if:{{{override_section_author|{{{override_contributor|}}}}}}|{{{override_section_author|{{{override_contributor|}}}}}}|{{#ifexist: Author[[ਲੇਖਕ:{{{contributor}}}|{{{section_authorcontributor}}}]]}}} || </span></span><!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[Category:Works with non-existent author pages]]
| #default = }}<!-- end of switch -->}}[[Author:{{{contributor|{{{section_author}}}}}}|{{{contributor|{{{section_author}}}}}}]]}}</span></span><!--
--></i>}}<!--
Section translator
-->{{#if:{{{override_section_translator|}}}{{{section_translator|}}}|<!--
--><i>, translated by <span id="header_section_translator_text" class="vcard"><!--
--><span class="fn">{{#if:{{{override_section_translator|}}}|{{{override_section_translator|}}}|{{#ifexist: Author:{{{section_translator|}}} || <!-- only required main and translation ns:-->
{{#switch: {{NAMESPACENUMBER}}
| 0
| 114=[[Category:Works with non-existent author pages]]
| #default = }}<!-- end of switch -->}}[[Author:{{{section_translator|}}}|{{{section_translator|}}}]]}}</span></span><!--
--></i>}}<!--
 
ਲਾਈਨ 354 ⟶ 326:
Track pages using the author override
-->{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}<!--
 
Track pages using contributor / section_author
-->{{#if:{{{contributor|{{{section_author|}}}}}}|[[Category:Pages with contributor]]}}<!--
 
Track pages using override_contributor / override_section_author
-->{{#if:{{{override_section_author|{{{override_contributor|}}}}}}|[[Category:Pages with override contributor]]}}<!--
 
Track pages with no author given