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

ਸਮੱਗਰੀ ਮਿਟਾਈ ਸਮੱਗਰੀ ਜੋੜੀ
ਛੋNo edit summary
update
ਲਾਈਨ 1:
<!--
Text status badge (via Wikidata)
-->{{#invoke:edition|badge|category=1|indicator=1}}<!--
 
Begin headerContainer wrapper
 
ਲਾਈਨ 74 ⟶ 77:
Insert a line break if page is *not* a section page
-->{{#if:{{{section|}}}|&#32;|<br/>}}<!--
--><i>by <!--
 
Catch unknown authors
ਲਾਈਨ 80 ⟶ 83:
 
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
ਲਾਈਨ 98 ⟶ 101:
-->|#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>}}<!--
-->}}<!--
ਲਾਈਨ 111 ⟶ 118:
-->{{#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
ਲਾਈਨ 120 ⟶ 127:
 
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>}}<!--
ਲਾਈਨ 132 ⟶ 143:
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}}}|{{{contributorsection_author}}}]]}}</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>}}<!--
 
ਲਾਈਨ 326 ⟶ 354:
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